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