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-irix5 / FCNTL.py < prev    next >
Text File  |  2000-12-21  |  2KB  |  98 lines

  1. # Generated by h2py from /usr/include/sys/fcntl.h
  2.  
  3. # Included from sys/types.h
  4.  
  5. # Included from sgidefs.h
  6. _MIPS_ISA_MIPS1 = 1
  7. _MIPS_ISA_MIPS2 = 2
  8. _MIPS_ISA_MIPS3 = 3
  9. _MIPS_ISA_MIPS4 = 4
  10. _MIPS_SIM_ABI32 = 1
  11. _MIPS_SIM_NABI32 = 2
  12. _MIPS_SIM_ABI64 = 3
  13. P_MYID = (-1)
  14. P_MYHOSTID = (-1)
  15.  
  16. # Included from sys/bsd_types.h
  17.  
  18. # Included from sys/mkdev.h
  19. ONBITSMAJOR = 7
  20. ONBITSMINOR = 8
  21. OMAXMAJ = 0x7f
  22. OMAXMIN = 0xff
  23. NBITSMAJOR = 14
  24. NBITSMINOR = 18
  25. MAXMAJ = 0x1ff
  26. MAXMIN = 0x3ffff
  27. OLDDEV = 0
  28. NEWDEV = 1
  29. MKDEV_VER = NEWDEV
  30. def major(dev): return __major(MKDEV_VER, dev)
  31.  
  32. def minor(dev): return __minor(MKDEV_VER, dev)
  33.  
  34.  
  35. # Included from sys/select.h
  36. FD_SETSIZE = 1024
  37. NBBY = 8
  38. FNDELAY = 0x04
  39. FAPPEND = 0x08
  40. FSYNC = 0x10
  41. FNONBLOCK = 0x80
  42. FASYNC = 0x1000
  43. FNONBLK = FNONBLOCK
  44. FDIRECT = 0x8000
  45. FCREAT = 0x0100
  46. FTRUNC = 0x0200
  47. FEXCL = 0x0400
  48. FNOCTTY = 0x0800
  49. O_RDONLY = 0
  50. O_WRONLY = 1
  51. O_RDWR = 2
  52. O_NDELAY = 0x04
  53. O_APPEND = 0x08
  54. O_SYNC = 0x10
  55. O_NONBLOCK = 0x80
  56. O_DIRECT = 0x8000
  57. O_CREAT = 0x100
  58. O_TRUNC = 0x200
  59. O_EXCL = 0x400
  60. O_NOCTTY = 0x800
  61. F_DUPFD = 0
  62. F_GETFD = 1
  63. F_SETFD = 2
  64. F_GETFL = 3
  65. F_SETFL = 4
  66. F_GETLK = 14
  67. F_SETLK = 6
  68. F_SETLKW = 7
  69. F_CHKFL = 8
  70. F_ALLOCSP = 10
  71. F_FREESP = 11
  72. F_SETBSDLK = 12
  73. F_SETBSDLKW = 13
  74. F_DIOINFO = 30
  75. F_FSGETXATTR = 31
  76. F_FSSETXATTR = 32
  77. F_GETLK64 = 33
  78. F_SETLK64 = 34
  79. F_SETLKW64 = 35
  80. F_ALLOCSP64 = 36
  81. F_FREESP64 = 37
  82. F_GETBMAP = 38
  83. F_FSSETDM = 39
  84. F_RSETLK = 20
  85. F_RGETLK = 21
  86. F_RSETLKW = 22
  87. F_GETOWN = 23
  88. F_SETOWN = 24
  89. F_O_GETLK = 5
  90. F_O_GETOWN = 10
  91. F_O_SETOWN = 11
  92. F_RDLCK = 01
  93. F_WRLCK = 02
  94. F_UNLCK = 03
  95. O_ACCMODE = 3
  96. FD_CLOEXEC = 1
  97. FD_NODUP_FORK = 4
  98.