# Generated by h2py from /usr/include/fcntl.h
_FCNTL_H = 1

# Included from features.h
_FEATURES_H = 1
__USE_ANSI = 1
__FAVOR_BSD = 1
_ISOC99_SOURCE = 1
_POSIX_SOURCE = 1
_POSIX_C_SOURCE = 199506L
_XOPEN_SOURCE = 600
_XOPEN_SOURCE_EXTENDED = 1
_LARGEFILE64_SOURCE = 1
_BSD_SOURCE = 1
_SVID_SOURCE = 1
_BSD_SOURCE = 1
_SVID_SOURCE = 1
__USE_ISOC99 = 1
_POSIX_SOURCE = 1
_POSIX_C_SOURCE = 2
_POSIX_C_SOURCE = 199506L
__USE_POSIX = 1
__USE_POSIX2 = 1
__USE_POSIX199309 = 1
__USE_POSIX199506 = 1
__USE_XOPEN = 1
__USE_XOPEN_EXTENDED = 1
__USE_UNIX98 = 1
_LARGEFILE_SOURCE = 1
__USE_XOPEN2K = 1
__USE_ISOC99 = 1
__USE_XOPEN_EXTENDED = 1
__USE_LARGEFILE = 1
__USE_LARGEFILE64 = 1
__USE_FILE_OFFSET64 = 1
__USE_MISC = 1
__USE_BSD = 1
__USE_SVID = 1
__USE_GNU = 1
__USE_REENTRANT = 1
__STDC_IEC_559__ = 1
__STDC_IEC_559_COMPLEX__ = 1
__STDC_ISO_10646__ = 200010L
__GNU_LIBRARY__ = 6
__GLIBC__ = 2
__GLIBC_MINOR__ = 2

# Included from sys/cdefs.h
_SYS_CDEFS_H = 1
def __PMT(args): return args

def __P(args): return args

def __PMT(args): return args

def __STRING(x): return #x

def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname)

def __attribute__(xyz): return  

def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x)))

def __attribute_format_arg__(x): return  

__USE_LARGEFILE = 1
__USE_LARGEFILE64 = 1
__USE_EXTERN_INLINES = 1

# Included from gnu/stubs.h

# Included from bits/fcntl.h

# Included from sys/types.h
_SYS_TYPES_H = 1

# Included from bits/types.h
_BITS_TYPES_H = 1
__FD_SETSIZE = 1024
def __FDELT(d): return ((d) / __NFDBITS)


# Included from bits/pthreadtypes.h
_BITS_PTHREADTYPES_H = 1

# Included from bits/sched.h
SCHED_OTHER = 0
SCHED_FIFO = 1
SCHED_RR = 2
CSIGNAL = 0x000000ff
CLONE_VM = 0x00000100
CLONE_FS = 0x00000200
CLONE_FILES = 0x00000400
CLONE_SIGHAND = 0x00000800
CLONE_PID = 0x00001000
CLONE_PTRACE = 0x00002000
CLONE_VFORK = 0x00004000
__defined_schedparam = 1

# Included from time.h
_TIME_H = 1

# Included from bits/time.h
_BITS_TIME_H = 1
CLOCKS_PER_SEC = 1000000l
CLK_TCK = 100
CLOCK_REALTIME = 0
TIMER_ABSTIME = 1
_STRUCT_TIMEVAL = 1
CLK_TCK = CLOCKS_PER_SEC
__clock_t_defined = 1
__time_t_defined = 1
__clockid_t_defined = 1
__timer_t_defined = 1
__timespec_defined = 1
def __isleap(year): return \

__BIT_TYPES_DEFINED__ = 1

# Included from endian.h
_ENDIAN_H = 1
__LITTLE_ENDIAN = 1234
__BIG_ENDIAN = 4321
__PDP_ENDIAN = 3412

# Included from bits/endian.h
__BYTE_ORDER = __BIG_ENDIAN
__BYTE_ORDER = __LITTLE_ENDIAN
__FLOAT_WORD_ORDER = __BYTE_ORDER
LITTLE_ENDIAN = __LITTLE_ENDIAN
BIG_ENDIAN = __BIG_ENDIAN
PDP_ENDIAN = __PDP_ENDIAN
BYTE_ORDER = __BYTE_ORDER

# Included from sys/select.h
_SYS_SELECT_H = 1

# Included from bits/select.h
def __FD_ZERO(s): return \


# Included from bits/sigset.h
_SIGSET_H_types = 1
_SIGSET_H_fns = 1
def __sigmask(sig): return \

def __sigemptyset(set): return \

def __sigfillset(set): return \

def __sigisemptyset(set): return \

FD_SETSIZE = __FD_SETSIZE
def FD_ZERO(fdsetp): return __FD_ZERO (fdsetp)


# Included from sys/sysmacros.h
_SYS_SYSMACROS_H = 1
def major(dev): return ((int)(((dev) >> 8) & 0xff))

def minor(dev): return ((int)((dev) & 0xff))

def major(dev): return (((dev).__val[1] >> 8) & 0xff)

def minor(dev): return ((dev).__val[1] & 0xff)

def major(dev): return (((dev).__val[0] >> 8) & 0xff)

def minor(dev): return ((dev).__val[0] & 0xff)

