diff options
author | Guido van Rossum <guido@python.org> | 1996-07-22 23:46:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-07-22 23:46:00 (GMT) |
commit | 54afb3bf60c690fc4f0984217134dc4fd9956800 (patch) | |
tree | 9c62235e76cb62a56bbc40f2c5513178fb560582 /Lib/plat-linux2/FCNTL.py | |
parent | c7c5e697c364f0eb5420f9156432a6102ee0b593 (diff) | |
download | cpython-54afb3bf60c690fc4f0984217134dc4fd9956800.zip cpython-54afb3bf60c690fc4f0984217134dc4fd9956800.tar.gz cpython-54afb3bf60c690fc4f0984217134dc4fd9956800.tar.bz2 |
New versions generated on a Linux 2.x system by AMK
Diffstat (limited to 'Lib/plat-linux2/FCNTL.py')
-rw-r--r-- | Lib/plat-linux2/FCNTL.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Lib/plat-linux2/FCNTL.py b/Lib/plat-linux2/FCNTL.py index f65c4fa..0058aba 100644 --- a/Lib/plat-linux2/FCNTL.py +++ b/Lib/plat-linux2/FCNTL.py @@ -35,12 +35,18 @@ def __STRING(x): return "x" # Included from sys/types.h # Included from linux/types.h -__FD_SETSIZE = 256 -# Included from asm/types.h +# Included from linux/posix_types.h +__FD_SETSIZE = 1024 +def __FDELT(d): return ((d) / __NFDBITS) + + +# Included from asm/posix_types.h def __FD_ZERO(fdsetp): return \ +# Included from asm/types.h + # Included from sys/bitypes.h # Included from gnu/types.h @@ -94,6 +100,7 @@ LOCK_NB = 4 LOCK_UN = 8 F_POSIX = 1 F_FLOCK = 2 +F_BROKEN = 4 FNDELAY = O_NDELAY F_ULOCK = 0 F_LOCK = 1 |