]> wimlib.net Git - wimlib/blobdiff - include/wimlib/file_io.h
Rename inode_first_dentry() => inode_any_dentry()
[wimlib] / include / wimlib / file_io.h
index 9bc9c36992549ad4cfc5fd0b578d19e4f25e51f6..34c9d40b2bdd268e0bc63d0056613eada6d5ace7 100644 (file)
@@ -1,9 +1,9 @@
 #ifndef _WIMLIB_FILE_IO_H
 #define _WIMLIB_FILE_IO_H
 
+#include <stdbool.h>
 #include <stddef.h>
 #include <sys/types.h>
-#include <stdbool.h>
 
 /* 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
@@ -32,15 +32,6 @@ 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 +54,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