78 lines
1.2 KiB
Python
78 lines
1.2 KiB
Python
# Generated by h2py from /usr/include/sys/fcntl.h
|
|
|
|
# Included from sys/types.h
|
|
def quad_low(x): return x.val[0]
|
|
|
|
ADT_EMASKSIZE = 8
|
|
SHRT_MIN = -32768
|
|
SHRT_MAX = 32767
|
|
INT_MIN = (-2147483647-1)
|
|
INT_MAX = 2147483647
|
|
LONG_MIN = (-2147483647-1)
|
|
LONG_MAX = 2147483647
|
|
OFF32_MAX = LONG_MAX
|
|
ISTAT_ASSERTED = 0
|
|
ISTAT_ASSUMED = 1
|
|
ISTAT_NONE = 2
|
|
OFF_MAX = OFF32_MAX
|
|
CLOCK_MAX = LONG_MAX
|
|
P_MYID = (-1)
|
|
P_MYHOSTID = (-1)
|
|
|
|
# Included from sys/select.h
|
|
FD_SETSIZE = 4096
|
|
NBBY = 8
|
|
NULL = 0
|
|
O_RDONLY = 0
|
|
O_WRONLY = 1
|
|
O_RDWR = 2
|
|
O_NDELAY = 0x04
|
|
O_APPEND = 0x08
|
|
O_SYNC = 0x10
|
|
O_NONBLOCK = 0x80
|
|
O_LARGEFILE = 0x80000
|
|
O_CREAT = 0x100
|
|
O_TRUNC = 0x200
|
|
O_EXCL = 0x400
|
|
O_NOCTTY = 0x800
|
|
F_DUPFD = 0
|
|
F_GETFD = 1
|
|
F_SETFD = 2
|
|
F_GETFL = 3
|
|
F_SETFL = 4
|
|
F_GETLK = 14
|
|
F_O_GETLK = 5
|
|
F_GETLK = 5
|
|
F_GETLK = 14
|
|
F_SETLK = 6
|
|
F_SETLKW = 7
|
|
F_CHKFL = 8
|
|
F_ALLOCSP = 10
|
|
F_FREESP = 11
|
|
F_RSETLK = 20
|
|
F_RGETLK = 21
|
|
F_RSETLKW = 22
|
|
F_GETOWN = 23
|
|
F_SETOWN = 24
|
|
F_DUP2 = 25
|
|
F_GETLK64 = 100
|
|
F_SETLKW64 = 101
|
|
F_SETLK64 = 102
|
|
F_RSETLK64 = 103
|
|
F_RGETLK64 = 104
|
|
F_RSETLKW64 = 105
|
|
F_FREESP64 = 106
|
|
F_RDCHK = 0x6001
|
|
F_GETLK = F_GETLK64
|
|
F_SETLKW = F_SETLKW64
|
|
F_SETLK = F_SETLK64
|
|
F_RSETLK = F_RSETLK64
|
|
F_RGETLK = F_RGETLK64
|
|
F_RSETLKW = F_RSETLKW64
|
|
F_FREESP = F_FREESP64
|
|
F_RDLCK = 01
|
|
F_WRLCK = 02
|
|
F_UNLCK = 03
|
|
O_ACCMODE = 3
|
|
FD_CLOEXEC = 1
|