home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / palmos / pippy-0.6beta-src.tar.gz / pippy-0.6beta-src.tar / pippy-0.6beta-src / src / Lib / plat-irix6 / FILE.py < prev    next >
Text File  |  2000-12-21  |  4KB  |  237 lines

  1. # Generated by h2py from /usr/include/sys/file.h
  2.  
  3. # Included from standards.h
  4.  
  5. # Included from sys/types.h
  6.  
  7. # Included from sgidefs.h
  8. _MIPS_ISA_MIPS1 = 1
  9. _MIPS_ISA_MIPS2 = 2
  10. _MIPS_ISA_MIPS3 = 3
  11. _MIPS_ISA_MIPS4 = 4
  12. _MIPS_SIM_ABI32 = 1
  13. _MIPS_SIM_NABI32 = 2
  14. _MIPS_SIM_ABI64 = 3
  15. P_MYID = (-1)
  16. P_MYHOSTID = (-1)
  17.  
  18. # Included from sys/bsd_types.h
  19.  
  20. # Included from sys/mkdev.h
  21. ONBITSMAJOR = 7
  22. ONBITSMINOR = 8
  23. OMAXMAJ = 0x7f
  24. OMAXMIN = 0xff
  25. NBITSMAJOR = 14
  26. NBITSMINOR = 18
  27. MAXMAJ = 0x1ff
  28. MAXMIN = 0x3ffff
  29. OLDDEV = 0
  30. NEWDEV = 1
  31. MKDEV_VER = NEWDEV
  32. def major(dev): return __major(MKDEV_VER, dev)
  33.  
  34. def minor(dev): return __minor(MKDEV_VER, dev)
  35.  
  36.  
  37. # Included from sys/select.h
  38. FD_SETSIZE = 1024
  39. __NBBY = 8
  40.  
  41. # Included from string.h
  42. NULL = 0L
  43. NBBY = 8
  44.  
  45. # Included from sys/sema.h
  46. MUTEX_DEFAULT = 0x0
  47. METER_NAMSZ = 8
  48. def mutex_spinlock(l): return splhi()
  49.  
  50. def mutex_spintrylock(l): return splhi()
  51.  
  52. def spinlock_islocked(l): return issplhi(getsr())
  53.  
  54. def spinlock_initialized(l): return 1
  55.  
  56. SV_FIFO = 0x0
  57. SV_LIFO = 0x2
  58. SV_PRIO = 0x4
  59. SV_DEFAULT = SV_FIFO
  60. SEMA_NOHIST = 0x0001
  61. SEMA_LOCK = 0x0004
  62. SEMA_METER = 0x0008
  63. SEMA_NAMSZ = METER_NAMSZ
  64. MR_ACCESS = 0x1
  65. MR_UPDATE = 0x2
  66. def mp_mutex_unlock(m): return mutex_unlock(m)
  67.  
  68. def mp_mutex_trylock(m): return mutex_trylock(m)
  69.  
  70. def mp_mutex_spinlock(m): return mutex_spinlock(m)
  71.  
  72. def mp_mutex_trylock(m): return 1
  73.  
  74. def mp_mutex_spinlock(m): return 1
  75.  
  76. def nested_spintrylock(m): return 1
  77.  
  78. def mp_mrunlock(a): return mrunlock(a)
  79.  
  80. def mp_cpsema(x): return cpsema(x)
  81.  
  82. def mp_cvsema(x): return cvsema(x)
  83.  
  84. def mp_cpsema(x): return 1
  85.  
  86. def mp_cvsema(x): return 0
  87.  
  88. MON_LOCKED = 0x01
  89. MON_WAITING = 0x02
  90. MON_TIMEOUT = 0x04
  91. def initlock(l): return spinlock_init(l,0)
  92.  
  93. def ownlock(x): return 1
  94.  
  95. def splock(x): return 1
  96.  
  97. def io_splock(x): return 1
  98.  
  99. def mutex_enter(m): return mutex_lock(m, PZERO)
  100.  
  101. def mutex_tryenter(m): return mutex_trylock(m)
  102.  
  103. def mutex_exit(m): return mutex_unlock(m)
  104.  
  105. def cv_signal(cv): return sv_signal(cv)
  106.  
  107. def cv_broadcast(cv): return sv_broadcast(cv)
  108.  
  109. def cv_destroy(cv): return sv_destroy(cv)
  110.  
  111. RW_READER = MR_ACCESS
  112. RW_WRITER = MR_UPDATE
  113. def rw_exit(r): return mrunlock(r)
  114.  
  115. def rw_tryupgrade(r): return cmrpromote(r)
  116.  
  117. def rw_downgrade(r): return mrdemote(r)
  118.  
  119. def rw_destroy(r): return mrfree(r)
  120.  
  121. def RW_WRITE_HELD(r): return ismrlocked(r, MR_UPDATE)
  122.  
  123. def RW_READ_HELD(r): return ismrlocked(r, MR_ACCESS)
  124.  
  125.  
  126. # Included from sys/fcntl.h
  127. FNDELAY = 0x04
  128. FAPPEND = 0x08
  129. FSYNC = 0x10
  130. FDSYNC = 0x20
  131. FRSYNC = 0x40
  132. FNONBLOCK = 0x80
  133. FASYNC = 0x1000
  134. FLARGEFILE = 0x2000
  135. FNONBLK = FNONBLOCK
  136. FDIRECT = 0x8000
  137. FDIRENT64 = 0x8000
  138. FCREAT = 0x0100
  139. FTRUNC = 0x0200
  140. FEXCL = 0x0400
  141. FNOCTTY = 0x0800
  142. O_RDONLY = 0
  143. O_WRONLY = 1
  144. O_RDWR = 2
  145. O_NDELAY = 0x04
  146. O_APPEND = 0x08
  147. O_SYNC = 0x10
  148. O_DSYNC = 0x20
  149. O_RSYNC = 0x40
  150. O_NONBLOCK = 0x80
  151. O_LARGEFILE = 0x2000
  152. O_DIRECT = 0x8000
  153. O_CREAT = 0x100
  154. O_TRUNC = 0x200
  155. O_EXCL = 0x400
  156. O_NOCTTY = 0x800
  157. F_DUPFD = 0
  158. F_GETFD = 1
  159. F_SETFD = 2
  160. F_GETFL = 3
  161. F_SETFL = 4
  162. F_GETLK = 14
  163. F_SETLK = 6
  164. F_SETLKW = 7
  165. F_CHKFL = 8
  166. F_ALLOCSP = 10
  167. F_FREESP = 11
  168. F_SETBSDLK = 12
  169. F_SETBSDLKW = 13
  170. F_DIOINFO = 30
  171. F_FSGETXATTR = 31
  172. F_FSSETXATTR = 32
  173. F_GETLK64 = 33
  174. F_SETLK64 = 34
  175. F_SETLKW64 = 35
  176. F_ALLOCSP64 = 36
  177. F_FREESP64 = 37
  178. F_GETBMAP = 38
  179. F_FSSETDM = 39
  180. F_RESVSP = 40
  181. F_UNRESVSP = 41
  182. F_RESVSP64 = 42
  183. F_UNRESVSP64 = 43
  184. F_GETBMAPA = 44
  185. F_FSGETXATTRA = 45
  186. F_GETALLLK = 46
  187. F_RSETLK = 20
  188. F_RGETLK = 21
  189. F_RSETLKW = 22
  190. F_GETOWN = 23
  191. F_SETOWN = 24
  192. F_RDLCK = 01
  193. F_WRLCK = 02
  194. F_UNLCK = 03
  195. O_ACCMODE = 3
  196. FD_CLOEXEC = 1
  197. FD_NODUP_FORK = 4
  198. FMASK = 0x90FF
  199. FOPEN = 0xFFFFFFFF
  200. FREAD = 0x01
  201. FWRITE = 0x02
  202. FNDELAY = 0x04
  203. FAPPEND = 0x08
  204. FSYNC = 0x10
  205. FDSYNC = 0x20
  206. FRSYNC = 0x40
  207. FNONBLOCK = 0x80
  208. FASYNC = 0x1000
  209. FNONBLK = FNONBLOCK
  210. FLARGEFILE = 0x2000
  211. FDIRECT = 0x8000
  212. FCREAT = 0x0100
  213. FTRUNC = 0x0200
  214. FEXCL = 0x0400
  215. FNOCTTY = 0x0800
  216. FMARK = 0x4000
  217. FDEFER = 0x2000
  218. FINPROGRESS = 0x0400
  219. FINVIS = 0x0100
  220. FNMFS = 0x2000
  221. FDIRENT64 = 0x8000
  222. FCLOSEXEC = 001
  223. FDSHD = 0x0001
  224. FDNOMARK = 0x0002
  225. FDIGNPROGRESS = 0x0004
  226. LOCK_SH = 1
  227. LOCK_EX = 2
  228. LOCK_NB = 4
  229. LOCK_UN = 8
  230. F_OK = 0
  231. X_OK = 1
  232. W_OK = 2
  233. R_OK = 4
  234. L_SET = 0
  235. L_INCR = 1
  236. L_XTND = 2
  237.