cctools
|
00001 /* 00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin 00003 Copyright (C) 2005- The University of Notre Dame 00004 This software is distributed under the GNU General Public License. 00005 See the file COPYING for details. 00006 */ 00007 00008 #ifndef FULL_IO_H 00009 #define FULL_IO_H 00010 00011 #include <sys/types.h> 00012 #include <stdio.h> 00013 #include "int_sizes.h" 00014 00031 ssize_t full_read(int fd, void *buf, size_t count); 00032 00039 ssize_t full_write(int fd, const void *buf, size_t count); 00040 00048 ssize_t full_pread(int fd, void *buf, size_t count, off_t offset); 00049 00057 ssize_t full_pwrite(int fd, const void *buf, size_t count, off_t offset); 00058 00066 INT64_T full_pread64(int fd, void *buf, INT64_T count, INT64_T offset); 00067 00075 INT64_T full_pwrite64(int fd, const void *buf, INT64_T count, INT64_T offset); 00076 00083 ssize_t full_fread(FILE * file, void *buf, size_t count); 00084 00091 ssize_t full_fwrite(FILE * file, const void *buf, size_t count); 00092 00093 #endif