137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen/* Read data from file. Returns -1 if error occurred, or 0 if EOF came before
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen everything was read, or 1 if all was ok. */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenint read_full(int fd, void *data, size_t size);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenint pread_full(int fd, void *data, size_t size, off_t offset);