| 1 | n/a | # Generated by h2py from /usr/include/sys/file.h |
|---|
| 2 | n/a | from warnings import warnpy3k |
|---|
| 3 | n/a | warnpy3k("the FILE module has been removed in Python 3.0", stacklevel=2) |
|---|
| 4 | n/a | del warnpy3k |
|---|
| 5 | n/a | |
|---|
| 6 | n/a | # Included from sys/types.h |
|---|
| 7 | n/a | |
|---|
| 8 | n/a | # Included from sgidefs.h |
|---|
| 9 | n/a | _MIPS_ISA_MIPS1 = 1 |
|---|
| 10 | n/a | _MIPS_ISA_MIPS2 = 2 |
|---|
| 11 | n/a | _MIPS_ISA_MIPS3 = 3 |
|---|
| 12 | n/a | _MIPS_ISA_MIPS4 = 4 |
|---|
| 13 | n/a | _MIPS_SIM_ABI32 = 1 |
|---|
| 14 | n/a | _MIPS_SIM_NABI32 = 2 |
|---|
| 15 | n/a | _MIPS_SIM_ABI64 = 3 |
|---|
| 16 | n/a | P_MYID = (-1) |
|---|
| 17 | n/a | P_MYHOSTID = (-1) |
|---|
| 18 | n/a | |
|---|
| 19 | n/a | # Included from sys/bsd_types.h |
|---|
| 20 | n/a | |
|---|
| 21 | n/a | # Included from sys/mkdev.h |
|---|
| 22 | n/a | ONBITSMAJOR = 7 |
|---|
| 23 | n/a | ONBITSMINOR = 8 |
|---|
| 24 | n/a | OMAXMAJ = 0x7f |
|---|
| 25 | n/a | OMAXMIN = 0xff |
|---|
| 26 | n/a | NBITSMAJOR = 14 |
|---|
| 27 | n/a | NBITSMINOR = 18 |
|---|
| 28 | n/a | MAXMAJ = 0x1ff |
|---|
| 29 | n/a | MAXMIN = 0x3ffff |
|---|
| 30 | n/a | OLDDEV = 0 |
|---|
| 31 | n/a | NEWDEV = 1 |
|---|
| 32 | n/a | MKDEV_VER = NEWDEV |
|---|
| 33 | n/a | def major(dev): return __major(MKDEV_VER, dev) |
|---|
| 34 | n/a | |
|---|
| 35 | n/a | def minor(dev): return __minor(MKDEV_VER, dev) |
|---|
| 36 | n/a | |
|---|
| 37 | n/a | |
|---|
| 38 | n/a | # Included from sys/select.h |
|---|
| 39 | n/a | FD_SETSIZE = 1024 |
|---|
| 40 | n/a | NBBY = 8 |
|---|
| 41 | n/a | |
|---|
| 42 | n/a | # Included from sys/sema.h |
|---|
| 43 | n/a | HP_NOPOLICY = 0 |
|---|
| 44 | n/a | HP_ADDOFF = 1 |
|---|
| 45 | n/a | HP_MULOFF = 2 |
|---|
| 46 | n/a | SEMA_NAMSZ = 8 |
|---|
| 47 | n/a | SEMA_NOHIST = 0x1 |
|---|
| 48 | n/a | SEMA_LIFO = 0x2 |
|---|
| 49 | n/a | SEMA_MUTEX = 0x4 |
|---|
| 50 | n/a | SEMA_METER = 0x8 |
|---|
| 51 | n/a | SEMAOP_PSEMA = 1 |
|---|
| 52 | n/a | SEMAOP_VSEMA = 2 |
|---|
| 53 | n/a | SEMAOP_CPSEMA = 3 |
|---|
| 54 | n/a | SEMAOP_CVSEMA = 4 |
|---|
| 55 | n/a | SEMAOP_WSEMA = 5 |
|---|
| 56 | n/a | SEMAOP_UNSEMA = 6 |
|---|
| 57 | n/a | SEMAOP_INIT = 7 |
|---|
| 58 | n/a | SEMAOP_FREE = 8 |
|---|
| 59 | n/a | SSOP_PHIT = 1 |
|---|
| 60 | n/a | SSOP_PSLP = 2 |
|---|
| 61 | n/a | SSOP_PWAKE = 6 |
|---|
| 62 | n/a | SSOP_PRESIG = 7 |
|---|
| 63 | n/a | SSOP_POSTSIG = 8 |
|---|
| 64 | n/a | SSOP_VNOWAKE = 3 |
|---|
| 65 | n/a | SSOP_VWAKE = 4 |
|---|
| 66 | n/a | SSOP_CPHIT = 1 |
|---|
| 67 | n/a | SSOP_CPMISS = 5 |
|---|
| 68 | n/a | SSOP_CVNOWAKE = 3 |
|---|
| 69 | n/a | SSOP_CVWAKE = 4 |
|---|
| 70 | n/a | SSOP_WMISS = 5 |
|---|
| 71 | n/a | SSOP_WWAKE = 4 |
|---|
| 72 | n/a | SSOP_RMV = 9 |
|---|
| 73 | n/a | TZERO = 10 |
|---|
| 74 | n/a | SEMA_NOP = 0 |
|---|
| 75 | n/a | SEMA_WAKE = 1 |
|---|
| 76 | n/a | SEMA_VSEMA = 2 |
|---|
| 77 | n/a | SEMA_SPINOP = 3 |
|---|
| 78 | n/a | MR_ACCESS = 0x1 |
|---|
| 79 | n/a | MR_UPDATE = 0x2 |
|---|
| 80 | n/a | def cv_signal(cv): return cvsema(cv); |
|---|
| 81 | n/a | |
|---|
| 82 | n/a | def cv_destroy(cv): return freesema(cv) |
|---|
| 83 | n/a | |
|---|
| 84 | n/a | def mutex_enter(m): return psema(m, PZERO | PNOSTOP) |
|---|
| 85 | n/a | |
|---|
| 86 | n/a | def mutex_exit(m): return vsema(m) |
|---|
| 87 | n/a | |
|---|
| 88 | n/a | def mutex_destroy(m): return freesema(m) |
|---|
| 89 | n/a | |
|---|
| 90 | n/a | def MUTEX_HELD(m): return (ownsema(m)) |
|---|
| 91 | n/a | |
|---|
| 92 | n/a | def MUTEX_HELD(m): return (1) |
|---|
| 93 | n/a | |
|---|
| 94 | n/a | RW_READER = MR_ACCESS |
|---|
| 95 | n/a | RW_WRITER = MR_UPDATE |
|---|
| 96 | n/a | def rw_exit(r): return mrunlock(r) |
|---|
| 97 | n/a | |
|---|
| 98 | n/a | def rw_tryupgrade(r): return cmrpromote(r) |
|---|
| 99 | n/a | |
|---|
| 100 | n/a | def rw_downgrade(r): return mrdemote(r) |
|---|
| 101 | n/a | |
|---|
| 102 | n/a | def rw_destroy(r): return mrfree(r) |
|---|
| 103 | n/a | |
|---|
| 104 | n/a | def RW_WRITE_HELD(r): return ismrlocked(r, MR_UPDATE) |
|---|
| 105 | n/a | |
|---|
| 106 | n/a | def RW_READ_HELD(r): return ismrlocked(r, MR_ACCESS) |
|---|
| 107 | n/a | |
|---|
| 108 | n/a | |
|---|
| 109 | n/a | # Included from sys/splock.h |
|---|
| 110 | n/a | SPLOCKNAMSIZ = 8 |
|---|
| 111 | n/a | SPLOCK_NONE = 0 |
|---|
| 112 | n/a | SPLOCK_SOFT = 1 |
|---|
| 113 | n/a | SPLOCK_HARD = 2 |
|---|
| 114 | n/a | OWNER_NONE = -1 |
|---|
| 115 | n/a | MAP_LOCKID = 0 |
|---|
| 116 | n/a | SPLOCK_MAX = (96*1024) |
|---|
| 117 | n/a | SPLOCK_MAX = 32768 |
|---|
| 118 | n/a | MIN_POOL_SIZE = 256 |
|---|
| 119 | n/a | MAX_POOL_SIZE = 16384 |
|---|
| 120 | n/a | DEF_SEMA_POOL = 8192 |
|---|
| 121 | n/a | DEF_VNODE_POOL = 1024 |
|---|
| 122 | n/a | DEF_FILE_POOL = 1024 |
|---|
| 123 | n/a | def ownlock(x): return 1 |
|---|
| 124 | n/a | |
|---|
| 125 | n/a | def splock(x): return 1 |
|---|
| 126 | n/a | |
|---|
| 127 | n/a | def io_splock(x): return 1 |
|---|
| 128 | n/a | |
|---|
| 129 | n/a | def apvsema(x): return vsema(x) |
|---|
| 130 | n/a | |
|---|
| 131 | n/a | def apcpsema(x): return cpsema(x) |
|---|
| 132 | n/a | |
|---|
| 133 | n/a | def apcvsema(x): return cvsema(x) |
|---|
| 134 | n/a | |
|---|
| 135 | n/a | def mp_mrunlock(a): return mrunlock(a) |
|---|
| 136 | n/a | |
|---|
| 137 | n/a | def apvsema(x): return 0 |
|---|
| 138 | n/a | |
|---|
| 139 | n/a | def apcpsema(x): return 1 |
|---|
| 140 | n/a | |
|---|
| 141 | n/a | def apcvsema(x): return 0 |
|---|
| 142 | n/a | |
|---|
| 143 | n/a | def mp_mrunlock(a): return 0 |
|---|
| 144 | n/a | |
|---|
| 145 | n/a | |
|---|
| 146 | n/a | # Included from sys/fcntl.h |
|---|
| 147 | n/a | FNDELAY = 0x04 |
|---|
| 148 | n/a | FAPPEND = 0x08 |
|---|
| 149 | n/a | FSYNC = 0x10 |
|---|
| 150 | n/a | FNONBLOCK = 0x80 |
|---|
| 151 | n/a | FASYNC = 0x1000 |
|---|
| 152 | n/a | FNONBLK = FNONBLOCK |
|---|
| 153 | n/a | FDIRECT = 0x8000 |
|---|
| 154 | n/a | FCREAT = 0x0100 |
|---|
| 155 | n/a | FTRUNC = 0x0200 |
|---|
| 156 | n/a | FEXCL = 0x0400 |
|---|
| 157 | n/a | FNOCTTY = 0x0800 |
|---|
| 158 | n/a | O_RDONLY = 0 |
|---|
| 159 | n/a | O_WRONLY = 1 |
|---|
| 160 | n/a | O_RDWR = 2 |
|---|
| 161 | n/a | O_NDELAY = 0x04 |
|---|
| 162 | n/a | O_APPEND = 0x08 |
|---|
| 163 | n/a | O_SYNC = 0x10 |
|---|
| 164 | n/a | O_NONBLOCK = 0x80 |
|---|
| 165 | n/a | O_DIRECT = 0x8000 |
|---|
| 166 | n/a | O_CREAT = 0x100 |
|---|
| 167 | n/a | O_TRUNC = 0x200 |
|---|
| 168 | n/a | O_EXCL = 0x400 |
|---|
| 169 | n/a | O_NOCTTY = 0x800 |
|---|
| 170 | n/a | F_DUPFD = 0 |
|---|
| 171 | n/a | F_GETFD = 1 |
|---|
| 172 | n/a | F_SETFD = 2 |
|---|
| 173 | n/a | F_GETFL = 3 |
|---|
| 174 | n/a | F_SETFL = 4 |
|---|
| 175 | n/a | F_GETLK = 14 |
|---|
| 176 | n/a | F_SETLK = 6 |
|---|
| 177 | n/a | F_SETLKW = 7 |
|---|
| 178 | n/a | F_CHKFL = 8 |
|---|
| 179 | n/a | F_ALLOCSP = 10 |
|---|
| 180 | n/a | F_FREESP = 11 |
|---|
| 181 | n/a | F_SETBSDLK = 12 |
|---|
| 182 | n/a | F_SETBSDLKW = 13 |
|---|
| 183 | n/a | F_DIOINFO = 30 |
|---|
| 184 | n/a | F_FSGETXATTR = 31 |
|---|
| 185 | n/a | F_FSSETXATTR = 32 |
|---|
| 186 | n/a | F_GETLK64 = 33 |
|---|
| 187 | n/a | F_SETLK64 = 34 |
|---|
| 188 | n/a | F_SETLKW64 = 35 |
|---|
| 189 | n/a | F_ALLOCSP64 = 36 |
|---|
| 190 | n/a | F_FREESP64 = 37 |
|---|
| 191 | n/a | F_GETBMAP = 38 |
|---|
| 192 | n/a | F_FSSETDM = 39 |
|---|
| 193 | n/a | F_RSETLK = 20 |
|---|
| 194 | n/a | F_RGETLK = 21 |
|---|
| 195 | n/a | F_RSETLKW = 22 |
|---|
| 196 | n/a | F_GETOWN = 23 |
|---|
| 197 | n/a | F_SETOWN = 24 |
|---|
| 198 | n/a | F_O_GETLK = 5 |
|---|
| 199 | n/a | F_O_GETOWN = 10 |
|---|
| 200 | n/a | F_O_SETOWN = 11 |
|---|
| 201 | n/a | F_RDLCK = 01 |
|---|
| 202 | n/a | F_WRLCK = 02 |
|---|
| 203 | n/a | F_UNLCK = 03 |
|---|
| 204 | n/a | O_ACCMODE = 3 |
|---|
| 205 | n/a | FD_CLOEXEC = 1 |
|---|
| 206 | n/a | FD_NODUP_FORK = 4 |
|---|
| 207 | n/a | FMASK = 0x90FF |
|---|
| 208 | n/a | FOPEN = 0xFFFFFFFF |
|---|
| 209 | n/a | FREAD = 0x01 |
|---|
| 210 | n/a | FWRITE = 0x02 |
|---|
| 211 | n/a | FNDELAY = 0x04 |
|---|
| 212 | n/a | FAPPEND = 0x08 |
|---|
| 213 | n/a | FSYNC = 0x10 |
|---|
| 214 | n/a | FNONBLOCK = 0x80 |
|---|
| 215 | n/a | FASYNC = 0x1000 |
|---|
| 216 | n/a | FNONBLK = FNONBLOCK |
|---|
| 217 | n/a | FDIRECT = 0x8000 |
|---|
| 218 | n/a | FCREAT = 0x0100 |
|---|
| 219 | n/a | FTRUNC = 0x0200 |
|---|
| 220 | n/a | FEXCL = 0x0400 |
|---|
| 221 | n/a | FNOCTTY = 0x0800 |
|---|
| 222 | n/a | IRIX4_FASYNC = 0x40 |
|---|
| 223 | n/a | FMARK = 0x4000 |
|---|
| 224 | n/a | FDEFER = 0x2000 |
|---|
| 225 | n/a | FINPROGRESS = 0x0400 |
|---|
| 226 | n/a | FINVIS = 0x0100 |
|---|
| 227 | n/a | FNMFS = 0x2000 |
|---|
| 228 | n/a | FCLOSEXEC = 001 |
|---|
| 229 | n/a | FDSHD = 0x0001 |
|---|
| 230 | n/a | FDNOMARK = 0x0002 |
|---|
| 231 | n/a | FDIGNPROGRESS = 0x0004 |
|---|
| 232 | n/a | LOCK_SH = 1 |
|---|
| 233 | n/a | LOCK_EX = 2 |
|---|
| 234 | n/a | LOCK_NB = 4 |
|---|
| 235 | n/a | LOCK_UN = 8 |
|---|
| 236 | n/a | F_OK = 0 |
|---|
| 237 | n/a | X_OK = 1 |
|---|
| 238 | n/a | W_OK = 2 |
|---|
| 239 | n/a | R_OK = 4 |
|---|
| 240 | n/a | L_SET = 0 |
|---|
| 241 | n/a | L_INCR = 1 |
|---|
| 242 | n/a | L_XTND = 2 |
|---|