# Generated by h2py from /usr/include/fcntl.h

# Included from sys/types.h

# Included from limits.h
CHAR_BIT = 8
CHAR_MIN = (-128)
CHAR_MAX = 127
CHAR_MIN = 0
CHAR_MAX = 255
MB_LEN_MAX = 3
SCHAR_MIN = (-128)
SCHAR_MAX = 127
SHRT_MIN = (-32767-1)
SHRT_MAX = 32767
LONG_MAX = 2147483647L
LONG_MIN = (-2147483647L-1)
INT_MIN = (-2147483647-1)
INT_MAX = 2147483647
INT_MIN = (-32767-1)
INT_MAX = 32767
_POSIX_ARG_MAX = 4096
_POSIX_CHILD_MAX = 6
_POSIX_LINK_MAX = 8
_POSIX_MAX_CANON = 255
_POSIX_MAX_INPUT = 255
_POSIX_NAME_MAX = 14
_POSIX_NGROUPS_MAX = 0
_POSIX_OPEN_MAX = 16
_POSIX_PATH_MAX = 255
_POSIX_PIPE_BUF = 512
_POSIX_SSIZE_MAX = 32767
_POSIX_STREAM_MAX = 8
_POSIX_SYMLOOP_MAX = 8
_POSIX_TZNAME_MAX = 3
NGROUPS_MAX = 1
ARG_MAX = 61440
TZNAME_MAX = 30
MAX_CANON = _POSIX_MAX_CANON
MAX_INPUT = _POSIX_MAX_INPUT
NAME_MAX = 48
PATH_MAX = _POSIX_PATH_MAX
PIPE_BUF = 5120
SSIZE_MAX = _POSIX_SSIZE_MAX
SYMLOOP_MAX = 32
BC_BASE_MAX = 99
BC_DIM_MAX = 2048
BC_SCALE_MAX = 99
COLL_ELEM_MAX = 4
EXPR_NEST_MAX = 32
LINE_MAX = 2048
PASTE_FILES_MAX = 12
RE_DUP_MAX = 255
SED_PATTERN_MAX = 20480
SENDTO_MAX = 90000L
SORT_LINE_MAX = 20480
_QNX_ROOT_PREFIX_MAX = 128
_QNX_PROXY_SIZE_MAX = 100
_QNX_MXTAB_LEN = 255
_QNX_ATTACHEDNAME_MAX = 64
_QNX_PREFIX_MAX = 48
_QNX_ERRNOSTR_MAX = 64
def minor(device): return ((int)((device) & 0x3ff))

def major(device): return ((int)(((device) >> 10) & 0x3f))

O_RDONLY = 000000
O_WRONLY = 000001
O_RDWR = 000002
O_ACCMODE = 000003
O_NONBLOCK = 000200
O_APPEND = 000010
O_DSYNCH = 000020
O_FSYNCH = 000040
O_SYNC = 000020
O_DSYNC = 000020
O_SYNC = 000040
O_PRIV = 010000
O_CREAT = 000400
O_TRUNC = 001000
O_EXCL = 002000
O_NOCTTY = 004000
O_TEMP = 010000
O_CACHE = 020000
O_TEXT = 000000
O_BINARY = 000000
F_DUPFD = 0
F_GETFD = 1
F_SETFD = 2
F_GETFL = 3
F_SETFL = 4
F_SETLK = 6
F_SETLKW = 7
F_CHKFL = 8
F_ALLOCSP = 10
F_FREESP = 11
F_ISSTREAM = 13
F_GETLK = 14
F_PRIV = 15
F_NPRIV = 16
F_QUOTACTL = 17
F_BLOCKS = 18
F_BLKSIZE = 19
F_RSETLK = 20
F_RGETLK = 21
F_RSETLKW = 22
FD_CLOEXEC = 0x01
F_RDLCK = 1
F_WRLCK = 2
F_UNLCK = 3
