Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 1 | # Generated by h2py from stdin |
Guido van Rossum | e30cb84 | 1993-12-29 16:37:25 +0000 | [diff] [blame] | 2 | _FOPEN = (-1) |
| 3 | _FREAD = 0x0001 |
| 4 | _FWRITE = 0x0002 |
| 5 | _FNDELAY = 0x0004 |
| 6 | _FAPPEND = 0x0008 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 7 | _FSETBLK = 0x0010 |
Guido van Rossum | e30cb84 | 1993-12-29 16:37:25 +0000 | [diff] [blame] | 8 | _FASYNC = 0x0040 |
| 9 | _FSHLOCK = 0x0080 |
| 10 | _FEXLOCK = 0x0100 |
| 11 | _FCREAT = 0x0200 |
| 12 | _FTRUNC = 0x0400 |
| 13 | _FEXCL = 0x0800 |
| 14 | _FNBIO = 0x1000 |
| 15 | _FSYNC = 0x2000 |
| 16 | _FNONBLOCK = 0x4000 |
| 17 | _FNOCTTY = 0x8000 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 18 | _FMARK = 0x10000 |
| 19 | _FDEFER = 0x20000 |
Guido van Rossum | e30cb84 | 1993-12-29 16:37:25 +0000 | [diff] [blame] | 20 | O_RDONLY = 0 |
| 21 | O_WRONLY = 1 |
| 22 | O_RDWR = 2 |
| 23 | O_APPEND = _FAPPEND |
| 24 | O_CREAT = _FCREAT |
| 25 | O_TRUNC = _FTRUNC |
| 26 | O_EXCL = _FEXCL |
| 27 | O_NONBLOCK = _FNONBLOCK |
| 28 | O_NOCTTY = _FNOCTTY |
| 29 | O_SYNC = _FSYNC |
Guido van Rossum | e30cb84 | 1993-12-29 16:37:25 +0000 | [diff] [blame] | 30 | FAPPEND = _FAPPEND |
| 31 | FSYNC = _FSYNC |
| 32 | FASYNC = _FASYNC |
| 33 | FNBIO = _FNBIO |
| 34 | FNONBIO = _FNONBLOCK |
| 35 | FNDELAY = _FNDELAY |
| 36 | FREAD = _FREAD |
| 37 | FWRITE = _FWRITE |
| 38 | FMARK = _FMARK |
| 39 | FDEFER = _FDEFER |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 40 | FSETBLK = _FSETBLK |
Guido van Rossum | e30cb84 | 1993-12-29 16:37:25 +0000 | [diff] [blame] | 41 | FSHLOCK = _FSHLOCK |
| 42 | FEXLOCK = _FEXLOCK |
| 43 | FOPEN = _FOPEN |
| 44 | FCREAT = _FCREAT |
| 45 | FTRUNC = _FTRUNC |
| 46 | FEXCL = _FEXCL |
| 47 | FNOCTTY = _FNOCTTY |
| 48 | FD_CLOEXEC = 1 |
| 49 | F_DUPFD = 0 |
| 50 | F_GETFD = 1 |
| 51 | F_SETFD = 2 |
| 52 | F_GETFL = 3 |
| 53 | F_SETFL = 4 |
| 54 | F_GETOWN = 5 |
| 55 | F_SETOWN = 6 |
| 56 | F_GETLK = 7 |
| 57 | F_SETLK = 8 |
| 58 | F_SETLKW = 9 |
| 59 | F_RGETLK = 10 |
| 60 | F_RSETLK = 11 |
| 61 | F_CNVT = 12 |
| 62 | F_RSETLKW = 13 |
| 63 | F_RDLCK = 1 |
| 64 | F_WRLCK = 2 |
| 65 | F_UNLCK = 3 |
| 66 | F_UNLKSYS = 4 |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 67 | O_ACCMODE = (O_RDONLY|O_WRONLY|O_RDWR) |