X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Ffile_io.h;h=61ae78b9e270aee622376346a68e0eff7ad18af0;hb=d04a25a537201b46832cac28725a45bf559dc318;hp=9bc9c36992549ad4cfc5fd0b578d19e4f25e51f6;hpb=bdcbe480fbc8684fcc618adbf94d9a7d1794378a;p=wimlib diff --git a/include/wimlib/file_io.h b/include/wimlib/file_io.h index 9bc9c369..61ae78b9 100644 --- a/include/wimlib/file_io.h +++ b/include/wimlib/file_io.h @@ -1,9 +1,9 @@ #ifndef _WIMLIB_FILE_IO_H #define _WIMLIB_FILE_IO_H +#include #include #include -#include /* Wrapper around a file descriptor that keeps track of offset (including in * pipes, which don't support lseek()) and a cached flag that tells whether the @@ -26,21 +26,6 @@ full_write(struct filedes *fd, const void *buf, size_t n); extern int full_pwrite(struct filedes *fd, const void *buf, size_t count, off_t offset); -extern ssize_t -raw_pread(struct filedes *fd, void *buf, size_t nbyte, off_t offset); - -extern ssize_t -raw_pwrite(struct filedes *fd, const void *buf, size_t count, off_t offset); - -#ifdef __WIN32__ -struct iovec { - void *iov_base; - size_t iov_len; -}; -#else -struct iovec; -#endif - #ifndef __WIN32__ # define O_BINARY 0 #endif @@ -63,11 +48,6 @@ static inline void filedes_invalidate(struct filedes *fd) fd->fd = -1; } -static inline void filedes_copy(struct filedes *dst, const struct filedes *src) -{ - *dst = *src; -} - #define filedes_close(f) close((f)->fd) static inline bool