blob: 67f198be5904ef358c3eda6cac4bef144a46cc3b [file] [log] [blame]
Elliott Hughes82728372014-06-06 22:49:31 -07001/* Generated by ./xlat/gen.sh from ./xlat/open_mode_flags.in; do not edit. */
2
3const struct xlat open_mode_flags[] = {
4#if defined(O_CREAT) || (defined(HAVE_DECL_O_CREAT) && HAVE_DECL_O_CREAT)
Elliott Hughes0328d0a2015-03-18 11:18:43 -07005 XLAT(O_CREAT),
Elliott Hughes82728372014-06-06 22:49:31 -07006#endif
7#if defined(O_EXCL) || (defined(HAVE_DECL_O_EXCL) && HAVE_DECL_O_EXCL)
Elliott Hughes0328d0a2015-03-18 11:18:43 -07008 XLAT(O_EXCL),
Elliott Hughes82728372014-06-06 22:49:31 -07009#endif
10#if defined(O_NOCTTY) || (defined(HAVE_DECL_O_NOCTTY) && HAVE_DECL_O_NOCTTY)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070011 XLAT(O_NOCTTY),
Elliott Hughes82728372014-06-06 22:49:31 -070012#endif
13#if defined(O_TRUNC) || (defined(HAVE_DECL_O_TRUNC) && HAVE_DECL_O_TRUNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070014 XLAT(O_TRUNC),
Elliott Hughes82728372014-06-06 22:49:31 -070015#endif
16#if defined(O_APPEND) || (defined(HAVE_DECL_O_APPEND) && HAVE_DECL_O_APPEND)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070017 XLAT(O_APPEND),
Elliott Hughes82728372014-06-06 22:49:31 -070018#endif
19#if defined(O_NONBLOCK) || (defined(HAVE_DECL_O_NONBLOCK) && HAVE_DECL_O_NONBLOCK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070020 XLAT(O_NONBLOCK),
Elliott Hughes82728372014-06-06 22:49:31 -070021#endif
22#if defined(O_SYNC) || (defined(HAVE_DECL_O_SYNC) && HAVE_DECL_O_SYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070023 XLAT(O_SYNC),
Elliott Hughes82728372014-06-06 22:49:31 -070024#endif
25#if defined(O_ASYNC) || (defined(HAVE_DECL_O_ASYNC) && HAVE_DECL_O_ASYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070026 XLAT(O_ASYNC),
Elliott Hughes82728372014-06-06 22:49:31 -070027#endif
28#if defined(O_DSYNC) || (defined(HAVE_DECL_O_DSYNC) && HAVE_DECL_O_DSYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070029 XLAT(O_DSYNC),
Elliott Hughes82728372014-06-06 22:49:31 -070030#endif
31#if defined(O_RSYNC) || (defined(HAVE_DECL_O_RSYNC) && HAVE_DECL_O_RSYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070032 XLAT(O_RSYNC),
Elliott Hughes82728372014-06-06 22:49:31 -070033#endif
34#if defined(O_NDELAY) && (O_NDELAY != O_NONBLOCK)
35#if defined(O_NDELAY) || (defined(HAVE_DECL_O_NDELAY) && HAVE_DECL_O_NDELAY)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070036 XLAT(O_NDELAY),
Elliott Hughes82728372014-06-06 22:49:31 -070037#endif
38#endif
39#if defined(O_PRIV) || (defined(HAVE_DECL_O_PRIV) && HAVE_DECL_O_PRIV)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070040 XLAT(O_PRIV),
Elliott Hughes82728372014-06-06 22:49:31 -070041#endif
42#if defined(O_DIRECT) || (defined(HAVE_DECL_O_DIRECT) && HAVE_DECL_O_DIRECT)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070043 XLAT(O_DIRECT),
Elliott Hughes82728372014-06-06 22:49:31 -070044#endif
45#if defined(O_LARGEFILE) || (defined(HAVE_DECL_O_LARGEFILE) && HAVE_DECL_O_LARGEFILE)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070046 XLAT(O_LARGEFILE),
Elliott Hughes82728372014-06-06 22:49:31 -070047#endif
48#if defined(O_DIRECTORY) || (defined(HAVE_DECL_O_DIRECTORY) && HAVE_DECL_O_DIRECTORY)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070049 XLAT(O_DIRECTORY),
Elliott Hughes82728372014-06-06 22:49:31 -070050#endif
51#if defined(O_NOFOLLOW) || (defined(HAVE_DECL_O_NOFOLLOW) && HAVE_DECL_O_NOFOLLOW)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070052 XLAT(O_NOFOLLOW),
Elliott Hughes82728372014-06-06 22:49:31 -070053#endif
54#if defined(O_NOATIME) || (defined(HAVE_DECL_O_NOATIME) && HAVE_DECL_O_NOATIME)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070055 XLAT(O_NOATIME),
Elliott Hughes82728372014-06-06 22:49:31 -070056#endif
57#if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070058 XLAT(O_CLOEXEC),
Elliott Hughes82728372014-06-06 22:49:31 -070059#endif
60#if defined(O_PATH) || (defined(HAVE_DECL_O_PATH) && HAVE_DECL_O_PATH)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070061 XLAT(O_PATH),
Elliott Hughes82728372014-06-06 22:49:31 -070062#endif
Elliott Hughescaca6ee2015-01-06 12:18:17 -080063#if defined(O_TMPFILE) && defined(O_DIRECTORY)
64/* The kernel & C libraries often inline O_DIRECTORY */
65{ O_TMPFILE & ~O_DIRECTORY, "O_TMPFILE" },
66#endif
Elliott Hughes82728372014-06-06 22:49:31 -070067#if defined(FNDELAY) || (defined(HAVE_DECL_FNDELAY) && HAVE_DECL_FNDELAY)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070068 XLAT(FNDELAY),
Elliott Hughes82728372014-06-06 22:49:31 -070069#endif
70#if defined(FAPPEND) || (defined(HAVE_DECL_FAPPEND) && HAVE_DECL_FAPPEND)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070071 XLAT(FAPPEND),
Elliott Hughes82728372014-06-06 22:49:31 -070072#endif
73#if defined(FMARK) || (defined(HAVE_DECL_FMARK) && HAVE_DECL_FMARK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070074 XLAT(FMARK),
Elliott Hughes82728372014-06-06 22:49:31 -070075#endif
76#if defined(FDEFER) || (defined(HAVE_DECL_FDEFER) && HAVE_DECL_FDEFER)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070077 XLAT(FDEFER),
Elliott Hughes82728372014-06-06 22:49:31 -070078#endif
79#if defined(FASYNC) || (defined(HAVE_DECL_FASYNC) && HAVE_DECL_FASYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070080 XLAT(FASYNC),
Elliott Hughes82728372014-06-06 22:49:31 -070081#endif
82#if defined(FSHLOCK) || (defined(HAVE_DECL_FSHLOCK) && HAVE_DECL_FSHLOCK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070083 XLAT(FSHLOCK),
Elliott Hughes82728372014-06-06 22:49:31 -070084#endif
85#if defined(FEXLOCK) || (defined(HAVE_DECL_FEXLOCK) && HAVE_DECL_FEXLOCK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070086 XLAT(FEXLOCK),
Elliott Hughes82728372014-06-06 22:49:31 -070087#endif
88#if defined(FCREAT) || (defined(HAVE_DECL_FCREAT) && HAVE_DECL_FCREAT)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070089 XLAT(FCREAT),
Elliott Hughes82728372014-06-06 22:49:31 -070090#endif
91#if defined(FTRUNC) || (defined(HAVE_DECL_FTRUNC) && HAVE_DECL_FTRUNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070092 XLAT(FTRUNC),
Elliott Hughes82728372014-06-06 22:49:31 -070093#endif
94#if defined(FEXCL) || (defined(HAVE_DECL_FEXCL) && HAVE_DECL_FEXCL)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070095 XLAT(FEXCL),
Elliott Hughes82728372014-06-06 22:49:31 -070096#endif
97#if defined(FNBIO) || (defined(HAVE_DECL_FNBIO) && HAVE_DECL_FNBIO)
Elliott Hughes0328d0a2015-03-18 11:18:43 -070098 XLAT(FNBIO),
Elliott Hughes82728372014-06-06 22:49:31 -070099#endif
100#if defined(FSYNC) || (defined(HAVE_DECL_FSYNC) && HAVE_DECL_FSYNC)
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700101 XLAT(FSYNC),
Elliott Hughes82728372014-06-06 22:49:31 -0700102#endif
103#if defined(FNOCTTY) || (defined(HAVE_DECL_FNOCTTY) && HAVE_DECL_FNOCTTY)
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700104 XLAT(FNOCTTY),
Elliott Hughes82728372014-06-06 22:49:31 -0700105#endif
106#if defined(O_SHLOCK) || (defined(HAVE_DECL_O_SHLOCK) && HAVE_DECL_O_SHLOCK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700107 XLAT(O_SHLOCK),
Elliott Hughes82728372014-06-06 22:49:31 -0700108#endif
109#if defined(O_EXLOCK) || (defined(HAVE_DECL_O_EXLOCK) && HAVE_DECL_O_EXLOCK)
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700110 XLAT(O_EXLOCK),
Elliott Hughes82728372014-06-06 22:49:31 -0700111#endif
Elliott Hughes0328d0a2015-03-18 11:18:43 -0700112 XLAT_END
Elliott Hughes82728372014-06-06 22:49:31 -0700113};