O_ACCMODE = 0x0003
O_RDONLY = 0x0000
O_WRONLY = 0x0001
O_RDWR = 0x0002
O_APPEND = 0x0008
O_SYNC = 0x0010
O_NONBLOCK = 0x0080
O_CREAT = 0x0100
O_TRUNC = 0x0200
O_EXCL = 0x0400
O_NOCTTY = 0x0800
O_FSYNC = O_SYNC
O_ASYNC = 0x1000
O_LARGEFILE = 0x2000
O_NOFOLLOW = 0x4000
O_DIRECT = 0x8000
O_DIRECTORY = 0x10000
O_NDELAY = O_NONBLOCK
O_DSYNC = O_SYNC
O_RSYNC = O_SYNC
F_DUPFD = 0
F_GETFD = 1
F_SETFD = 2
F_GETFL = 3
F_SETFL = 4
F_GETLK = 14
F_SETLK = 6
F_SETLKW = 7
F_GETLK64 = 33
F_SETLK64 = 34
F_SETLKW64 = 35
F_SETOWN = 24
F_GETOWN = 23
F_SETSIG = 10
F_GETSIG = 11
F_SETLEASE = 1024
F_GETLEASE = 1025
F_NOTIFY = 1026
FD_CLOEXEC = 1
F_RDLCK = 0
F_WRLCK = 1
F_UNLCK = 2
F_EXLCK = 4
F_SHLCK = 8
LOCK_SH = 1
LOCK_EX = 2
LOCK_NB = 4
LOCK_UN = 8
LOCK_MAND = 32
LOCK_READ = 64
LOCK_WRITE = 128
LOCK_RW = 192
DN_ACCESS = 0x00000001
DN_MODIFY = 0x00000002
DN_CREATE = 0x00000004
DN_DELETE = 0x00000008
DN_RENAME = 0x00000010
DN_ATTRIB = 0x00000020
DN_MULTISHOT = 0x80000000
FAPPEND = O_APPEND
FFSYNC = O_FSYNC
FASYNC = O_ASYNC
FNONBLOCK = O_NONBLOCK
FNDELAY = O_NDELAY
POSIX_FADV_NORMAL = 0
POSIX_FADV_RANDOM = 1
POSIX_FADV_SEQUENTIAL = 2
POSIX_FADV_WILLNEED = 3
POSIX_FADV_DONTNEED = 4
POSIX_FADV_NOREUSE = 5

# Included from sys/stat.h
_SYS_STAT_H = 1

# Included from bits/stat.h
_STAT_VER_LINUX_OLD = 1
_STAT_VER_KERNEL = 1
_STAT_VER_SVR4 = 2
_STAT_VER_LINUX = 3
_STAT_VER = _STAT_VER_LINUX
_MKNOD_VER_LINUX = 1
_MKNOD_VER_SVR4 = 2
_MKNOD_VER = _MKNOD_VER_LINUX
__S_IFMT = 0170000
__S_IFDIR = 0040000
__S_IFCHR = 0020000
__S_IFBLK = 0060000
__S_IFREG = 0100000
__S_IFIFO = 0010000
__S_IFLNK = 0120000
__S_IFSOCK = 0140000
def __S_TYPEISMQ(buf): return (0)

def __S_TYPEISSEM(buf): return (0)

def __S_TYPEISSHM(buf): return (0)

__S_ISUID = 04000
__S_ISGID = 02000
__S_ISVTX = 01000
__S_IREAD = 0400
__S_IWRITE = 0200
__S_IEXEC = 0100
S_IFMT = __S_IFMT
S_IFDIR = __S_IFDIR
S_IFCHR = __S_IFCHR
S_IFBLK = __S_IFBLK
S_IFREG = __S_IFREG
S_IFIFO = __S_IFIFO
S_IFLNK = __S_IFLNK
S_IFSOCK = __S_IFSOCK
def S_ISDIR(mode): return __S_ISTYPE((mode), __S_IFDIR)

def S_ISCHR(mode): return __S_ISTYPE((mode), __S_IFCHR)

def S_ISBLK(mode): return __S_ISTYPE((mode), __S_IFBLK)

def S_ISREG(mode): return __S_ISTYPE((mode), __S_IFREG)

def S_ISFIFO(mode): return __S_ISTYPE((mode), __S_IFIFO)

def S_ISLNK(mode): return __S_ISTYPE((mode), __S_IFLNK)

def S_ISLNK(mode): return 0

def S_ISSOCK(mode): return __S_ISTYPE((mode), __S_IFSOCK)

def S_TYPEISMQ(buf): return __S_TYPEISMQ(buf)

def S_TYPEISSEM(buf): return __S_TYPEISSEM(buf)

def S_TYPEISSHM(buf): return __S_TYPEISSHM(buf)

S_ISUID = __S_ISUID
S_ISGID = __S_ISGID
S_ISVTX = __S_ISVTX
S_IRUSR = __S_IREAD
S_IWUSR = __S_IWRITE
S_IXUSR = __S_IEXEC
S_IRWXU = (__S_IREAD|__S_IWRITE|__S_IEXEC)
S_IREAD = S_IRUSR
S_IWRITE = S_IWUSR
S_IEXEC = S_IXUSR
S_IRGRP = (S_IRUSR >> 3)
S_IWGRP = (S_IWUSR >> 3)
S_IXGRP = (S_IXUSR >> 3)
S_IRWXG = (S_IRWXU >> 3)
S_IROTH = (S_IRGRP >> 3)
S_IWOTH = (S_IWGRP >> 3)
S_IXOTH = (S_IXGRP >> 3)
S_IRWXO = (S_IRWXG >> 3)
ACCESSPERMS = (S_IRWXU|S_IRWXG|S_IRWXO)
ALLPERMS = (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
DEFFILEMODE = (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
S_BLKSIZE = 512
_STAT_VER = 0
_MKNOD_VER = 0
R_OK = 4
W_OK = 2
X_OK = 1
F_OK = 0
SEEK_SET = 0
SEEK_CUR = 1
SEEK_END = 2
F_ULOCK = 0
F_LOCK = 1
F_TLOCK = 2
F_TEST = 3
