1 #ifndef READ_FULL_H 2 #define READ_FULL_H 3 4 /* Read data from file. Returns -1 if error occurred, or 0 if EOF came before 5 everything was read, or 1 if all was ok. */ 6 int read_full(int fd, void *data, size_t size); 7 int pread_full(int fd, void *data, size_t size, off_t offset); 8 9 #endif 10