Guido van Rossum | 9a707e8 | 1995-04-05 09:44:56 +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 | 15c4fec | 1996-01-26 17:43:46 +0000 | [diff] [blame] | 38 | __FD_SETSIZE = 256 |
Guido van Rossum | 9a707e8 | 1995-04-05 09:44:56 +0000 | [diff] [blame] | 39 | |
| 40 | # Included from asm/types.h |
Guido van Rossum | 9a707e8 | 1995-04-05 09:44:56 +0000 | [diff] [blame] | 41 | def __FD_ZERO(fdsetp): return \ |
| 42 | |
| 43 | |
Guido van Rossum | 15c4fec | 1996-01-26 17:43:46 +0000 | [diff] [blame] | 44 | # Included from sys/bitypes.h |
| 45 | |
Guido van Rossum | 9a707e8 | 1995-04-05 09:44:56 +0000 | [diff] [blame] | 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 |
Guido van Rossum | 15c4fec | 1996-01-26 17:43:46 +0000 | [diff] [blame] | 60 | |
| 61 | # Included from asm/fcntl.h |
Guido van Rossum | 9a707e8 | 1995-04-05 09:44:56 +0000 | [diff] [blame] | 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 |
Guido van Rossum | 15c4fec | 1996-01-26 17:43:46 +0000 | [diff] [blame] | 91 | LOCK_SH = 1 |
| 92 | LOCK_EX = 2 |
| 93 | LOCK_NB = 4 |
| 94 | LOCK_UN = 8 |
| 95 | F_POSIX = 1 |
| 96 | F_FLOCK = 2 |
Guido van Rossum | 9a707e8 | 1995-04-05 09:44:56 +0000 | [diff] [blame] | 97 | FNDELAY = O_NDELAY |
| 98 | F_ULOCK = 0 |
| 99 | F_LOCK = 1 |
| 100 | F_TLOCK = 2 |
| 101 | F_TEST = 3 |