412-sync-fcntl-h-with-linux-kernel.patch 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ---
  2. libc/sysdeps/linux/avr32/bits/fcntl.h | 33 +++++++++++++++++----------------
  3. 1 file changed, 17 insertions(+), 16 deletions(-)
  4. Index: uClibc-0.9.28-avr32/libc/sysdeps/linux/avr32/bits/fcntl.h
  5. ===================================================================
  6. --- uClibc-0.9.28-avr32.orig/libc/sysdeps/linux/avr32/bits/fcntl.h 2006-11-23 17:38:30.000000000 +0100
  7. +++ uClibc-0.9.28-avr32/libc/sysdeps/linux/avr32/bits/fcntl.h 2006-11-23 17:52:15.000000000 +0100
  8. @@ -11,28 +11,29 @@
  9. /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
  10. located on an ext2 file system */
  11. -#define O_ACCMODE 0003
  12. -#define O_RDONLY 00
  13. -#define O_WRONLY 01
  14. -#define O_RDWR 02
  15. -#define O_CREAT 0100 /* not fcntl */
  16. -#define O_EXCL 0200 /* not fcntl */
  17. -#define O_NOCTTY 0400 /* not fcntl */
  18. -#define O_TRUNC 01000 /* not fcntl */
  19. -#define O_APPEND 02000
  20. -#define O_NONBLOCK 04000
  21. +#define O_ACCMODE 00000003
  22. +#define O_RDONLY 00000000
  23. +#define O_WRONLY 00000001
  24. +#define O_RDWR 00000002
  25. +#define O_CREAT 00000100 /* not fcntl */
  26. +#define O_EXCL 00000200 /* not fcntl */
  27. +#define O_NOCTTY 00000400 /* not fcntl */
  28. +#define O_TRUNC 00001000 /* not fcntl */
  29. +#define O_APPEND 00002000
  30. +#define O_NONBLOCK 00004000
  31. #define O_NDELAY O_NONBLOCK
  32. -#define O_SYNC 010000
  33. -#define O_ASYNC 020000
  34. +#define O_SYNC 00010000
  35. +#define O_ASYNC 00020000
  36. #ifdef __USE_GNU
  37. -# define O_DIRECTORY 040000 /* must be a directory */
  38. -# define O_NOFOLLOW 0100000 /* don't follow links */
  39. -# define O_DIRECT 0200000 /* direct disk access */
  40. +# define O_DIRECT 00040000 /* must be a directory */
  41. +# define O_DIRECTORY 00200000 /* direct disk access */
  42. +# define O_NOFOLLOW 00400000 /* don't follow links */
  43. +# define O_NOATIME 01000000 /* don't set atime */
  44. #endif
  45. #ifdef __USE_LARGEFILE64
  46. -# define O_LARGEFILE 0400000
  47. +# define O_LARGEFILE 00100000
  48. #endif
  49. /* For now Linux has synchronisity options for data and read operations.