cpython/Lib/plat-beos5/FCNTL.py

124 lines
2.4 KiB
Python
Raw Normal View History

# Generated by h2py from /boot/develop/headers/posix/fcntl.h
# Included from be_setup.h
def __std(ref): return ref
__be_os = 2
__dest_os = __be_os
__MSL__ = 0x4011
__GLIBC__ = -2
__GLIBC_MINOR__ = 1
# Included from BeBuild.h
B_BEOS_VERSION_4 = 0x0400
B_BEOS_VERSION_4_5 = 0x0450
B_BEOS_VERSION_5 = 0x0500
B_BEOS_VERSION = B_BEOS_VERSION_5
B_BEOS_VERSION_MAUI = B_BEOS_VERSION_5
_PR2_COMPATIBLE_ = 1
_PR3_COMPATIBLE_ = 1
_R4_COMPATIBLE_ = 1
_R4_5_COMPATIBLE_ = 1
_PR2_COMPATIBLE_ = 0
_PR3_COMPATIBLE_ = 0
_R4_COMPATIBLE_ = 1
_R4_5_COMPATIBLE_ = 1
def _UNUSED(x): return x
# Included from sys/types.h
# Included from time.h
# Included from null.h
NULL = (0)
NULL = 0L
# Included from size_t.h
# Included from stddef.h
# Included from wchar_t.h
CLOCKS_PER_SEC = 1000
CLK_TCK = CLOCKS_PER_SEC
MAX_TIMESTR = 70
# Included from sys/stat.h
S_ATTR_DIR = 01000000000
S_ATTR = 02000000000
S_INDEX_DIR = 04000000000
S_STR_INDEX = 00100000000
S_INT_INDEX = 00200000000
S_UINT_INDEX = 00400000000
S_LONG_LONG_INDEX = 00010000000
S_ULONG_LONG_INDEX = 00020000000
S_FLOAT_INDEX = 00040000000
S_DOUBLE_INDEX = 00001000000
S_ALLOW_DUPS = 00002000000
S_IFMT = 00000170000
S_IFLNK = 00000120000
S_IFREG = 00000100000
S_IFBLK = 00000060000
S_IFDIR = 00000040000
S_IFCHR = 00000020000
S_IFIFO = 00000010000
def S_ISREG(m): return (((m) & S_IFMT) == S_IFREG)
def S_ISLNK(m): return (((m) & S_IFMT) == S_IFLNK)
def S_ISBLK(m): return (((m) & S_IFMT) == S_IFBLK)
def S_ISDIR(m): return (((m) & S_IFMT) == S_IFDIR)
def S_ISCHR(m): return (((m) & S_IFMT) == S_IFCHR)
def S_ISFIFO(m): return (((m) & S_IFMT) == S_IFIFO)
def S_ISINDEX(m): return (((m) & S_INDEX_DIR) == S_INDEX_DIR)
S_IUMSK = 07777
S_ISUID = 04000
S_ISGID = 02000
S_ISVTX = 01000
S_IRWXU = 00700
S_IRUSR = 00400
S_IWUSR = 00200
S_IXUSR = 00100
S_IRWXG = 00070
S_IRGRP = 00040
S_IWGRP = 00020
S_IXGRP = 00010
S_IRWXO = 00007
S_IROTH = 00004
S_IWOTH = 00002
S_IXOTH = 00001
F_DUPFD = 0x0001
F_GETFD = 0x0002
F_SETFD = 0x0004
F_GETFL = 0x0008
F_SETFL = 0x0010
F_GETLK = 0x0020
F_RDLCK = 0x0040
F_SETLK = 0x0080
F_SETLKW = 0x0100
F_UNLCK = 0x0200
F_WRLCK = 0x0400
FD_CLOEXEC = 1
FD_CLOEXEC = 0x0800
O_RDONLY = 0
O_WRONLY = 1
O_RDWR = 2
O_RWMASK = 3
O_CLOEXEC = 0x0040
O_NONBLOCK = 0x0080
O_EXCL = 0x0100
O_CREAT = 0x0200
O_TRUNC = 0x0400
O_APPEND = 0x0800
O_NOCTTY = 0x1000
O_NOTRAVERSE = 0x2000
O_ACCMODE = 0x0003
O_TEXT = 0x4000
O_BINARY = 0x8000
S_IREAD = 0x0100
S_IWRITE = 0x0080