blob: e35ed48783201a5049b68f16d09dc0ffd9cce4c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
/* Generated by maint/gen_xlat_defs.sh -f '#o' -p '[_OF]' -c 'asm-generic/fcntl.h' -a 'asm/fcntl.h' */
#if defined __hppa__ || defined __mips__
O_CREAT 0400
#elif defined __alpha__ || defined __sparc__
O_CREAT 01000
#else
O_CREAT 0100
#endif
#if defined __hppa__ || defined __mips__
O_EXCL 02000
#elif defined __alpha__ || defined __sparc__
O_EXCL 04000
#else
O_EXCL 0200
#endif
#if defined __mips__
O_NOCTTY 04000
#elif defined __alpha__
O_NOCTTY 010000
#elif defined __sparc__
O_NOCTTY 0100000
#elif defined __hppa__
O_NOCTTY 0400000
#else
O_NOCTTY 0400
#endif
#if defined __alpha__ || defined __sparc__
O_TRUNC 02000
#else
O_TRUNC 01000
#endif
#if defined __alpha__ || defined __hppa__ || defined __mips__ || defined __sparc__
O_APPEND 010
#else
O_APPEND 02000
#endif
#if defined __alpha__
O_NONBLOCK 04
#elif defined __mips__
O_NONBLOCK 0200
#elif defined __sparc__
O_NONBLOCK 040000
#elif defined __hppa__
O_NONBLOCK 0200004
#else
O_NONBLOCK 04000
#endif
/* O_SYNC should be listed before O_DSYNC and __O_SYNC */
O_SYNC
#if defined __mips__
__O_SYNC 040000
#elif defined __hppa__
__O_SYNC 0100000
#elif defined __alpha__
__O_SYNC 020000000
#elif defined __sparc__
__O_SYNC 040000000
#else
__O_SYNC 04000000
#endif
O_ASYNC
#if defined __mips__
O_DSYNC 020
#elif defined __sparc__
O_DSYNC 020000
#elif defined __alpha__
O_DSYNC 040000
#elif defined __hppa__
O_DSYNC 01000000
#else
O_DSYNC 010000
#endif
#if defined __hppa__
O_RSYNC 02000000
#else
O_RSYNC
#endif
#if defined O_NDELAY && O_NDELAY & O_NONBLOCK /* O_NDELAY is unusual */
# ifndef STRACE_WORKAROUND_FOR_O_NDELAY
# define STRACE_WORKAROUND_FOR_O_NDELAY
/* On sparc32 O_NDELAY is erroneously defined to (0x0004 | O_NONBLOCK). */
/* On many architectures O_NDELAY is defined to O_NONBLOCK. */
/* Both cases are wrong and have to be fixed. */
# undef O_NDELAY
# endif
#endif /* O_NDELAY & O_NONBLOCK */
#if defined __sparc__
O_NDELAY 04
#else
O_NDELAY
#endif
#if defined __sparc__
O_DIRECT 04000000
#elif defined __mips__
O_DIRECT 0100000
#elif defined __arm__ || defined __arm64__ || defined __aarch64__ || defined __m68k__
O_DIRECT 0200000
#elif defined __powerpc__
O_DIRECT 0400000
#elif defined __alpha__
O_DIRECT 02000000
#else
O_DIRECT 040000
#endif
#if defined __hppa__
O_LARGEFILE 04000
#elif defined __mips__
O_LARGEFILE 020000
#elif defined __powerpc__
O_LARGEFILE 0200000
#elif defined __alpha__ || defined __arm__ || defined __arm64__ || defined __aarch64__ || defined __m68k__
O_LARGEFILE 0400000
#elif defined __sparc__
O_LARGEFILE 01000000
#else
O_LARGEFILE 0100000
#endif
#if defined __hppa__
O_NOFOLLOW 0200
#elif defined __arm__ || defined __arm64__ || defined __aarch64__ || defined __m68k__ || defined __powerpc__
O_NOFOLLOW 0100000
#elif defined __alpha__
O_NOFOLLOW 0200000
#else
O_NOFOLLOW 0400000
#endif
#if defined __alpha__ || defined __hppa__
O_NOATIME 04000000
#elif defined __sparc__
O_NOATIME 010000000
#else
O_NOATIME 01000000
#endif
#if defined __alpha__ || defined __hppa__
O_CLOEXEC 010000000
#elif defined __sparc__
O_CLOEXEC 020000000
#else
O_CLOEXEC 02000000
#endif
#if defined __hppa__
O_PATH 020000000
#elif defined __alpha__
O_PATH 040000000
#elif defined __sparc__
O_PATH 0100000000
#else
O_PATH 010000000
#endif
/* O_TMPFILE should be listed before O_DIRECTORY and __O_TMPFILE */
O_TMPFILE
#if defined __hppa__
__O_TMPFILE 040000000
#elif defined __alpha__
__O_TMPFILE 0100000000
#elif defined __sparc__
__O_TMPFILE 0200000000
#else
__O_TMPFILE 020000000
#endif
#if defined __hppa__
O_DIRECTORY 010000
#elif defined __arm__ || defined __arm64__ || defined __aarch64__ || defined __m68k__ || defined __powerpc__
O_DIRECTORY 040000
#elif defined __alpha__
O_DIRECTORY 0100000
#else
O_DIRECTORY 0200000
#endif
#if defined __sparc__
FASYNC 0100
#elif defined __mips__
FASYNC 010000
#else
FASYNC 020000
#endif
|