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