Mercurial > cpython-lru_cache-weakref
annotate Lib/linux1/FCNTL.py @ 4566:6403c94de50d legacy-trunk
Added safeguard against failure in __del__.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 27 Nov 1996 19:39:58 +0000 |
| parents | 6ca9787cd3aa |
| children |
| rev | line source |
|---|---|
| 2633 | 1 # Generated by h2py from /usr/include/sys/fcntl.h |
| 2 | |
| 3 # Included from fcntl.h | |
| 4 | |
| 5 # Included from features.h | |
| 6 _FEATURES_H = 1 | |
| 7 _GNU_SOURCE = 1 | |
| 8 __USE_ANSI = 1 | |
| 9 __FAVOR_BSD = 1 | |
| 10 _BSD_SOURCE = 1 | |
| 11 _SVID_SOURCE = 1 | |
| 12 _POSIX_SOURCE = 1 | |
| 13 _POSIX_C_SOURCE = 2 | |
| 14 __USE_POSIX = 1 | |
| 15 __USE_POSIX2 = 1 | |
| 16 __USE_MISC = 1 | |
| 17 __USE_BSD = 1 | |
| 18 __USE_SVID = 1 | |
| 19 __USE_GNU = 1 | |
| 20 __GNU_LIBRARY__ = 1 | |
| 21 | |
| 22 # Included from sys/cdefs.h | |
| 23 _SYS_CDEFS_H = 1 | |
| 24 def __P(args): return args | |
| 25 | |
| 26 def __P(args): return args | |
| 27 | |
| 28 def __P(args): return () | |
| 29 | |
| 30 def __STRING(x): return #x | |
| 31 | |
| 32 def __STRING(x): return "x" | |
| 33 | |
| 34 | |
| 35 # Included from sys/types.h | |
| 36 | |
| 37 # Included from linux/types.h | |
|
3362
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
38 __FD_SETSIZE = 256 |
| 2633 | 39 |
| 40 # Included from asm/types.h | |
| 41 def __FD_ZERO(fdsetp): return \ | |
| 42 | |
| 43 | |
|
3362
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
44 # Included from sys/bitypes.h |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
45 |
| 2633 | 46 # Included from gnu/types.h |
| 47 _GNU_TYPES_H = 1 | |
| 48 __FDSET_LONGS = 8 | |
| 49 def __FD_ZERO(fdsetp): return \ | |
| 50 | |
| 51 __FD_SETSIZE = 256 | |
| 52 def __FDELT(d): return ((d) / __NFDBITS) | |
| 53 | |
| 54 def __FDMASK(d): return (1 << ((d) % __NFDBITS)) | |
| 55 | |
| 56 def __FD_ZERO(set): return \ | |
| 57 | |
| 58 | |
| 59 # Included from linux/fcntl.h | |
|
3362
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
60 |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
61 # Included from asm/fcntl.h |
| 2633 | 62 O_ACCMODE = 0003 |
| 63 O_RDONLY = 00 | |
| 64 O_WRONLY = 01 | |
| 65 O_RDWR = 02 | |
| 66 O_CREAT = 0100 | |
| 67 O_EXCL = 0200 | |
| 68 O_NOCTTY = 0400 | |
| 69 O_TRUNC = 01000 | |
| 70 O_APPEND = 02000 | |
| 71 O_NONBLOCK = 04000 | |
| 72 O_NDELAY = O_NONBLOCK | |
| 73 O_SYNC = 010000 | |
| 74 FASYNC = 020000 | |
| 75 F_DUPFD = 0 | |
| 76 F_GETFD = 1 | |
| 77 F_SETFD = 2 | |
| 78 F_GETFL = 3 | |
| 79 F_SETFL = 4 | |
| 80 F_GETLK = 5 | |
| 81 F_SETLK = 6 | |
| 82 F_SETLKW = 7 | |
| 83 F_SETOWN = 8 | |
| 84 F_GETOWN = 9 | |
| 85 FD_CLOEXEC = 1 | |
| 86 F_RDLCK = 0 | |
| 87 F_WRLCK = 1 | |
| 88 F_UNLCK = 2 | |
| 89 F_EXLCK = 4 | |
| 90 F_SHLCK = 8 | |
|
3362
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
91 LOCK_SH = 1 |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
92 LOCK_EX = 2 |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
93 LOCK_NB = 4 |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
94 LOCK_UN = 8 |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
95 F_POSIX = 1 |
|
6ca9787cd3aa
more recent linux header files
Guido van Rossum <guido@python.org>
parents:
2633
diff
changeset
|
96 F_FLOCK = 2 |
| 2633 | 97 FNDELAY = O_NDELAY |
| 98 F_ULOCK = 0 | |
| 99 F_LOCK = 1 | |
| 100 F_TLOCK = 2 | |
| 101 F_TEST = 3 |
