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

  1. # Generated by h2py from /usr/include/sys/socket.h
  2. SOCK_STREAM = 1
  3. SOCK_DGRAM = 2
  4. SOCK_RAW = 3
  5. SOCK_RDM = 4
  6. SOCK_SEQPACKET = 5
  7. SO_DEBUG = 0x0001
  8. SO_ACCEPTCONN = 0x0002
  9. SO_REUSEADDR = 0x0004
  10. SO_KEEPALIVE = 0x0008
  11. SO_DONTROUTE = 0x0010
  12. SO_BROADCAST = 0x0020
  13. SO_USELOOPBACK = 0x0040
  14. SO_LINGER = 0x0080
  15. SO_OOBINLINE = 0x0100
  16. SO_REUSEPORT = 0x0200
  17. SO_TIMESTAMP = 0x0400
  18. SO_SNDBUF = 0x1001
  19. SO_RCVBUF = 0x1002
  20. SO_SNDLOWAT = 0x1003
  21. SO_RCVLOWAT = 0x1004
  22. SO_SNDTIMEO = 0x1005
  23. SO_RCVTIMEO = 0x1006
  24. SO_ERROR = 0x1007
  25. SO_TYPE = 0x1008
  26. SOL_SOCKET = 0xffff
  27. AF_UNSPEC = 0
  28. AF_LOCAL = 1
  29. AF_UNIX = AF_LOCAL
  30. AF_INET = 2
  31. AF_IMPLINK = 3
  32. AF_PUP = 4
  33. AF_CHAOS = 5
  34. AF_NS = 6
  35. AF_ISO = 7
  36. AF_OSI = AF_ISO
  37. AF_ECMA = 8
  38. AF_DATAKIT = 9
  39. AF_CCITT = 10
  40. AF_SNA = 11
  41. AF_DECnet = 12
  42. AF_DLI = 13
  43. AF_LAT = 14
  44. AF_HYLINK = 15
  45. AF_APPLETALK = 16
  46. AF_ROUTE = 17
  47. AF_LINK = 18
  48. pseudo_AF_XTP = 19
  49. AF_COIP = 20
  50. AF_CNT = 21
  51. pseudo_AF_RTIP = 22
  52. AF_IPX = 23
  53. AF_SIP = 24
  54. pseudo_AF_PIP = 25
  55. AF_ISDN = 26
  56. AF_E164 = AF_ISDN
  57. AF_NATM = 27
  58. AF_ARP = 28
  59. AF_MAX = 29
  60. PF_UNSPEC = AF_UNSPEC
  61. PF_LOCAL = AF_LOCAL
  62. PF_UNIX = PF_LOCAL
  63. PF_INET = AF_INET
  64. PF_IMPLINK = AF_IMPLINK
  65. PF_PUP = AF_PUP
  66. PF_CHAOS = AF_CHAOS
  67. PF_NS = AF_NS
  68. PF_ISO = AF_ISO
  69. PF_OSI = AF_ISO
  70. PF_ECMA = AF_ECMA
  71. PF_DATAKIT = AF_DATAKIT
  72. PF_CCITT = AF_CCITT
  73. PF_SNA = AF_SNA
  74. PF_DECnet = AF_DECnet
  75. PF_DLI = AF_DLI
  76. PF_LAT = AF_LAT
  77. PF_HYLINK = AF_HYLINK
  78. PF_APPLETALK = AF_APPLETALK
  79. PF_ROUTE = AF_ROUTE
  80. PF_LINK = AF_LINK
  81. PF_XTP = pseudo_AF_XTP
  82. PF_COIP = AF_COIP
  83. PF_CNT = AF_CNT
  84. PF_SIP = AF_SIP
  85. PF_IPX = AF_IPX
  86. PF_PIP = pseudo_AF_PIP
  87. PF_NATM = AF_NATM
  88. PF_ARP = AF_ARP
  89. PF_MAX = AF_MAX
  90. NET_MAXID = AF_MAX
  91. NET_RT_DUMP = 1
  92. NET_RT_FLAGS = 2
  93. NET_RT_IFLIST = 3
  94. NET_RT_MAXID = 4
  95. SOMAXCONN = 128
  96. MSG_OOB = 0x1
  97. MSG_PEEK = 0x2
  98. MSG_DONTROUTE = 0x4
  99. MSG_EOR = 0x8
  100. MSG_TRUNC = 0x10
  101. MSG_CTRUNC = 0x20
  102. MSG_WAITALL = 0x40
  103. MSG_DONTWAIT = 0x80
  104. SCM_RIGHTS = 0x01
  105. SCM_TIMESTAMP = 0x02
  106.  
  107. # Included from sys/cdefs.h
  108.  
  109. # Included from machine/cdefs.h
  110. def __P(protos): return protos         
  111.  
  112. def __STRING(x): return #x
  113.  
  114. def __P(protos): return ()         
  115.  
  116. def __STRING(x): return "x"
  117.  
  118. def __attribute__(x): return  
  119.  
  120. def __kprintf_attribute__(a): return __attribute__(a)
  121.  
  122. MSG_COMPAT = 0x8000
  123.