Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/sys/stropts.h |
| 2 | |
| 3 | # Included from sys/types.h |
| 4 | def quad_low(x): return x.val[0] |
| 5 | |
| 6 | ADT_EMASKSIZE = 8 |
| 7 | SHRT_MIN = -32768 |
| 8 | SHRT_MAX = 32767 |
| 9 | INT_MIN = (-2147483647-1) |
| 10 | INT_MAX = 2147483647 |
| 11 | LONG_MIN = (-2147483647-1) |
| 12 | LONG_MAX = 2147483647 |
| 13 | OFF32_MAX = LONG_MAX |
| 14 | ISTAT_ASSERTED = 0 |
| 15 | ISTAT_ASSUMED = 1 |
| 16 | ISTAT_NONE = 2 |
| 17 | OFF_MAX = OFF32_MAX |
| 18 | CLOCK_MAX = LONG_MAX |
| 19 | P_MYID = (-1) |
| 20 | P_MYHOSTID = (-1) |
| 21 | |
| 22 | # Included from sys/select.h |
| 23 | FD_SETSIZE = 4096 |
| 24 | NBBY = 8 |
| 25 | NULL = 0 |
| 26 | |
| 27 | # Included from sys/conf.h |
| 28 | D_NEW = 0x00 |
| 29 | D_OLD = 0x01 |
| 30 | D_DMA = 0x02 |
| 31 | D_BLKOFF = 0x400 |
| 32 | D_LFS = 0x8000 |
| 33 | D_STR = 0x0800 |
| 34 | D_MOD = 0x1000 |
| 35 | D_PSEUDO = 0x2000 |
| 36 | D_RANDOM = 0x4000 |
| 37 | D_HOT = 0x10000 |
| 38 | D_SEEKNEG = 0x04 |
| 39 | D_TAPE = 0x08 |
| 40 | D_NOBRKUP = 0x10 |
| 41 | D_INITPUB = 0x20 |
| 42 | D_NOSPECMACDATA = 0x40 |
| 43 | D_RDWEQ = 0x80 |
| 44 | SECMASK = (D_INITPUB|D_NOSPECMACDATA|D_RDWEQ) |
| 45 | DAF_REQDMA = 0x1 |
| 46 | DAF_PHYSREQ = 0x2 |
| 47 | DAF_PRE8 = 0x4 |
| 48 | DAF_STATIC = 0x8 |
| 49 | DAF_STR = 0x10 |
| 50 | D_MP = 0x100 |
| 51 | D_UPF = 0x200 |
| 52 | ROOTFS_NAMESZ = 7 |
| 53 | FMNAMESZ = 8 |
| 54 | MCD_VERSION = 1 |
| 55 | DI_BCBP = 0 |
| 56 | DI_MEDIA = 1 |
| 57 | |
| 58 | # Included from sys/secsys.h |
| 59 | ES_MACOPENLID = 1 |
| 60 | ES_MACSYSLID = 2 |
| 61 | ES_MACROOTLID = 3 |
| 62 | ES_PRVINFO = 4 |
| 63 | ES_PRVSETCNT = 5 |
| 64 | ES_PRVSETS = 6 |
| 65 | ES_MACADTLID = 7 |
| 66 | ES_PRVID = 8 |
| 67 | ES_TPGETMAJOR = 9 |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 68 | SA_EXEC = 0o01 |
| 69 | SA_WRITE = 0o02 |
| 70 | SA_READ = 0o04 |
| 71 | SA_SUBSIZE = 0o10 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 72 | |
| 73 | # Included from sys/stropts_f.h |
| 74 | X_STR = (ord('S')<<8) |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 75 | X_I_BASE = (X_STR|0o200) |
| 76 | X_I_NREAD = (X_STR|0o201) |
| 77 | X_I_PUSH = (X_STR|0o202) |
| 78 | X_I_POP = (X_STR|0o203) |
| 79 | X_I_LOOK = (X_STR|0o204) |
| 80 | X_I_FLUSH = (X_STR|0o205) |
| 81 | X_I_SRDOPT = (X_STR|0o206) |
| 82 | X_I_GRDOPT = (X_STR|0o207) |
| 83 | X_I_STR = (X_STR|0o210) |
| 84 | X_I_SETSIG = (X_STR|0o211) |
| 85 | X_I_GETSIG = (X_STR|0o212) |
| 86 | X_I_FIND = (X_STR|0o213) |
| 87 | X_I_LINK = (X_STR|0o214) |
| 88 | X_I_UNLINK = (X_STR|0o215) |
| 89 | X_I_PEEK = (X_STR|0o217) |
| 90 | X_I_FDINSERT = (X_STR|0o220) |
| 91 | X_I_SENDFD = (X_STR|0o221) |
| 92 | X_I_RECVFD = (X_STR|0o222) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 93 | |
| 94 | # Included from unistd.h |
| 95 | |
| 96 | # Included from sys/unistd.h |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 97 | R_OK = 0o04 |
| 98 | W_OK = 0o02 |
| 99 | X_OK = 0o01 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 100 | F_OK = 000 |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 101 | EFF_ONLY_OK = 0o10 |
| 102 | EX_OK = 0o20 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 103 | SEEK_SET = 0 |
| 104 | SEEK_CUR = 1 |
| 105 | SEEK_END = 2 |
| 106 | _SC_ARG_MAX = 1 |
| 107 | _SC_CHILD_MAX = 2 |
| 108 | _SC_CLK_TCK = 3 |
| 109 | _SC_NGROUPS_MAX = 4 |
| 110 | _SC_OPEN_MAX = 5 |
| 111 | _SC_JOB_CONTROL = 6 |
| 112 | _SC_SAVED_IDS = 7 |
| 113 | _SC_VERSION = 8 |
| 114 | _SC_PASS_MAX = 9 |
| 115 | _SC_LOGNAME_MAX = 10 |
| 116 | _SC_PAGESIZE = 11 |
| 117 | _SC_PAGE_SIZE = _SC_PAGESIZE |
| 118 | _SC_XOPEN_VERSION = 12 |
| 119 | _SC_NACLS_MAX = 13 |
| 120 | _SC_NPROCESSORS_CONF = 14 |
| 121 | _SC_NPROCESSORS_ONLN = 15 |
| 122 | _SC_NPROCESSES = 39 |
| 123 | _SC_TOTAL_MEMORY = 40 |
| 124 | _SC_USEABLE_MEMORY = 41 |
| 125 | _SC_GENERAL_MEMORY = 42 |
| 126 | _SC_DEDICATED_MEMORY = 43 |
| 127 | _SC_NCGS_CONF = 44 |
| 128 | _SC_NCGS_ONLN = 45 |
| 129 | _SC_MAX_CPUS_PER_CG = 46 |
| 130 | _SC_CG_SIMPLE_IMPL = 47 |
| 131 | _SC_CACHE_LINE = 48 |
| 132 | _SC_SYSTEM_ID = 49 |
| 133 | _SC_THREADS = 51 |
| 134 | _SC_THREAD_ATTR_STACKADDR = 52 |
| 135 | _SC_THREAD_ATTR_STACKSIZE = 53 |
| 136 | _SC_THREAD_DESTRUCTOR_ITERATIONS = 54 |
| 137 | _SC_THREAD_KEYS_MAX = 55 |
| 138 | _SC_THREAD_PRIORITY_SCHEDULING = 56 |
| 139 | _SC_THREAD_PRIO_INHERIT = 57 |
| 140 | _SC_THREAD_PRIO_PROTECT = 58 |
| 141 | _SC_THREAD_STACK_MIN = 59 |
| 142 | _SC_THREAD_PROCESS_SHARED = 60 |
| 143 | _SC_THREAD_SAFE_FUNCTIONS = 61 |
| 144 | _SC_THREAD_THREADS_MAX = 62 |
| 145 | _SC_KERNEL_VM = 63 |
| 146 | _SC_TZNAME_MAX = 320 |
| 147 | _SC_STREAM_MAX = 321 |
| 148 | _SC_XOPEN_CRYPT = 323 |
| 149 | _SC_XOPEN_ENH_I18N = 324 |
| 150 | _SC_XOPEN_SHM = 325 |
| 151 | _SC_XOPEN_XCU_VERSION = 327 |
| 152 | _SC_AES_OS_VERSION = 330 |
| 153 | _SC_ATEXIT_MAX = 331 |
| 154 | _SC_2_C_BIND = 350 |
| 155 | _SC_2_C_DEV = 351 |
| 156 | _SC_2_C_VERSION = 352 |
| 157 | _SC_2_CHAR_TERM = 353 |
| 158 | _SC_2_FORT_DEV = 354 |
| 159 | _SC_2_FORT_RUN = 355 |
| 160 | _SC_2_LOCALEDEF = 356 |
| 161 | _SC_2_SW_DEV = 357 |
| 162 | _SC_2_UPE = 358 |
| 163 | _SC_2_VERSION = 359 |
| 164 | _SC_BC_BASE_MAX = 370 |
| 165 | _SC_BC_DIM_MAX = 371 |
| 166 | _SC_BC_SCALE_MAX = 372 |
| 167 | _SC_BC_STRING_MAX = 373 |
| 168 | _SC_COLL_WEIGHTS_MAX = 380 |
| 169 | _SC_EXPR_NEST_MAX = 381 |
| 170 | _SC_LINE_MAX = 382 |
| 171 | _SC_RE_DUP_MAX = 383 |
| 172 | _SC_IOV_MAX = 390 |
| 173 | _SC_NPROC_CONF = 391 |
| 174 | _SC_NPROC_ONLN = 392 |
| 175 | _SC_XOPEN_UNIX = 400 |
| 176 | _SC_SEMAPHORES = 440 |
| 177 | _CS_PATH = 1 |
| 178 | __O_CS_HOSTNAME = 2 |
| 179 | _CS_RELEASE = 3 |
| 180 | _CS_VERSION = 4 |
| 181 | __O_CS_MACHINE = 5 |
| 182 | __O_CS_ARCHITECTURE = 6 |
| 183 | _CS_HW_SERIAL = 7 |
| 184 | __O_CS_HW_PROVIDER = 8 |
| 185 | _CS_SRPC_DOMAIN = 9 |
| 186 | _CS_INITTAB_NAME = 10 |
| 187 | __O_CS_SYSNAME = 11 |
| 188 | _CS_LFS_CFLAGS = 20 |
| 189 | _CS_LFS_LDFLAGS = 21 |
| 190 | _CS_LFS_LIBS = 22 |
| 191 | _CS_LFS_LINTFLAGS = 23 |
| 192 | _CS_LFS64_CFLAGS = 24 |
| 193 | _CS_LFS64_LDFLAGS = 25 |
| 194 | _CS_LFS64_LIBS = 26 |
| 195 | _CS_LFS64_LINTFLAGS = 27 |
| 196 | _CS_ARCHITECTURE = 100 |
| 197 | _CS_BUSTYPES = 101 |
| 198 | _CS_HOSTNAME = 102 |
| 199 | _CS_HW_PROVIDER = 103 |
| 200 | _CS_KERNEL_STAMP = 104 |
| 201 | _CS_MACHINE = 105 |
| 202 | _CS_OS_BASE = 106 |
| 203 | _CS_OS_PROVIDER = 107 |
| 204 | _CS_SYSNAME = 108 |
| 205 | _CS_USER_LIMIT = 109 |
| 206 | _PC_LINK_MAX = 1 |
| 207 | _PC_MAX_CANON = 2 |
| 208 | _PC_MAX_INPUT = 3 |
| 209 | _PC_NAME_MAX = 4 |
| 210 | _PC_PATH_MAX = 5 |
| 211 | _PC_PIPE_BUF = 6 |
| 212 | _PC_NO_TRUNC = 7 |
| 213 | _PC_VDISABLE = 8 |
| 214 | _PC_CHOWN_RESTRICTED = 9 |
| 215 | _PC_FILESIZEBITS = 10 |
Guido van Rossum | e2a383d | 2007-01-15 16:59:06 +0000 | [diff] [blame] | 216 | _POSIX_VERSION = 199009 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 217 | _XOPEN_VERSION = 4 |
| 218 | GF_PATH = "/etc/group" |
| 219 | PF_PATH = "/etc/passwd" |
| 220 | F_ULOCK = 0 |
| 221 | F_LOCK = 1 |
| 222 | F_TLOCK = 2 |
| 223 | F_TEST = 3 |
| 224 | _POSIX_JOB_CONTROL = 1 |
| 225 | _POSIX_SAVED_IDS = 1 |
| 226 | _POSIX_VDISABLE = 0 |
| 227 | NULL = 0 |
| 228 | STDIN_FILENO = 0 |
| 229 | STDOUT_FILENO = 1 |
| 230 | STDERR_FILENO = 2 |
| 231 | _XOPEN_UNIX = 1 |
| 232 | _XOPEN_ENH_I18N = 1 |
| 233 | _XOPEN_XPG4 = 1 |
Guido van Rossum | e2a383d | 2007-01-15 16:59:06 +0000 | [diff] [blame] | 234 | _POSIX2_C_VERSION = 199209 |
| 235 | _POSIX2_VERSION = 199209 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 236 | _XOPEN_XCU_VERSION = 4 |
| 237 | _POSIX_SEMAPHORES = 1 |
| 238 | _POSIX_THREADS = 1 |
| 239 | _POSIX_THREAD_ATTR_STACKADDR = 1 |
| 240 | _POSIX_THREAD_ATTR_STACKSIZE = 1 |
| 241 | _POSIX_THREAD_PRIORITY_SCHEDULING = 1 |
| 242 | _POSIX_THREAD_PROCESS_SHARED = 1 |
| 243 | _POSIX_THREAD_SAFE_FUNCTIONS = 1 |
| 244 | _POSIX2_C_BIND = 1 |
| 245 | _POSIX2_CHAR_TERM = 1 |
| 246 | _POSIX2_FORT_RUN = 1 |
| 247 | _POSIX2_LOCALEDEF = 1 |
| 248 | _POSIX2_UPE = 1 |
| 249 | _LFS_ASYNCHRONOUS_IO = 1 |
| 250 | _LFS_LARGEFILE = 1 |
| 251 | _LFS64_ASYNCHRONOUS_IO = 1 |
| 252 | _LFS64_LARGEFILE = 1 |
| 253 | _LFS64_STDIO = 1 |
| 254 | FMNAMESZ = 8 |
| 255 | SNDZERO = 0x001 |
| 256 | SNDPIPE = 0x002 |
| 257 | RNORM = 0x000 |
| 258 | RMSGD = 0x001 |
| 259 | RMSGN = 0x002 |
| 260 | RMODEMASK = 0x003 |
| 261 | RPROTDAT = 0x004 |
| 262 | RPROTDIS = 0x008 |
| 263 | RPROTNORM = 0x010 |
| 264 | RPROTMASK = 0x01c |
| 265 | FLUSHR = 0x01 |
| 266 | FLUSHW = 0x02 |
| 267 | FLUSHRW = 0x03 |
| 268 | FLUSHBAND = 0x04 |
| 269 | S_INPUT = 0x0001 |
| 270 | S_HIPRI = 0x0002 |
| 271 | S_OUTPUT = 0x0004 |
| 272 | S_MSG = 0x0008 |
| 273 | S_ERROR = 0x0010 |
| 274 | S_HANGUP = 0x0020 |
| 275 | S_RDNORM = 0x0040 |
| 276 | S_WRNORM = S_OUTPUT |
| 277 | S_RDBAND = 0x0080 |
| 278 | S_WRBAND = 0x0100 |
| 279 | S_BANDURG = 0x0200 |
| 280 | RS_HIPRI = 0x01 |
| 281 | MSG_HIPRI = 0x01 |
| 282 | MSG_ANY = 0x02 |
| 283 | MSG_BAND = 0x04 |
| 284 | MSG_DISCARD = 0x08 |
| 285 | MSG_PEEKIOCTL = 0x10 |
| 286 | MORECTL = 1 |
| 287 | MOREDATA = 2 |
| 288 | MUXID_ALL = (-1) |
| 289 | ANYMARK = 0x01 |
| 290 | LASTMARK = 0x02 |
| 291 | STR = (ord('S')<<8) |
Guido van Rossum | cd16bf6 | 2007-06-13 18:07:49 +0000 | [diff] [blame] | 292 | I_NREAD = (STR|0o1) |
| 293 | I_PUSH = (STR|0o2) |
| 294 | I_POP = (STR|0o3) |
| 295 | I_LOOK = (STR|0o4) |
| 296 | I_FLUSH = (STR|0o5) |
| 297 | I_SRDOPT = (STR|0o6) |
| 298 | I_GRDOPT = (STR|0o7) |
| 299 | I_STR = (STR|0o10) |
| 300 | I_SETSIG = (STR|0o11) |
| 301 | I_GETSIG = (STR|0o12) |
| 302 | I_FIND = (STR|0o13) |
| 303 | I_LINK = (STR|0o14) |
| 304 | I_UNLINK = (STR|0o15) |
| 305 | I_PEEK = (STR|0o17) |
| 306 | I_FDINSERT = (STR|0o20) |
| 307 | I_SENDFD = (STR|0o21) |
| 308 | I_RECVFD = (STR|0o22) |
| 309 | I_E_RECVFD = (STR|0o16) |
| 310 | I_RECVFD = (STR|0o16) |
| 311 | I_RECVFD = (STR|0o22) |
| 312 | I_SWROPT = (STR|0o23) |
| 313 | I_GWROPT = (STR|0o24) |
| 314 | I_LIST = (STR|0o25) |
| 315 | I_PLINK = (STR|0o26) |
| 316 | I_PUNLINK = (STR|0o27) |
| 317 | I_FLUSHBAND = (STR|0o34) |
| 318 | I_CKBAND = (STR|0o35) |
| 319 | I_GETBAND = (STR|0o36) |
| 320 | I_ATMARK = (STR|0o37) |
| 321 | I_SETCLTIME = (STR|0o40) |
| 322 | I_GETCLTIME = (STR|0o41) |
| 323 | I_CANPUT = (STR|0o42) |
| 324 | I_S_RECVFD = (STR|0o43) |
| 325 | I_STATS = (STR|0o44) |
| 326 | I_BIGPIPE = (STR|0o45) |
| 327 | I_GETTP = (STR|0o46) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 328 | INFTIM = -1 |