]> wimlib.net Git - wimlib/blobdiff - include/wimlib/file_io.h
LZMS: share 'struct lzms_probabilities' between compressor and decompressor
[wimlib] / include / wimlib / file_io.h
index 85f293f13a1023e6c21dcf639880b91dbe3353ce..61ae78b9e270aee622376346a68e0eff7ad18af0 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _WIMLIB_FILE_IO_H
 #define _WIMLIB_FILE_IO_H
 
+#include <stdbool.h>
 #include <stddef.h>
 #include <sys/types.h>
 
@@ -25,24 +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
-
-extern int
-full_writev(struct filedes *fd, struct iovec *iov, int iovcnt);
-
 #ifndef __WIN32__
 #  define O_BINARY 0
 #endif
@@ -65,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