Guido van Rossum | e5e73b9 | 1994-10-09 23:03:12 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/sys/fcntl.h |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 2 | |
| 3 | # Included from sys/feature_tests.h |
| 4 | _POSIX_C_SOURCE = 1 |
| 5 | |
| 6 | # Included from sys/types.h |
| 7 | |
| 8 | # Included from sys/isa_defs.h |
| 9 | _CHAR_ALIGNMENT = 1 |
| 10 | _SHORT_ALIGNMENT = 2 |
| 11 | _INT_ALIGNMENT = 4 |
| 12 | _LONG_ALIGNMENT = 4 |
| 13 | _LONG_LONG_ALIGNMENT = 4 |
| 14 | _DOUBLE_ALIGNMENT = 4 |
| 15 | _LONG_DOUBLE_ALIGNMENT = 4 |
| 16 | _POINTER_ALIGNMENT = 4 |
| 17 | _MAX_ALIGNMENT = 4 |
| 18 | _ALIGNMENT_REQUIRED = 0 |
| 19 | _CHAR_ALIGNMENT = 1 |
| 20 | _SHORT_ALIGNMENT = 2 |
| 21 | _INT_ALIGNMENT = 4 |
| 22 | _LONG_ALIGNMENT = 4 |
| 23 | _LONG_LONG_ALIGNMENT = 8 |
| 24 | _DOUBLE_ALIGNMENT = 8 |
| 25 | _LONG_DOUBLE_ALIGNMENT = 16 |
| 26 | _POINTER_ALIGNMENT = 4 |
| 27 | _MAX_ALIGNMENT = 16 |
| 28 | _ALIGNMENT_REQUIRED = 1 |
| 29 | _CHAR_ALIGNMENT = 1 |
| 30 | _SHORT_ALIGNMENT = 2 |
| 31 | _INT_ALIGNMENT = 4 |
| 32 | _LONG_ALIGNMENT = 4 |
| 33 | _LONG_LONG_ALIGNMENT = 8 |
| 34 | _DOUBLE_ALIGNMENT = 8 |
| 35 | _LONG_DOUBLE_ALIGNMENT = 8 |
| 36 | _POINTER_ALIGNMENT = 4 |
| 37 | _MAX_ALIGNMENT = 8 |
| 38 | _ALIGNMENT_REQUIRED = 1 |
| 39 | |
| 40 | # Included from sys/machtypes.h |
| 41 | SHRT_MIN = -32768 |
| 42 | SHRT_MAX = 32767 |
| 43 | INT_MIN = (-2147483647-1) |
| 44 | INT_MAX = 2147483647 |
| 45 | LONG_MIN = (-2147483647-1) |
| 46 | LONG_MAX = 2147483647 |
| 47 | P_MYID = (-1) |
| 48 | |
| 49 | # Included from sys/select.h |
| 50 | |
| 51 | # Included from sys/time.h |
| 52 | DST_NONE = 0 |
| 53 | DST_USA = 1 |
| 54 | DST_AUST = 2 |
| 55 | DST_WET = 3 |
| 56 | DST_MET = 4 |
| 57 | DST_EET = 5 |
| 58 | DST_CAN = 6 |
| 59 | DST_GB = 7 |
| 60 | DST_RUM = 8 |
| 61 | DST_TUR = 9 |
| 62 | DST_AUSTALT = 10 |
| 63 | ITIMER_REAL = 0 |
| 64 | ITIMER_VIRTUAL = 1 |
| 65 | ITIMER_PROF = 2 |
| 66 | ITIMER_REALPROF = 3 |
| 67 | SEC = 1 |
| 68 | MILLISEC = 1000 |
| 69 | MICROSEC = 1000000 |
| 70 | NANOSEC = 1000000000 |
| 71 | __CLOCK_REALTIME0 = 0 |
| 72 | CLOCK_VIRTUAL = 1 |
| 73 | CLOCK_PROF = 2 |
| 74 | __CLOCK_REALTIME3 = 3 |
| 75 | CLOCK_REALTIME = __CLOCK_REALTIME3 |
| 76 | CLOCK_REALTIME = __CLOCK_REALTIME0 |
| 77 | TIMER_RELTIME = 0x0 |
| 78 | TIMER_ABSTIME = 0x1 |
| 79 | |
| 80 | # Included from sys/mutex.h |
| 81 | |
| 82 | # Included from sys/dki_lkinfo.h |
| 83 | |
| 84 | # Included from sys/dl.h |
| 85 | NOSTATS = 1 |
| 86 | LSB_NLKDS = 91 |
| 87 | def MUTEX_HELD(x): return (mutex_owned(x)) |
| 88 | |
| 89 | |
| 90 | # Included from time.h |
| 91 | NULL = 0 |
| 92 | CLOCKS_PER_SEC = 1000000 |
| 93 | |
| 94 | # Included from sys/siginfo.h |
| 95 | SIGEV_NONE = 1 |
| 96 | SIGEV_SIGNAL = 2 |
| 97 | SIGEV_THREAD = 3 |
| 98 | SI_NOINFO = 32767 |
| 99 | SI_USER = 0 |
| 100 | SI_LWP = (-1) |
| 101 | SI_QUEUE = (-2) |
| 102 | SI_TIMER = (-3) |
| 103 | SI_ASYNCIO = (-4) |
| 104 | SI_MESGQ = (-5) |
| 105 | |
| 106 | # Included from sys/machsig.h |
| 107 | ILL_ILLOPC = 1 |
| 108 | ILL_ILLOPN = 2 |
| 109 | ILL_ILLADR = 3 |
| 110 | ILL_ILLTRP = 4 |
| 111 | ILL_PRVOPC = 5 |
| 112 | ILL_PRVREG = 6 |
| 113 | ILL_COPROC = 7 |
| 114 | ILL_BADSTK = 8 |
| 115 | NSIGILL = 8 |
| 116 | EMT_TAGOVF = 1 |
| 117 | NSIGEMT = 1 |
| 118 | FPE_INTDIV = 1 |
| 119 | FPE_INTOVF = 2 |
| 120 | FPE_FLTDIV = 3 |
| 121 | FPE_FLTOVF = 4 |
| 122 | FPE_FLTUND = 5 |
| 123 | FPE_FLTRES = 6 |
| 124 | FPE_FLTINV = 7 |
| 125 | FPE_FLTSUB = 8 |
| 126 | NSIGFPE = 8 |
| 127 | SEGV_MAPERR = 1 |
| 128 | SEGV_ACCERR = 2 |
| 129 | NSIGSEGV = 2 |
| 130 | BUS_ADRALN = 1 |
| 131 | BUS_ADRERR = 2 |
| 132 | BUS_OBJERR = 3 |
| 133 | NSIGBUS = 3 |
| 134 | TRAP_BRKPT = 1 |
| 135 | TRAP_TRACE = 2 |
| 136 | NSIGTRAP = 2 |
| 137 | CLD_EXITED = 1 |
| 138 | CLD_KILLED = 2 |
| 139 | CLD_DUMPED = 3 |
| 140 | CLD_TRAPPED = 4 |
| 141 | CLD_STOPPED = 5 |
| 142 | CLD_CONTINUED = 6 |
| 143 | NSIGCLD = 6 |
| 144 | POLL_IN = 1 |
| 145 | POLL_OUT = 2 |
| 146 | POLL_MSG = 3 |
| 147 | POLL_ERR = 4 |
| 148 | POLL_PRI = 5 |
| 149 | POLL_HUP = 6 |
| 150 | NSIGPOLL = 6 |
| 151 | PROF_SIG = 1 |
| 152 | NSIGPROF = 1 |
| 153 | SI_MAXSZ = 128 |
| 154 | def SI_CANQUEUE(c): return ((c) <= SI_QUEUE) |
| 155 | |
| 156 | FD_SETSIZE = 1024 |
| 157 | NBBY = 8 |
Guido van Rossum | e5e73b9 | 1994-10-09 23:03:12 +0000 | [diff] [blame] | 158 | O_RDONLY = 0 |
| 159 | O_WRONLY = 1 |
| 160 | O_RDWR = 2 |
| 161 | O_NDELAY = 0x04 |
| 162 | O_APPEND = 0x08 |
| 163 | O_SYNC = 0x10 |
| 164 | O_DSYNC = 0x40 |
| 165 | O_RSYNC = 0x8000 |
| 166 | O_NONBLOCK = 0x80 |
| 167 | O_PRIV = 0x1000 |
| 168 | O_CREAT = 0x100 |
| 169 | O_TRUNC = 0x200 |
| 170 | O_EXCL = 0x400 |
| 171 | O_NOCTTY = 0x800 |
| 172 | F_DUPFD = 0 |
| 173 | F_GETFD = 1 |
| 174 | F_SETFD = 2 |
| 175 | F_GETFL = 3 |
| 176 | F_SETFL = 4 |
| 177 | F_SETLK = 6 |
| 178 | F_SETLKW = 7 |
| 179 | F_O_GETLK = 5 |
| 180 | F_SETLK = 6 |
| 181 | F_SETLKW = 7 |
| 182 | F_CHKFL = 8 |
| 183 | F_ALLOCSP = 10 |
| 184 | F_FREESP = 11 |
| 185 | F_ISSTREAM = 13 |
| 186 | F_GETLK = 14 |
| 187 | F_PRIV = 15 |
| 188 | F_NPRIV = 16 |
| 189 | F_QUOTACTL = 17 |
| 190 | F_BLOCKS = 18 |
| 191 | F_BLKSIZE = 19 |
| 192 | F_RSETLK = 20 |
| 193 | F_RGETLK = 21 |
| 194 | F_RSETLKW = 22 |
| 195 | F_GETOWN = 23 |
| 196 | F_SETOWN = 24 |
| 197 | F_REVOKE = 25 |
Guido van Rossum | 725a67e | 1997-05-13 17:45:56 +0000 | [diff] [blame] | 198 | F_HASREMOTELOCKS = 26 |
Guido van Rossum | e5e73b9 | 1994-10-09 23:03:12 +0000 | [diff] [blame] | 199 | F_RDLCK = 01 |
| 200 | F_WRLCK = 02 |
| 201 | F_UNLCK = 03 |
| 202 | F_UNLKSYS = 04 |
| 203 | O_ACCMODE = 3 |
| 204 | FD_CLOEXEC = 1 |