Mercurial > hg > aboriginal
annotate sources/patches/uClibc-nofollow.patch @ 1586:90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 09 Mar 2013 19:54:34 -0600 |
parents | |
children |
rev | line source |
---|---|
1586
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 Posix-2008 says fcntl.h should define O_NOFOLLOW, but uClibc requires #define |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 GNU_DAMMIT in order to get that. As with all FSF code: fix by ripping it out. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 diff -ruN uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/alpha/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 --- uClibc/libc/sysdeps/linux/alpha/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 +++ uClibc.bak/libc/sysdeps/linux/alpha/bits/fcntl.h 2013-03-09 11:24:51.983631762 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 #define O_ASYNC 020000 /* fcntl, for BSD compatibility */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 # define O_DIRECTORY 0100000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 # define O_NOFOLLOW 0200000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 # define O_DIRECT 02000000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 # define O_NOATIME 04000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 # define O_CLOEXEC 010000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 /* Not necessary, files are always with 64bit off_t. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 diff -ruN uClibc/libc/sysdeps/linux/arm/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/arm/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 --- uClibc/libc/sysdeps/linux/arm/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 +++ uClibc.bak/libc/sysdeps/linux/arm/bits/fcntl.h 2013-03-09 11:25:00.439632114 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 diff -ruN uClibc/libc/sysdeps/linux/avr32/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/avr32/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 --- uClibc/libc/sysdeps/linux/avr32/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 +++ uClibc.bak/libc/sysdeps/linux/avr32/bits/fcntl.h 2013-03-09 11:25:11.399632571 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 @@ -25,13 +25,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
42 #define O_SYNC 00010000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
43 #define O_ASYNC 00020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
45 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
46 # define O_DIRECT 00040000 /* must be a directory */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
47 # define O_DIRECTORY 00200000 /* direct disk access */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
48 # define O_NOFOLLOW 00400000 /* don't follow links */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
49 # define O_NOATIME 01000000 /* don't set atime */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
50 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
51 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
52 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
53 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
54 # define O_LARGEFILE 00100000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
55 diff -ruN uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/bfin/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
56 --- uClibc/libc/sysdeps/linux/bfin/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
57 +++ uClibc.bak/libc/sysdeps/linux/bfin/bits/fcntl.h 2013-03-09 11:25:19.163632895 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
58 @@ -44,13 +44,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
59 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
60 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
61 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
62 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
63 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
64 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
65 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
66 # define O_NOATIME 01000000 /* don't set atime */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
67 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
68 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
70 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
71 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
72 diff -ruN uClibc/libc/sysdeps/linux/c6x/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/c6x/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
73 --- uClibc/libc/sysdeps/linux/c6x/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
74 +++ uClibc.bak/libc/sysdeps/linux/c6x/bits/fcntl.h 2013-03-09 11:25:26.551633203 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
75 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
76 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
77 #define O_DIRECT 040000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
78 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
79 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
80 # define O_LARGEFILE 0100000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
81 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
82 # define O_NOFOLLOW 0400000 /* don't follow links */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
83 # define O_NOATIME 01000000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
84 # define O_CLOEXEC 02000000/* set close on exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
85 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
86 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
87 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
88 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
89 diff -ruN uClibc/libc/sysdeps/linux/cris/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/cris/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
90 --- uClibc/libc/sysdeps/linux/cris/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
91 +++ uClibc.bak/libc/sysdeps/linux/cris/bits/fcntl.h 2013-03-09 11:25:45.451633989 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
92 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
93 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
94 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
95 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
96 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
97 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
98 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
99 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
100 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
101 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
102 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
103 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
104 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
105 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
106 diff -ruN uClibc/libc/sysdeps/linux/e1/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/e1/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
107 --- uClibc/libc/sysdeps/linux/e1/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
108 +++ uClibc.bak/libc/sysdeps/linux/e1/bits/fcntl.h 2013-03-09 11:25:55.419634404 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
109 @@ -41,11 +41,9 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
110 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
111 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
112 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
113 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
114 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
115 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
116 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
117 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
118 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
119 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
120 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
121 diff -ruN uClibc/libc/sysdeps/linux/frv/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/frv/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
122 --- uClibc/libc/sysdeps/linux/frv/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
123 +++ uClibc.bak/libc/sysdeps/linux/frv/bits/fcntl.h 2013-03-09 11:26:02.991634720 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
124 @@ -41,13 +41,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
125 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
126 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
127 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
128 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
129 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
130 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
131 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
132 # define O_NOATIME 01000000 /* don't set atime */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
133 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
134 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
135 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
136 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
137 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
138 diff -ruN uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/h8300/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
139 --- uClibc/libc/sysdeps/linux/h8300/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
140 +++ uClibc.bak/libc/sysdeps/linux/h8300/bits/fcntl.h 2013-03-09 11:26:10.427635023 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
141 @@ -41,11 +41,9 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
142 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
143 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
144 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
145 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
146 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
147 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
148 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
149 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
150 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
151 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
152 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
153 diff -ruN uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/hppa/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
154 --- uClibc/libc/sysdeps/linux/hppa/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
155 +++ uClibc.bak/libc/sysdeps/linux/hppa/bits/fcntl.h 2013-03-09 11:27:04.703637295 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
156 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
157 #define O_NOCTTY 00400000 /* not fcntl */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
158 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
159 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
160 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
161 # define O_DIRECT 00040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
162 # define O_DIRECTORY 00010000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
163 # define O_NOFOLLOW 00000200 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
164 # define O_NOATIME 04000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
165 # define O_CLOEXEC 010000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
166 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
167 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
168 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
169 # define O_LARGEFILE 00004000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
170 diff -ruN uClibc/libc/sysdeps/linux/i386/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/i386/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
171 --- uClibc/libc/sysdeps/linux/i386/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
172 +++ uClibc.bak/libc/sysdeps/linux/i386/bits/fcntl.h 2013-03-09 11:27:11.279637566 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
173 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
174 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
175 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
176 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
177 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
178 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
179 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
180 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
181 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
182 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
183 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
184 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
185 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
186 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
187 diff -ruN uClibc/libc/sysdeps/linux/i960/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/i960/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
188 --- uClibc/libc/sysdeps/linux/i960/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
189 +++ uClibc.bak/libc/sysdeps/linux/i960/bits/fcntl.h 2013-03-09 11:27:16.231637774 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
190 @@ -41,11 +41,9 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
191 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
192 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
193 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
194 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
195 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
196 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
197 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
198 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
199 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
200 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
201 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
202 diff -ruN uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/ia64/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
203 --- uClibc/libc/sysdeps/linux/ia64/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
204 +++ uClibc.bak/libc/sysdeps/linux/ia64/bits/fcntl.h 2013-03-09 11:27:23.171638062 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
205 @@ -44,13 +44,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
206 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
207 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
208 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
209 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
210 # define O_DIRECT 040000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
211 # define O_DIRECTORY 0200000 /* must be a directory */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
212 # define O_NOFOLLOW 0400000 /* don't follow links */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
213 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
214 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
215 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
216 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
217 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
218 /* Not necessary, files are always with 64bit off_t. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
219 diff -ruN uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/m68k/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
220 --- uClibc/libc/sysdeps/linux/m68k/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
221 +++ uClibc.bak/libc/sysdeps/linux/m68k/bits/fcntl.h 2013-03-09 11:27:28.851638303 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
222 @@ -44,13 +44,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
223 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
224 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
225 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
226 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
227 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
228 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
229 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
230 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
231 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
232 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
233 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
234 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
235 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
236 diff -ruN uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/microblaze/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
237 --- uClibc/libc/sysdeps/linux/microblaze/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
238 +++ uClibc.bak/libc/sysdeps/linux/microblaze/bits/fcntl.h 2013-03-09 11:27:34.927638551 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
239 @@ -44,13 +44,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
240 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
241 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
242 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
243 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
244 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
245 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
246 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
247 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
248 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
249 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
250 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
251 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
252 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
253 diff -ruN uClibc/libc/sysdeps/linux/mips/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/mips/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
254 --- uClibc/libc/sysdeps/linux/mips/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
255 +++ uClibc.bak/libc/sysdeps/linux/mips/bits/fcntl.h 2013-03-09 11:28:34.023641014 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
256 @@ -46,13 +46,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
257 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
258 #define O_ASYNC 0x1000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
259 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
260 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
261 # define O_NOFOLLOW 0x20000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
262 # define O_DIRECT 0x8000 /* Direct disk access hint. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
263 # define O_DIRECTORY 0x10000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
264 # define O_NOATIME 0x40000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
265 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
266 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
267 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
268 /* For now Linux has no synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
269 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
270 diff -ruN uClibc/libc/sysdeps/linux/nios/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/nios/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
271 --- uClibc/libc/sysdeps/linux/nios/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
272 +++ uClibc.bak/libc/sysdeps/linux/nios/bits/fcntl.h 2013-03-09 11:28:52.503641785 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
273 @@ -44,11 +44,9 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
274 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
275 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
276 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
277 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
278 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
279 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
280 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
281 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
282 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
283 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
284 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
285 diff -ruN uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/nios2/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
286 --- uClibc/libc/sysdeps/linux/nios2/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
287 +++ uClibc.bak/libc/sysdeps/linux/nios2/bits/fcntl.h 2013-03-09 11:28:43.871641426 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
288 @@ -44,13 +44,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
289 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
290 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
291 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
292 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
293 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
294 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
295 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
296 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
297 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
298 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
299 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
300 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
301 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
302 diff -ruN uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/powerpc/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
303 --- uClibc/libc/sysdeps/linux/powerpc/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
304 +++ uClibc.bak/libc/sysdeps/linux/powerpc/bits/fcntl.h 2013-03-09 11:28:59.851642092 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
305 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
306 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
307 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
308 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
309 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
310 # define O_DIRECT 0400000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
311 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
312 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
313 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
314 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
315 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
316 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
317 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
318 # define O_LARGEFILE 0200000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
319 diff -ruN uClibc/libc/sysdeps/linux/sh/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/sh/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
320 --- uClibc/libc/sysdeps/linux/sh/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
321 +++ uClibc.bak/libc/sysdeps/linux/sh/bits/fcntl.h 2013-03-09 11:29:12.919642634 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
322 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
323 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
324 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
325 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
326 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
327 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
328 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
329 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
330 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
331 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
332 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
333 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
334 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
335 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
336 diff -ruN uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/sh64/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
337 --- uClibc/libc/sysdeps/linux/sh64/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
338 +++ uClibc.bak/libc/sysdeps/linux/sh64/bits/fcntl.h 2013-03-09 11:29:06.823642382 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
339 @@ -41,13 +41,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
340 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
341 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
342 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
343 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
344 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
345 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
346 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
347 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
348 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
349 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
350 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
351 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
352 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
353 diff -ruN uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/sparc/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
354 --- uClibc/libc/sysdeps/linux/sparc/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
355 +++ uClibc.bak/libc/sysdeps/linux/sparc/bits/fcntl.h 2013-03-09 11:29:18.379642857 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
356 @@ -44,13 +44,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
357 #define O_NDELAY (0x0004 | O_NONBLOCK) |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
358 #define O_NOCTTY 0x8000 /* not fcntl */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
359 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
360 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
361 # define O_DIRECTORY 0x10000 /* must be a directory */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
362 # define O_NOFOLLOW 0x20000 /* don't follow links */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
363 # define O_DIRECT 0x100000 /* direct disk access hint */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
364 # define O_NOATIME 0x200000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
365 # define O_CLOEXEC 0x400000 /* Set close_on_exit. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
366 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
367 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
368 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
369 # if __WORDSIZE == 64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
370 diff -ruN uClibc/libc/sysdeps/linux/v850/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/v850/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
371 --- uClibc/libc/sysdeps/linux/v850/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
372 +++ uClibc.bak/libc/sysdeps/linux/v850/bits/fcntl.h 2013-03-09 11:29:22.995643056 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
373 @@ -41,11 +41,9 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
374 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
375 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
376 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
377 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
378 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
379 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
380 # define O_DIRECT 0200000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
381 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
382 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
383 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
384 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
385 diff -ruN uClibc/libc/sysdeps/linux/vax/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/vax/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
386 --- uClibc/libc/sysdeps/linux/vax/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
387 +++ uClibc.bak/libc/sysdeps/linux/vax/bits/fcntl.h 2013-03-09 11:30:30.139645856 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
388 @@ -44,10 +44,8 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
389 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
390 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
391 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
392 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
393 # define O_DIRECTORY 040000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
394 # define O_NOFOLLOW 0100000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
395 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
396 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
397 /* XXX missing */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
398 #ifdef __USE_LARGEFILE64 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
399 diff -ruN uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/x86_64/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
400 --- uClibc/libc/sysdeps/linux/x86_64/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
401 +++ uClibc.bak/libc/sysdeps/linux/x86_64/bits/fcntl.h 2013-03-09 11:30:43.315646403 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
402 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
403 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
404 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
405 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
406 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
407 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
408 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
409 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
410 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
411 # define O_CLOEXEC 02000000 /* Set close_on_exec. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
412 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
413 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
414 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
415 We define the symbols here but let them do the same as O_SYNC since |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
416 diff -ruN uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h uClibc.bak/libc/sysdeps/linux/xtensa/bits/fcntl.h |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
417 --- uClibc/libc/sysdeps/linux/xtensa/bits/fcntl.h 2012-05-15 02:20:09.000000000 -0500 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
418 +++ uClibc.bak/libc/sysdeps/linux/xtensa/bits/fcntl.h 2013-03-09 11:30:49.987646679 -0600 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
419 @@ -45,13 +45,11 @@ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
420 #define O_FSYNC O_SYNC |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
421 #define O_ASYNC 020000 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
422 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
423 -#ifdef __USE_GNU |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
424 # define O_DIRECT 040000 /* Direct disk access. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
425 # define O_DIRECTORY 0200000 /* Must be a directory. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
426 # define O_NOFOLLOW 0400000 /* Do not follow links. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
427 # define O_NOATIME 01000000 /* Do not set atime. */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
428 # define O_CLOEXEC 02000000 /* set close_on_exec */ |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
429 -#endif |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
430 |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
431 /* For now Linux has synchronisity options for data and read operations. |
90c7caa156e2
Work around a uClibc bug where posix-2008 said to define something and they still think it's a gnu extension in 2013.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
432 We define the symbols here but let them do the same as O_SYNC since |