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

  1. # Generated by h2py from /usr/include/sys/socket.h
  2.  
  3. # Included from sys/bsd_types.h
  4.  
  5. # Included from sys/mkdev.h
  6. ONBITSMAJOR = 7
  7. ONBITSMINOR = 8
  8. OMAXMAJ = 0x7f
  9. OMAXMIN = 0xff
  10. NBITSMAJOR = 14
  11. NBITSMINOR = 18
  12. MAXMAJ = 0x1ff
  13. MAXMIN = 0x3ffff
  14. OLDDEV = 0
  15. NEWDEV = 1
  16. MKDEV_VER = NEWDEV
  17. def major(dev): return __major(MKDEV_VER, dev)
  18.  
  19. def minor(dev): return __minor(MKDEV_VER, dev)
  20.  
  21.  
  22. # Included from sys/select.h
  23. FD_SETSIZE = 1024
  24. NBBY = 8
  25. SOCK_STREAM = 1
  26. SOCK_DGRAM = 2
  27. SOCK_RAW = 3
  28. SOCK_RDM = 4
  29. SOCK_SEQPACKET = 5
  30. NC_TPI_CLTS = 1
  31. NC_TPI_COTS = 2
  32. NC_TPI_COTS_ORD = 3
  33. NC_TPI_RAW = 4
  34. SOCK_DGRAM = NC_TPI_CLTS
  35. SOCK_STREAM = NC_TPI_COTS
  36. SOCK_RAW = NC_TPI_RAW
  37. SOCK_RDM = 5
  38. SOCK_SEQPACKET = 6
  39. IRIX4_SOCK_STREAM = 1
  40. IRIX4_SOCK_DGRAM = 2
  41. IRIX4_SOCK_RAW = 3
  42. IRIX4_SOCK_RDM = 4
  43. IRIX4_SOCK_SEQPACKET = 5
  44. SO_DEBUG = 0x0001
  45. SO_ACCEPTCONN = 0x0002
  46. SO_REUSEADDR = 0x0004
  47. SO_KEEPALIVE = 0x0008
  48. SO_DONTROUTE = 0x0010
  49. SO_BROADCAST = 0x0020
  50. SO_USELOOPBACK = 0x0040
  51. SO_LINGER = 0x0080
  52. SO_OOBINLINE = 0x0100
  53. SO_REUSEPORT = 0x0200
  54. SO_ORDREL = 0x0200
  55. SO_IMASOCKET = 0x0400
  56. SO_CHAMELEON = 0x1000
  57. SO_SNDBUF = 0x1001
  58. SO_RCVBUF = 0x1002
  59. SO_SNDLOWAT = 0x1003
  60. SO_RCVLOWAT = 0x1004
  61. SO_SNDTIMEO = 0x1005
  62. SO_RCVTIMEO = 0x1006
  63. SO_ERROR = 0x1007
  64. SO_TYPE = 0x1008
  65. SO_PROTOTYPE = 0x1009
  66. SOL_SOCKET = 0xffff
  67. AF_UNSPEC = 0
  68. AF_UNIX = 1
  69. AF_INET = 2
  70. AF_IMPLINK = 3
  71. AF_PUP = 4
  72. AF_CHAOS = 5
  73. AF_NS = 6
  74. AF_ISO = 7
  75. AF_ECMA = 8
  76. AF_DATAKIT = 9
  77. AF_CCITT = 10
  78. AF_SNA = 11
  79. AF_DECnet = 12
  80. AF_DLI = 13
  81. AF_LAT = 14
  82. AF_HYLINK = 15
  83. AF_APPLETALK = 16
  84. AF_ROUTE = 17
  85. AF_RAW = 18
  86. AF_LINK = 18
  87. pseudo_AF_XTP = 19
  88. AF_NIT = 17
  89. AF_802 = 18
  90. AF_OSI = 19
  91. AF_X25 = 20
  92. AF_OSINET = 21
  93. AF_GOSIP = 22
  94. AF_SDL = 23
  95. AF_MAX = (AF_SDL+1)
  96. def OPTLEN(x): return ((((x) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
  97.  
  98. PF_UNSPEC = AF_UNSPEC
  99. PF_UNIX = AF_UNIX
  100. PF_INET = AF_INET
  101. PF_IMPLINK = AF_IMPLINK
  102. PF_PUP = AF_PUP
  103. PF_CHAOS = AF_CHAOS
  104. PF_NS = AF_NS
  105. PF_ISO = AF_ISO
  106. PF_ECMA = AF_ECMA
  107. PF_DATAKIT = AF_DATAKIT
  108. PF_CCITT = AF_CCITT
  109. PF_SNA = AF_SNA
  110. PF_DECnet = AF_DECnet
  111. PF_DLI = AF_DLI
  112. PF_LAT = AF_LAT
  113. PF_HYLINK = AF_HYLINK
  114. PF_APPLETALK = AF_APPLETALK
  115. PF_ROUTE = AF_ROUTE
  116. PF_LINK = AF_LINK
  117. PF_XTP = pseudo_AF_XTP
  118. PF_RAW = AF_RAW
  119. PF_NIT = AF_NIT
  120. PF_802 = AF_802
  121. PF_OSI = AF_OSI
  122. PF_X25 = AF_X25
  123. PF_OSINET = AF_OSINET
  124. PF_GOSIP = AF_GOSIP
  125. PF_MAX = AF_MAX
  126. SOMAXCONN = 5
  127. MSG_OOB = 0x1
  128. MSG_PEEK = 0x2
  129. MSG_DONTROUTE = 0x4
  130. MSG_EOR = 0x8
  131. MSG_BTAG = 0x40
  132. MSG_ETAG = 0x80
  133. MSG_MAXIOVLEN = 16
  134.