diff options
author | Guido van Rossum <guido@python.org> | 1996-01-26 17:43:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-01-26 17:43:46 (GMT) |
commit | 15c4fecffc6cc3f51130dff942d7b8c4040ad423 (patch) | |
tree | 99c46360b01dd5edf93892368cab373faf64d83d /Lib/plat-linux1/FCNTL.py | |
parent | 8c8a02a2588b0219d88fb892635148f9467f6634 (diff) | |
download | cpython-15c4fecffc6cc3f51130dff942d7b8c4040ad423.zip cpython-15c4fecffc6cc3f51130dff942d7b8c4040ad423.tar.gz cpython-15c4fecffc6cc3f51130dff942d7b8c4040ad423.tar.bz2 |
more recent linux header files
Diffstat (limited to 'Lib/plat-linux1/FCNTL.py')
-rwxr-xr-x | Lib/plat-linux1/FCNTL.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Lib/plat-linux1/FCNTL.py b/Lib/plat-linux1/FCNTL.py index 9d00fca..f65c4fa 100755 --- a/Lib/plat-linux1/FCNTL.py +++ b/Lib/plat-linux1/FCNTL.py @@ -35,12 +35,14 @@ def __STRING(x): return "x" # Included from sys/types.h # Included from linux/types.h +__FD_SETSIZE = 256 # Included from asm/types.h -__FDSET_LONGS = 8 def __FD_ZERO(fdsetp): return \ +# Included from sys/bitypes.h + # Included from gnu/types.h _GNU_TYPES_H = 1 __FDSET_LONGS = 8 @@ -55,6 +57,8 @@ def __FD_ZERO(set): return \ # Included from linux/fcntl.h + +# Included from asm/fcntl.h O_ACCMODE = 0003 O_RDONLY = 00 O_WRONLY = 01 @@ -84,6 +88,12 @@ F_WRLCK = 1 F_UNLCK = 2 F_EXLCK = 4 F_SHLCK = 8 +LOCK_SH = 1 +LOCK_EX = 2 +LOCK_NB = 4 +LOCK_UN = 8 +F_POSIX = 1 +F_FLOCK = 2 FNDELAY = O_NDELAY F_ULOCK = 0 F_LOCK = 1 |