cctools
full_io.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef FULL_IO_H
9 #define FULL_IO_H
10 
11 #include <sys/types.h>
12 #include <stdio.h>
13 #include "int_sizes.h"
14 
31 ssize_t full_read(int fd, void *buf, size_t count);
32 
39 ssize_t full_write(int fd, const void *buf, size_t count);
40 
48 ssize_t full_pread(int fd, void *buf, size_t count, off_t offset);
49 
57 ssize_t full_pwrite(int fd, const void *buf, size_t count, off_t offset);
58 
66 INT64_T full_pread64(int fd, void *buf, INT64_T count, INT64_T offset);
67 
75 INT64_T full_pwrite64(int fd, const void *buf, INT64_T count, INT64_T offset);
76 
83 ssize_t full_fread(FILE * file, void *buf, size_t count);
84 
91 ssize_t full_fwrite(FILE * file, const void *buf, size_t count);
92 
93 #endif
INT64_T full_pwrite64(int fd, const void *buf, INT64_T count, INT64_T offset)
Write arbitrary bytes to a file descriptor.
ssize_t full_read(int fd, void *buf, size_t count)
Read the next bytes from a file descriptor.
ssize_t full_pwrite(int fd, const void *buf, size_t count, off_t offset)
Write arbitrary bytes to a file descriptor.
ssize_t full_pread(int fd, void *buf, size_t count, off_t offset)
Read arbitrary bytes from a file descriptor.
ssize_t full_write(int fd, const void *buf, size_t count)
Write the next bytes to a file descriptor.
INT64_T full_pread64(int fd, void *buf, INT64_T count, INT64_T offset)
Read arbitrary bytes from a file descriptor.
ssize_t full_fread(FILE *file, void *buf, size_t count)
Read the next bytes from a file stream.
ssize_t full_fwrite(FILE *file, const void *buf, size_t count)
Write the next bytes to a file stream.