patch-src_io_h 1.2 KB

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