Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 1 | /* Generated by ./xlat/gen.sh from ./xlat/open_mode_flags.in; do not edit. */ |
| 2 | |
| 3 | const struct xlat open_mode_flags[] = { |
| 4 | #if defined(O_CREAT) || (defined(HAVE_DECL_O_CREAT) && HAVE_DECL_O_CREAT) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 5 | XLAT(O_CREAT), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 6 | #endif |
| 7 | #if defined(O_EXCL) || (defined(HAVE_DECL_O_EXCL) && HAVE_DECL_O_EXCL) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 8 | XLAT(O_EXCL), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 9 | #endif |
| 10 | #if defined(O_NOCTTY) || (defined(HAVE_DECL_O_NOCTTY) && HAVE_DECL_O_NOCTTY) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 11 | XLAT(O_NOCTTY), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 12 | #endif |
| 13 | #if defined(O_TRUNC) || (defined(HAVE_DECL_O_TRUNC) && HAVE_DECL_O_TRUNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 14 | XLAT(O_TRUNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 15 | #endif |
| 16 | #if defined(O_APPEND) || (defined(HAVE_DECL_O_APPEND) && HAVE_DECL_O_APPEND) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 17 | XLAT(O_APPEND), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 18 | #endif |
| 19 | #if defined(O_NONBLOCK) || (defined(HAVE_DECL_O_NONBLOCK) && HAVE_DECL_O_NONBLOCK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 20 | XLAT(O_NONBLOCK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 21 | #endif |
| 22 | #if defined(O_SYNC) || (defined(HAVE_DECL_O_SYNC) && HAVE_DECL_O_SYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 23 | XLAT(O_SYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 24 | #endif |
| 25 | #if defined(O_ASYNC) || (defined(HAVE_DECL_O_ASYNC) && HAVE_DECL_O_ASYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 26 | XLAT(O_ASYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 27 | #endif |
| 28 | #if defined(O_DSYNC) || (defined(HAVE_DECL_O_DSYNC) && HAVE_DECL_O_DSYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 29 | XLAT(O_DSYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 30 | #endif |
| 31 | #if defined(O_RSYNC) || (defined(HAVE_DECL_O_RSYNC) && HAVE_DECL_O_RSYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 32 | XLAT(O_RSYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 33 | #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 Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 36 | XLAT(O_NDELAY), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 37 | #endif |
| 38 | #endif |
| 39 | #if defined(O_PRIV) || (defined(HAVE_DECL_O_PRIV) && HAVE_DECL_O_PRIV) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 40 | XLAT(O_PRIV), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 41 | #endif |
| 42 | #if defined(O_DIRECT) || (defined(HAVE_DECL_O_DIRECT) && HAVE_DECL_O_DIRECT) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 43 | XLAT(O_DIRECT), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 44 | #endif |
| 45 | #if defined(O_LARGEFILE) || (defined(HAVE_DECL_O_LARGEFILE) && HAVE_DECL_O_LARGEFILE) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 46 | XLAT(O_LARGEFILE), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 47 | #endif |
| 48 | #if defined(O_DIRECTORY) || (defined(HAVE_DECL_O_DIRECTORY) && HAVE_DECL_O_DIRECTORY) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 49 | XLAT(O_DIRECTORY), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 50 | #endif |
| 51 | #if defined(O_NOFOLLOW) || (defined(HAVE_DECL_O_NOFOLLOW) && HAVE_DECL_O_NOFOLLOW) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 52 | XLAT(O_NOFOLLOW), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 53 | #endif |
| 54 | #if defined(O_NOATIME) || (defined(HAVE_DECL_O_NOATIME) && HAVE_DECL_O_NOATIME) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 55 | XLAT(O_NOATIME), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 56 | #endif |
| 57 | #if defined(O_CLOEXEC) || (defined(HAVE_DECL_O_CLOEXEC) && HAVE_DECL_O_CLOEXEC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 58 | XLAT(O_CLOEXEC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 59 | #endif |
| 60 | #if defined(O_PATH) || (defined(HAVE_DECL_O_PATH) && HAVE_DECL_O_PATH) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 61 | XLAT(O_PATH), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 62 | #endif |
Elliott Hughes | caca6ee | 2015-01-06 12:18:17 -0800 | [diff] [blame] | 63 | #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 Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 67 | #if defined(FNDELAY) || (defined(HAVE_DECL_FNDELAY) && HAVE_DECL_FNDELAY) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 68 | XLAT(FNDELAY), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 69 | #endif |
| 70 | #if defined(FAPPEND) || (defined(HAVE_DECL_FAPPEND) && HAVE_DECL_FAPPEND) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 71 | XLAT(FAPPEND), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 72 | #endif |
| 73 | #if defined(FMARK) || (defined(HAVE_DECL_FMARK) && HAVE_DECL_FMARK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 74 | XLAT(FMARK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 75 | #endif |
| 76 | #if defined(FDEFER) || (defined(HAVE_DECL_FDEFER) && HAVE_DECL_FDEFER) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 77 | XLAT(FDEFER), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 78 | #endif |
| 79 | #if defined(FASYNC) || (defined(HAVE_DECL_FASYNC) && HAVE_DECL_FASYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 80 | XLAT(FASYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 81 | #endif |
| 82 | #if defined(FSHLOCK) || (defined(HAVE_DECL_FSHLOCK) && HAVE_DECL_FSHLOCK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 83 | XLAT(FSHLOCK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 84 | #endif |
| 85 | #if defined(FEXLOCK) || (defined(HAVE_DECL_FEXLOCK) && HAVE_DECL_FEXLOCK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 86 | XLAT(FEXLOCK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 87 | #endif |
| 88 | #if defined(FCREAT) || (defined(HAVE_DECL_FCREAT) && HAVE_DECL_FCREAT) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 89 | XLAT(FCREAT), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 90 | #endif |
| 91 | #if defined(FTRUNC) || (defined(HAVE_DECL_FTRUNC) && HAVE_DECL_FTRUNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 92 | XLAT(FTRUNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 93 | #endif |
| 94 | #if defined(FEXCL) || (defined(HAVE_DECL_FEXCL) && HAVE_DECL_FEXCL) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 95 | XLAT(FEXCL), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 96 | #endif |
| 97 | #if defined(FNBIO) || (defined(HAVE_DECL_FNBIO) && HAVE_DECL_FNBIO) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 98 | XLAT(FNBIO), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 99 | #endif |
| 100 | #if defined(FSYNC) || (defined(HAVE_DECL_FSYNC) && HAVE_DECL_FSYNC) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 101 | XLAT(FSYNC), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 102 | #endif |
| 103 | #if defined(FNOCTTY) || (defined(HAVE_DECL_FNOCTTY) && HAVE_DECL_FNOCTTY) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 104 | XLAT(FNOCTTY), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 105 | #endif |
| 106 | #if defined(O_SHLOCK) || (defined(HAVE_DECL_O_SHLOCK) && HAVE_DECL_O_SHLOCK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 107 | XLAT(O_SHLOCK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 108 | #endif |
| 109 | #if defined(O_EXLOCK) || (defined(HAVE_DECL_O_EXLOCK) && HAVE_DECL_O_EXLOCK) |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 110 | XLAT(O_EXLOCK), |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 111 | #endif |
Elliott Hughes | 0328d0a | 2015-03-18 11:18:43 -0700 | [diff] [blame] | 112 | XLAT_END |
Elliott Hughes | 8272837 | 2014-06-06 22:49:31 -0700 | [diff] [blame] | 113 | }; |