summaryrefslogtreecommitdiff
path: root/package/dosfstools/patches/patch-src_io_h
blob: 3ec0fd809d2f5ae1aa76c0b1f3aea91adaa0d9cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- dosfstools-3.0.26.orig/src/io.h	2014-02-08 18:53:10.000000000 +0100
+++ dosfstools-3.0.26/src/io.h	2014-03-26 13:27:15.000000000 +0100
@@ -27,9 +27,9 @@
 #ifndef _IO_H
 #define _IO_H
 
-#include <fcntl.h>		/* for loff_t */
+#include <fcntl.h>		/* for off_t */
 
-loff_t llseek(int fd, loff_t offset, int whence);
+off_t llseek(int fd, off_t offset, int whence);
 
 /* lseek() analogue for large offsets. */
 
@@ -38,17 +38,17 @@ void fs_open(char *path, int rw);
 /* Opens the filesystem PATH. If RW is zero, the filesystem is opened
    read-only, otherwise, it is opened read-write. */
 
-void fs_read(loff_t pos, int size, void *data);
+void fs_read(off_t pos, int size, void *data);
 
 /* Reads SIZE bytes starting at POS into DATA. Performs all applicable
    changes. */
 
-int fs_test(loff_t pos, int size);
+int fs_test(off_t pos, int size);
 
 /* Returns a non-zero integer if SIZE bytes starting at POS can be read without
    errors. Otherwise, it returns zero. */
 
-void fs_write(loff_t pos, int size, void *data);
+void fs_write(off_t pos, int size, void *data);
 
 /* If write_immed is non-zero, SIZE bytes are written from DATA to the disk,
    starting at POS. If write_immed is zero, the change is added to a list in