Guido van Rossum | 77c29a1 | 1996-07-22 21:50:43 +0000 | [diff] [blame] | 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 |
Guido van Rossum | 77c29a1 | 1996-07-22 21:50:43 +0000 | [diff] [blame] | 38 | |
Guido van Rossum | 54afb3b | 1996-07-22 23:46:00 +0000 | [diff] [blame^] | 39 | # Included from linux/posix_types.h |
| 40 | __FD_SETSIZE = 1024 |
| 41 | def __FDELT(d): return ((d) / __NFDBITS) |
| 42 | |
| 43 | |
| 44 | # Included from asm/posix_types.h |
Guido van Rossum | 77c29a1 | 1996-07-22 21:50:43 +0000 | [diff] [blame] | 45 | def __FD_ZERO(fdsetp): return \ |
| 46 | |
| 47 | |
Guido van Rossum | 54afb3b | 1996-07-22 23:46:00 +0000 | [diff] [blame^] | 48 | # Included from asm/types.h |
| 49 | |
Guido van Rossum | 77c29a1 | 1996-07-22 21:50:43 +0000 | [diff] [blame] | 50 | # Included from sys/bitypes.h |
| 51 | |
| 52 | # Included from gnu/types.h |
| 53 | _GNU_TYPES_H = 1 |
| 54 | __FDSET_LONGS = 8 |
| 55 | def __FD_ZERO(fdsetp): return \ |
| 56 | |
| 57 | __FD_SETSIZE = 256 |
| 58 | def __FDELT(d): return ((d) / __NFDBITS) |
| 59 | |
| 60 | def __FDMASK(d): return (1 << ((d) % __NFDBITS)) |
| 61 | |
| 62 | def __FD_ZERO(set): return \ |
| 63 | |
| 64 | |
| 65 | # Included from linux/fcntl.h |
| 66 | |
| 67 | # Included from asm/fcntl.h |
| 68 | O_ACCMODE = 0003 |
| 69 | O_RDONLY = 00 |
| 70 | O_WRONLY = 01 |
| 71 | O_RDWR = 02 |
| 72 | O_CREAT = 0100 |
| 73 | O_EXCL = 0200 |
| 74 | O_NOCTTY = 0400 |
| 75 | O_TRUNC = 01000 |
| 76 | O_APPEND = 02000 |
| 77 | O_NONBLOCK = 04000 |
| 78 | O_NDELAY = O_NONBLOCK |
| 79 | O_SYNC = 010000 |
| 80 | FASYNC = 020000 |
| 81 | F_DUPFD = 0 |
| 82 | F_GETFD = 1 |
| 83 | F_SETFD = 2 |
| 84 | F_GETFL = 3 |
| 85 | F_SETFL = 4 |
| 86 | F_GETLK = 5 |
| 87 | F_SETLK = 6 |
| 88 | F_SETLKW = 7 |
| 89 | F_SETOWN = 8 |
| 90 | F_GETOWN = 9 |
| 91 | FD_CLOEXEC = 1 |
| 92 | F_RDLCK = 0 |
| 93 | F_WRLCK = 1 |
| 94 | F_UNLCK = 2 |
| 95 | F_EXLCK = 4 |
| 96 | F_SHLCK = 8 |
| 97 | LOCK_SH = 1 |
| 98 | LOCK_EX = 2 |
| 99 | LOCK_NB = 4 |
| 100 | LOCK_UN = 8 |
| 101 | F_POSIX = 1 |
| 102 | F_FLOCK = 2 |
Guido van Rossum | 54afb3b | 1996-07-22 23:46:00 +0000 | [diff] [blame^] | 103 | F_BROKEN = 4 |
Guido van Rossum | 77c29a1 | 1996-07-22 21:50:43 +0000 | [diff] [blame] | 104 | FNDELAY = O_NDELAY |
| 105 | F_ULOCK = 0 |
| 106 | F_LOCK = 1 |
| 107 | F_TLOCK = 2 |
| 108 | F_TEST = 3 |