diff options
author | Guido van Rossum <guido@python.org> | 1995-04-05 09:44:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-04-05 09:44:56 (GMT) |
commit | 9a707e8c76eb8d5f5a673dc76b319c169aced34f (patch) | |
tree | e6d946143a6de93e32acbb28439179ea2e0394c7 /Lib/plat-linux1/FCNTL.py | |
parent | 8f4b6adb77884674435aac42d738ce781ecbcdc4 (diff) | |
download | cpython-9a707e8c76eb8d5f5a673dc76b319c169aced34f.zip cpython-9a707e8c76eb8d5f5a673dc76b319c169aced34f.tar.gz cpython-9a707e8c76eb8d5f5a673dc76b319c169aced34f.tar.bz2 |
added Linux specific files
Diffstat (limited to 'Lib/plat-linux1/FCNTL.py')
-rwxr-xr-x | Lib/plat-linux1/FCNTL.py | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/Lib/plat-linux1/FCNTL.py b/Lib/plat-linux1/FCNTL.py new file mode 100755 index 0000000..9d00fca --- /dev/null +++ b/Lib/plat-linux1/FCNTL.py @@ -0,0 +1,91 @@ +# Generated by h2py from /usr/include/sys/fcntl.h + +# Included from fcntl.h + +# Included from features.h +_FEATURES_H = 1 +_GNU_SOURCE = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_GNU = 1 +__GNU_LIBRARY__ = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __P(args): return args + +def __P(args): return args + +def __P(args): return () + +def __STRING(x): return #x + +def __STRING(x): return "x" + + +# Included from sys/types.h + +# Included from linux/types.h + +# Included from asm/types.h +__FDSET_LONGS = 8 +def __FD_ZERO(fdsetp): return \ + + +# Included from gnu/types.h +_GNU_TYPES_H = 1 +__FDSET_LONGS = 8 +def __FD_ZERO(fdsetp): return \ + +__FD_SETSIZE = 256 +def __FDELT(d): return ((d) / __NFDBITS) + +def __FDMASK(d): return (1 << ((d) % __NFDBITS)) + +def __FD_ZERO(set): return \ + + +# Included from linux/fcntl.h +O_ACCMODE = 0003 +O_RDONLY = 00 +O_WRONLY = 01 +O_RDWR = 02 +O_CREAT = 0100 +O_EXCL = 0200 +O_NOCTTY = 0400 +O_TRUNC = 01000 +O_APPEND = 02000 +O_NONBLOCK = 04000 +O_NDELAY = O_NONBLOCK +O_SYNC = 010000 +FASYNC = 020000 +F_DUPFD = 0 +F_GETFD = 1 +F_SETFD = 2 +F_GETFL = 3 +F_SETFL = 4 +F_GETLK = 5 +F_SETLK = 6 +F_SETLKW = 7 +F_SETOWN = 8 +F_GETOWN = 9 +FD_CLOEXEC = 1 +F_RDLCK = 0 +F_WRLCK = 1 +F_UNLCK = 2 +F_EXLCK = 4 +F_SHLCK = 8 +FNDELAY = O_NDELAY +F_ULOCK = 0 +F_LOCK = 1 +F_TLOCK = 2 +F_TEST = 3 |