Home | History | Annotate | Download | only in plat-irix6
      1 # Generated by h2py from /usr/include/sys/file.h
      2 from warnings import warnpy3k
      3 warnpy3k("the FILE module has been removed in Python 3.0", stacklevel=2)
      4 del warnpy3k
      5 
      6 # Included from standards.h
      7 
      8 # Included from sys/types.h
      9 
     10 # Included from sgidefs.h
     11 _MIPS_ISA_MIPS1 = 1
     12 _MIPS_ISA_MIPS2 = 2
     13 _MIPS_ISA_MIPS3 = 3
     14 _MIPS_ISA_MIPS4 = 4
     15 _MIPS_SIM_ABI32 = 1
     16 _MIPS_SIM_NABI32 = 2
     17 _MIPS_SIM_ABI64 = 3
     18 
     19 # Included from sys/pthread.h
     20 P_MYID = (-1)
     21 P_MYHOSTID = (-1)
     22 
     23 # Included from sys/bsd_types.h
     24 
     25 # Included from sys/mkdev.h
     26 ONBITSMAJOR = 7
     27 ONBITSMINOR = 8
     28 OMAXMAJ = 0x7f
     29 OMAXMIN = 0xff
     30 NBITSMAJOR = 14
     31 NBITSMINOR = 18
     32 MAXMAJ = 0x1ff
     33 MAXMIN = 0x3ffff
     34 OLDDEV = 0
     35 NEWDEV = 1
     36 MKDEV_VER = NEWDEV
     37 def IS_STRING_SPEC_DEV(x): return ((dev_t)(x)==__makedev(MKDEV_VER, 0, 0))
     38 
     39 def major(dev): return __major(MKDEV_VER, dev)
     40 
     41 def minor(dev): return __minor(MKDEV_VER, dev)
     42 
     43 
     44 # Included from sys/select.h
     45 FD_SETSIZE = 1024
     46 __NBBY = 8
     47 
     48 # Included from string.h
     49 NULL = 0L
     50 NBBY = 8
     51 
     52 # Included from sys/cpumask.h
     53 MAXCPU = 128
     54 def CPUMASK_INDEX(bit): return ((bit) >> 6)
     55 
     56 def CPUMASK_SHFT(bit): return ((bit) & 0x3f)
     57 
     58 def CPUMASK_IS_ZERO(p): return ((p) == 0)
     59 
     60 def CPUMASK_IS_NONZERO(p): return ((p) != 0)
     61 
     62 
     63 # Included from sys/nodemask.h
     64 def CNODEMASK_IS_ZERO(p): return ((p) == 0)
     65 
     66 def CNODEMASK_IS_NONZERO(p): return ((p) != 0)
     67 
     68 
     69 # Included from sys/sema.h
     70 
     71 # Included from sys/timespec.h
     72 
     73 # Included from sys/param.h
     74 
     75 # Included from sys/signal.h
     76 SIGHUP = 1
     77 SIGINT = 2
     78 SIGQUIT = 3
     79 SIGILL = 4
     80 SIGTRAP = 5
     81 SIGIOT = 6
     82 SIGABRT = 6
     83 SIGEMT = 7
     84 SIGFPE = 8
     85 SIGKILL = 9
     86 SIGBUS = 10
     87 SIGSEGV = 11
     88 SIGSYS = 12
     89 SIGPIPE = 13
     90 SIGALRM = 14
     91 SIGTERM = 15
     92 SIGUSR1 = 16
     93 SIGUSR2 = 17
     94 SIGCLD = 18
     95 SIGCHLD = 18
     96 SIGPWR = 19
     97 SIGWINCH = 20
     98 SIGURG = 21
     99 SIGPOLL = 22
    100 SIGIO = 22
    101 SIGSTOP = 23
    102 SIGTSTP = 24
    103 SIGCONT = 25
    104 SIGTTIN = 26
    105 SIGTTOU = 27
    106 SIGVTALRM = 28
    107 SIGPROF = 29
    108 SIGXCPU = 30
    109 SIGXFSZ = 31
    110 SIGK32 = 32
    111 SIGCKPT = 33
    112 SIGRESTART = 34
    113 SIGUME = 35
    114 SIGPTINTR = 47
    115 SIGPTRESCHED = 48
    116 SIGRTMIN = 49
    117 SIGRTMAX = 64
    118 __sigargs = int
    119 
    120 # Included from sys/sigevent.h
    121 SIGEV_NONE = 128
    122 SIGEV_SIGNAL = 129
    123 SIGEV_CALLBACK = 130
    124 SIGEV_THREAD = 131
    125 
    126 # Included from sys/siginfo.h
    127 SI_MAXSZ = 128
    128 SI_USER = 0
    129 SI_KILL = SI_USER
    130 SI_QUEUE = -1
    131 SI_ASYNCIO = -2
    132 SI_TIMER = -3
    133 SI_MESGQ = -4
    134 ILL_ILLOPC = 1
    135 ILL_ILLOPN = 2
    136 ILL_ILLADR = 3
    137 ILL_ILLTRP = 4
    138 ILL_PRVOPC = 5
    139 ILL_PRVREG = 6
    140 ILL_COPROC = 7
    141 ILL_BADSTK = 8
    142 NSIGILL = 8
    143 FPE_INTDIV = 1
    144 FPE_INTOVF = 2
    145 FPE_FLTDIV = 3
    146 FPE_FLTOVF = 4
    147 FPE_FLTUND = 5
    148 FPE_FLTRES = 6
    149 FPE_FLTINV = 7
    150 FPE_FLTSUB = 8
    151 NSIGFPE = 8
    152 SEGV_MAPERR = 1
    153 SEGV_ACCERR = 2
    154 NSIGSEGV = 2
    155 BUS_ADRALN = 1
    156 BUS_ADRERR = 2
    157 BUS_OBJERR = 3
    158 NSIGBUS = 3
    159 TRAP_BRKPT = 1
    160 TRAP_TRACE = 2
    161 NSIGTRAP = 2
    162 CLD_EXITED = 1
    163 CLD_KILLED = 2
    164 CLD_DUMPED = 3
    165 CLD_TRAPPED = 4
    166 CLD_STOPPED = 5
    167 CLD_CONTINUED = 6
    168 NSIGCLD = 6
    169 POLL_IN = 1
    170 POLL_OUT = 2
    171 POLL_MSG = 3
    172 POLL_ERR = 4
    173 POLL_PRI = 5
    174 POLL_HUP = 6
    175 NSIGPOLL = 6
    176 UME_ECCERR = 1
    177 NSIGUME = 1
    178 SIG_NOP = 0
    179 SIG_BLOCK = 1
    180 SIG_UNBLOCK = 2
    181 SIG_SETMASK = 3
    182 SIG_SETMASK32 = 256
    183 SA_ONSTACK = 0x00000001
    184 SA_RESETHAND = 0x00000002
    185 SA_RESTART = 0x00000004
    186 SA_SIGINFO = 0x00000008
    187 SA_NODEFER = 0x00000010
    188 SA_NOCLDWAIT = 0x00010000
    189 SA_NOCLDSTOP = 0x00020000
    190 _SA_BSDCALL = 0x10000000
    191 MINSIGSTKSZ = 512
    192 SIGSTKSZ = 8192
    193 SS_ONSTACK = 0x00000001
    194 SS_DISABLE = 0x00000002
    195 
    196 # Included from sys/ucontext.h
    197 NGREG = 36
    198 NGREG = 37
    199 GETCONTEXT = 0
    200 SETCONTEXT = 1
    201 UC_SIGMASK = 001
    202 UC_STACK = 002
    203 UC_CPU = 004
    204 UC_MAU = 010
    205 UC_MCONTEXT = (UC_CPU|UC_MAU)
    206 UC_ALL = (UC_SIGMASK|UC_STACK|UC_MCONTEXT)
    207 CTX_R0 = 0
    208 CTX_AT = 1
    209 CTX_V0 = 2
    210 CTX_V1 = 3
    211 CTX_A0 = 4
    212 CTX_A1 = 5
    213 CTX_A2 = 6
    214 CTX_A3 = 7
    215 CTX_T0 = 8
    216 CTX_T1 = 9
    217 CTX_T2 = 10
    218 CTX_T3 = 11
    219 CTX_T4 = 12
    220 CTX_T5 = 13
    221 CTX_T6 = 14
    222 CTX_T7 = 15
    223 CTX_A4 = 8
    224 CTX_A5 = 9
    225 CTX_A6 = 10
    226 CTX_A7 = 11
    227 CTX_T0 = 12
    228 CTX_T1 = 13
    229 CTX_T2 = 14
    230 CTX_T3 = 15
    231 CTX_S0 = 16
    232 CTX_S1 = 17
    233 CTX_S2 = 18
    234 CTX_S3 = 19
    235 CTX_S4 = 20
    236 CTX_S5 = 21
    237 CTX_S6 = 22
    238 CTX_S7 = 23
    239 CTX_T8 = 24
    240 CTX_T9 = 25
    241 CTX_K0 = 26
    242 CTX_K1 = 27
    243 CTX_GP = 28
    244 CTX_SP = 29
    245 CTX_S8 = 30
    246 CTX_RA = 31
    247 CTX_MDLO = 32
    248 CTX_MDHI = 33
    249 CTX_CAUSE = 34
    250 CTX_EPC = 35
    251 CTX_SR = 36
    252 CXT_R0 = CTX_R0
    253 CXT_AT = CTX_AT
    254 CXT_V0 = CTX_V0
    255 CXT_V1 = CTX_V1
    256 CXT_A0 = CTX_A0
    257 CXT_A1 = CTX_A1
    258 CXT_A2 = CTX_A2
    259 CXT_A3 = CTX_A3
    260 CXT_T0 = CTX_T0
    261 CXT_T1 = CTX_T1
    262 CXT_T2 = CTX_T2
    263 CXT_T3 = CTX_T3
    264 CXT_T4 = CTX_T4
    265 CXT_T5 = CTX_T5
    266 CXT_T6 = CTX_T6
    267 CXT_T7 = CTX_T7
    268 CXT_S0 = CTX_S0
    269 CXT_S1 = CTX_S1
    270 CXT_S2 = CTX_S2
    271 CXT_S3 = CTX_S3
    272 CXT_S4 = CTX_S4
    273 CXT_S5 = CTX_S5
    274 CXT_S6 = CTX_S6
    275 CXT_S7 = CTX_S7
    276 CXT_T8 = CTX_T8
    277 CXT_T9 = CTX_T9
    278 CXT_K0 = CTX_K0
    279 CXT_K1 = CTX_K1
    280 CXT_GP = CTX_GP
    281 CXT_SP = CTX_SP
    282 CXT_S8 = CTX_S8
    283 CXT_RA = CTX_RA
    284 CXT_MDLO = CTX_MDLO
    285 CXT_MDHI = CTX_MDHI
    286 CXT_CAUSE = CTX_CAUSE
    287 CXT_EPC = CTX_EPC
    288 CXT_SR = CTX_SR
    289 CTX_FV0 = 0
    290 CTX_FV1 = 2
    291 CTX_FA0 = 12
    292 CTX_FA1 = 13
    293 CTX_FA2 = 14
    294 CTX_FA3 = 15
    295 CTX_FA4 = 16
    296 CTX_FA5 = 17
    297 CTX_FA6 = 18
    298 CTX_FA7 = 19
    299 CTX_FT0 = 4
    300 CTX_FT1 = 5
    301 CTX_FT2 = 6
    302 CTX_FT3 = 7
    303 CTX_FT4 = 8
    304 CTX_FT5 = 9
    305 CTX_FT6 = 10
    306 CTX_FT7 = 11
    307 CTX_FT8 = 20
    308 CTX_FT9 = 21
    309 CTX_FT10 = 22
    310 CTX_FT11 = 23
    311 CTX_FT12 = 1
    312 CTX_FT13 = 3
    313 CTX_FS0 = 24
    314 CTX_FS1 = 25
    315 CTX_FS2 = 26
    316 CTX_FS3 = 27
    317 CTX_FS4 = 28
    318 CTX_FS5 = 29
    319 CTX_FS6 = 30
    320 CTX_FS7 = 31
    321 CTX_FT8 = 21
    322 CTX_FT9 = 23
    323 CTX_FT10 = 25
    324 CTX_FT11 = 27
    325 CTX_FT12 = 29
    326 CTX_FT13 = 31
    327 CTX_FT14 = 1
    328 CTX_FT15 = 3
    329 CTX_FS0 = 20
    330 CTX_FS1 = 22
    331 CTX_FS2 = 24
    332 CTX_FS3 = 26
    333 CTX_FS4 = 28
    334 CTX_FS5 = 30
    335 SV_ONSTACK = 0x0001
    336 SV_INTERRUPT = 0x0002
    337 NUMBSDSIGS = (32)
    338 def sigmask(sig): return (1L << ((sig)-1))
    339 
    340 def sigmask(sig): return (1L << ((sig)-1))
    341 
    342 SIG_ERR = (-1)
    343 SIG_IGN = (1)
    344 SIG_HOLD = (2)
    345 SIG_DFL = (0)
    346 NSIG = 65
    347 MAXSIG = (NSIG-1)
    348 NUMSIGS = (NSIG-1)
    349 BRK_USERBP = 0
    350 BRK_KERNELBP = 1
    351 BRK_ABORT = 2
    352 BRK_BD_TAKEN = 3
    353 BRK_BD_NOTTAKEN = 4
    354 BRK_SSTEPBP = 5
    355 BRK_OVERFLOW = 6
    356 BRK_DIVZERO = 7
    357 BRK_RANGE = 8
    358 BRK_PSEUDO_OP_BIT = 0x80
    359 BRK_PSEUDO_OP_MAX = 0x3
    360 BRK_CACHE_SYNC = 0x80
    361 BRK_MULOVF = 1023
    362 _POSIX_VERSION = 199506L
    363 _POSIX_VERSION = 199506
    364 _POSIX_VDISABLE = 0
    365 MAX_INPUT = 512
    366 MAX_CANON = 256
    367 UID_NOBODY = 60001
    368 GID_NOBODY = UID_NOBODY
    369 UID_NOACCESS = 60002
    370 MAXPID = 0x7ffffff0
    371 MAXUID = 0x7fffffff
    372 MAXLINK = 30000
    373 SSIZE = 1
    374 SINCR = 1
    375 KSTKSIZE = 1
    376 EXTKSTKSIZE = 1
    377 KSTKIDX = 0
    378 KSTEIDX = 1
    379 EXTKSTKSIZE = 0
    380 KSTKIDX = 0
    381 CANBSIZ = 256
    382 HZ = 100
    383 TICK = 10000000
    384 NOFILE = 20
    385 NGROUPS_UMIN = 0
    386 NGROUPS_UMAX = 32
    387 NGROUPS = 16
    388 PMASK = 0177
    389 PCATCH = 0400
    390 PLTWAIT = 01000
    391 PRECALC = 01000
    392 PSWP = 0
    393 PINOD = 10
    394 PSNDD = PINOD
    395 PRIBIO = 20
    396 PZERO = 25
    397 PMEM = 0
    398 NZERO = 20
    399 PPIPE = 26
    400 PVFS = 27
    401 PWAIT = 30
    402 PSLEP = 39
    403 PUSER = 60
    404 PBATCH_CRITICAL = -1
    405 PTIME_SHARE = -2
    406 PTIME_SHARE_OVER = -3
    407 PBATCH = -4
    408 PWEIGHTLESS = -5
    409 IO_NBPC = 4096
    410 IO_BPCSHIFT = 12
    411 MIN_NBPC = 4096
    412 MIN_BPCSHIFT = 12
    413 MIN_CPSSHIFT = 10
    414 BPCSHIFT = 12
    415 CPSSHIFT = 10
    416 BPCSHIFT = 14
    417 CPSSHIFT = 12
    418 CPSSHIFT = 11
    419 BPSSHIFT = (BPCSHIFT+CPSSHIFT)
    420 NULL = 0L
    421 CMASK = 022
    422 NODEV = (-1)
    423 NOPAGE = (-1)
    424 NBPSCTR = 512
    425 SCTRSHFT = 9
    426 def BASEPRI(psw): return (((psw) & SR_IMASK) == SR_IMASK0)
    427 
    428 def BASEPRI(psw): return (((psw) & SR_IMASK) == SR_IMASK)
    429 
    430 def USERMODE(psw): return (((psw) & SR_KSU_MSK) == SR_KSU_USR)
    431 
    432 MAXPATHLEN = 1024
    433 MAXSYMLINKS = 30
    434 MAXNAMELEN = 256
    435 PIPE_BUF = 10240
    436 PIPE_MAX = 10240
    437 NBBY = 8
    438 BBSHIFT = 9
    439 BBSIZE = (1<<BBSHIFT)
    440 BBMASK = (BBSIZE-1)
    441 def BBTOB(bbs): return ((bbs) << BBSHIFT)
    442 
    443 def OFFTOBB(bytes): return (((__uint64_t)(bytes) + BBSIZE - 1) >> BBSHIFT)
    444 
    445 def OFFTOBBT(bytes): return ((off_t)(bytes) >> BBSHIFT)
    446 
    447 def BBTOOFF(bbs): return ((off_t)(bbs) << BBSHIFT)
    448 
    449 SEEKLIMIT32 = 0x7fffffff
    450 MAXBSIZE = 8192
    451 DEV_BSIZE = BBSIZE
    452 DEV_BSHIFT = BBSHIFT
    453 def btodb(bytes): return   \
    454 
    455 def dbtob(db): return   \
    456 
    457 BLKDEV_IOSHIFT = BPCSHIFT
    458 BLKDEV_IOSIZE = (1<<BLKDEV_IOSHIFT)
    459 def BLKDEV_OFF(off): return ((off) & (BLKDEV_IOSIZE - 1))
    460 
    461 def BLKDEV_LBN(off): return ((off) >> BLKDEV_IOSHIFT)
    462 
    463 def BLKDEV_LTOP(bn): return ((bn) * BLKDEV_BB)
    464 
    465 MAXHOSTNAMELEN = 256
    466 def DELAY(n): return us_delay(n)
    467 
    468 def DELAYBUS(n): return us_delaybus(n)
    469 
    470 TIMEPOKE_NOW = -100L
    471 MUTEX_DEFAULT = 0x0
    472 METER_NAMSZ = 16
    473 METER_NO_SEQ = -1
    474 def mutex_spinlock(l): return splhi()
    475 
    476 def mutex_spintrylock(l): return splhi()
    477 
    478 def spinlock_initialized(l): return 1
    479 
    480 SV_FIFO = 0x0
    481 SV_LIFO = 0x2
    482 SV_PRIO = 0x4
    483 SV_KEYED = 0x6
    484 SV_DEFAULT = SV_FIFO
    485 SEMA_NOHIST = 0x0001
    486 SEMA_LOCK = 0x0004
    487 NSCHEDCLASS = (-(PWEIGHTLESS)+1)
    488 MR_ACCESS = 1
    489 MR_UPDATE = 2
    490 MRLOCK_BARRIER = 0x1
    491 MRLOCK_BEHAVIOR = 0x2
    492 MRLOCK_DBLTRIPPABLE = 0x4
    493 MRLOCK_ALLOW_EQUAL_PRI = 0x8
    494 MRLOCK_DEFAULT = MRLOCK_BARRIER
    495 def mraccess(mrp): return mraccessf(mrp, 0)
    496 
    497 def mrupdate(mrp): return mrupdatef(mrp, 0)
    498 
    499 def mp_mutex_unlock(m): return mutex_unlock(m)
    500 
    501 def mp_mutex_trylock(m): return mutex_trylock(m)
    502 
    503 def mp_mutex_spinlock(m): return mutex_spinlock(m)
    504 
    505 
    506 # Included from sys/mon.h
    507 MON_LOCKED = 0x01
    508 MON_WAITING = 0x02
    509 MON_TIMEOUT = 0x04
    510 MON_DOSRV = 0x08
    511 MON_RUN = 0x10
    512 MR_READER_BUCKETS = 13
    513 def initlock(l): return spinlock_init(l,0)
    514 
    515 def ownlock(x): return 1
    516 
    517 def mutex_enter(m): return mutex_lock(m, PZERO)
    518 
    519 def mutex_tryenter(m): return mutex_trylock(m)
    520 
    521 def mutex_exit(m): return mutex_unlock(m)
    522 
    523 def cv_signal(cv): return sv_signal(cv)
    524 
    525 def cv_broadcast(cv): return sv_broadcast(cv)
    526 
    527 def cv_destroy(cv): return sv_destroy(cv)
    528 
    529 RW_READER = MR_ACCESS
    530 RW_WRITER = MR_UPDATE
    531 def rw_exit(r): return mrunlock(r)
    532 
    533 def rw_tryupgrade(r): return mrtrypromote(r)
    534 
    535 def rw_downgrade(r): return mrdemote(r)
    536 
    537 def rw_destroy(r): return mrfree(r)
    538 
    539 def RW_WRITE_HELD(r): return ismrlocked(r, MR_UPDATE)
    540 
    541 def RW_READ_HELD(r): return ismrlocked(r, MR_ACCESS)
    542 
    543 MS_FREE = 0
    544 MS_UPD = 1
    545 MS_ACC = 2
    546 MS_WAITERS = 4
    547 
    548 # Included from sys/fcntl.h
    549 FNDELAY = 0x04
    550 FAPPEND = 0x08
    551 FSYNC = 0x10
    552 FDSYNC = 0x20
    553 FRSYNC = 0x40
    554 FNONBLOCK = 0x80
    555 FASYNC = 0x1000
    556 FLARGEFILE = 0x2000
    557 FNONBLK = FNONBLOCK
    558 FDIRECT = 0x8000
    559 FBULK = 0x10000
    560 FDIRENT64 = 0x8000
    561 FCREAT = 0x0100
    562 FTRUNC = 0x0200
    563 FEXCL = 0x0400
    564 FNOCTTY = 0x0800
    565 O_RDONLY = 0
    566 O_WRONLY = 1
    567 O_RDWR = 2
    568 O_NDELAY = 0x04
    569 O_APPEND = 0x08
    570 O_SYNC = 0x10
    571 O_DSYNC = 0x20
    572 O_RSYNC = 0x40
    573 O_NONBLOCK = 0x80
    574 O_LARGEFILE = 0x2000
    575 O_DIRECT = 0x8000
    576 O_BULK = 0x10000
    577 O_CREAT = 0x100
    578 O_TRUNC = 0x200
    579 O_EXCL = 0x400
    580 O_NOCTTY = 0x800
    581 F_DUPFD = 0
    582 F_GETFD = 1
    583 F_SETFD = 2
    584 F_GETFL = 3
    585 F_SETFL = 4
    586 F_SETLK = 6
    587 F_SETLKW = 7
    588 F_CHKFL = 8
    589 F_ALLOCSP = 10
    590 F_FREESP = 11
    591 F_SETBSDLK = 12
    592 F_SETBSDLKW = 13
    593 F_GETLK = 14
    594 F_CHKLK = 15
    595 F_CHKLKW = 16
    596 F_CLNLK = 17
    597 F_RSETLK = 20
    598 F_RGETLK = 21
    599 F_RSETLKW = 22
    600 F_GETOWN = 23
    601 F_SETOWN = 24
    602 F_DIOINFO = 30
    603 F_FSGETXATTR = 31
    604 F_FSSETXATTR = 32
    605 F_GETLK64 = 33
    606 F_SETLK64 = 34
    607 F_SETLKW64 = 35
    608 F_ALLOCSP64 = 36
    609 F_FREESP64 = 37
    610 F_GETBMAP = 38
    611 F_FSSETDM = 39
    612 F_RESVSP = 40
    613 F_UNRESVSP = 41
    614 F_RESVSP64 = 42
    615 F_UNRESVSP64 = 43
    616 F_GETBMAPA = 44
    617 F_FSGETXATTRA = 45
    618 F_SETBIOSIZE = 46
    619 F_GETBIOSIZE = 47
    620 F_GETOPS = 50
    621 F_DMAPI = 51
    622 F_FSYNC = 52
    623 F_FSYNC64 = 53
    624 F_GETBDSATTR = 54
    625 F_SETBDSATTR = 55
    626 F_GETBMAPX = 56
    627 F_SETPRIO = 57
    628 F_GETPRIO = 58
    629 F_RDLCK = 01
    630 F_WRLCK = 02
    631 F_UNLCK = 03
    632 O_ACCMODE = 3
    633 FD_CLOEXEC = 1
    634 FD_NODUP_FORK = 4
    635 BMV_IF_ATTRFORK = 0x1
    636 BMV_IF_NO_DMAPI_READ = 0x2
    637 BMV_IF_PREALLOC = 0x4
    638 BMV_IF_VALID = (BMV_IF_ATTRFORK|BMV_IF_NO_DMAPI_READ|BMV_IF_PREALLOC)
    639 BMV_OF_PREALLOC = 0x1
    640 BMV_IF_EXTENDED = 0x40000000
    641 FMASK = 0x190FF
    642 FOPEN = 0xFFFFFFFF
    643 FREAD = 0x01
    644 FWRITE = 0x02
    645 FNDELAY = 0x04
    646 FAPPEND = 0x08
    647 FSYNC = 0x10
    648 FDSYNC = 0x20
    649 FRSYNC = 0x40
    650 FNONBLOCK = 0x80
    651 FASYNC = 0x1000
    652 FNONBLK = FNONBLOCK
    653 FLARGEFILE = 0x2000
    654 FDIRECT = 0x8000
    655 FBULK = 0x10000
    656 FCREAT = 0x0100
    657 FTRUNC = 0x0200
    658 FEXCL = 0x0400
    659 FNOCTTY = 0x0800
    660 FINVIS = 0x0100
    661 FSOCKET = 0x0200
    662 FINPROGRESS = 0x0400
    663 FPRIORITY = 0x0800
    664 FPRIO = 0x4000
    665 FDIRENT64 = 0x8000
    666 FCLOSEXEC = 0x01
    667 LOCK_SH = 1
    668 LOCK_EX = 2
    669 LOCK_NB = 4
    670 LOCK_UN = 8
    671 L_SET = 0
    672 L_INCR = 1
    673 L_XTND = 2
    674 F_OK = 0
    675 X_OK = 1
    676 W_OK = 2
    677 R_OK = 4
    678