summaryrefslogtreecommitdiffstats
path: root/Lib/plat-sunos5/SOCKET.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-13 17:45:56 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-13 17:45:56 (GMT)
commit725a67e5c20c5a93d50728a8a07ef1757d356d79 (patch)
treea7a3252a420c7ff4cc73dfca9d94ac8983e18c6c /Lib/plat-sunos5/SOCKET.py
parentf0ee9379000a5c6fd46aba6e9122d271a8c903b6 (diff)
downloadcpython-725a67e5c20c5a93d50728a8a07ef1757d356d79.zip
cpython-725a67e5c20c5a93d50728a8a07ef1757d356d79.tar.gz
cpython-725a67e5c20c5a93d50728a8a07ef1757d356d79.tar.bz2
Regenerated on newer Solaris version
Diffstat (limited to 'Lib/plat-sunos5/SOCKET.py')
-rwxr-xr-xLib/plat-sunos5/SOCKET.py44
1 files changed, 43 insertions, 1 deletions
diff --git a/Lib/plat-sunos5/SOCKET.py b/Lib/plat-sunos5/SOCKET.py
index 3ac2740..25c10f3 100755
--- a/Lib/plat-sunos5/SOCKET.py
+++ b/Lib/plat-sunos5/SOCKET.py
@@ -1,4 +1,42 @@
# Generated by h2py from /usr/include/sys/socket.h
+
+# Included from sys/netconfig.h
+NETCONFIG = "/etc/netconfig"
+NETPATH = "NETPATH"
+NC_TPI_CLTS = 1
+NC_TPI_COTS = 2
+NC_TPI_COTS_ORD = 3
+NC_TPI_RAW = 4
+NC_NOFLAG = 00
+NC_VISIBLE = 01
+NC_BROADCAST = 02
+NC_NOPROTOFMLY = "-"
+NC_LOOPBACK = "loopback"
+NC_INET = "inet"
+NC_IMPLINK = "implink"
+NC_PUP = "pup"
+NC_CHAOS = "chaos"
+NC_NS = "ns"
+NC_NBS = "nbs"
+NC_ECMA = "ecma"
+NC_DATAKIT = "datakit"
+NC_CCITT = "ccitt"
+NC_SNA = "sna"
+NC_DECNET = "decnet"
+NC_DLI = "dli"
+NC_LAT = "lat"
+NC_HYLINK = "hylink"
+NC_APPLETALK = "appletalk"
+NC_NIT = "nit"
+NC_IEEE802 = "ieee802"
+NC_OSI = "osi"
+NC_X25 = "x25"
+NC_OSINET = "osinet"
+NC_GOSIP = "gosip"
+NC_NOPROTO = "-"
+NC_TCP = "tcp"
+NC_UDP = "udp"
+NC_ICMP = "icmp"
NC_TPI_CLTS = 1
NC_TPI_COTS = 2
NC_TPI_COTS_ORD = 3
@@ -51,7 +89,8 @@ AF_OSI = 19
AF_X25 = 20
AF_OSINET = 21
AF_GOSIP = 22
-AF_MAX = 22
+AF_IPX = 23
+AF_MAX = 23
PF_UNSPEC = AF_UNSPEC
PF_UNIX = AF_UNIX
PF_INET = AF_INET
@@ -75,12 +114,15 @@ PF_OSI = AF_OSI
PF_X25 = AF_X25
PF_OSINET = AF_OSINET
PF_GOSIP = AF_GOSIP
+PF_IPX = AF_IPX
PF_MAX = AF_MAX
SOMAXCONN = 5
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_DONTROUTE = 0x4
MSG_MAXIOVLEN = 16
+def OPTLEN(x): return ((((x) + sizeof (long) - 1) / sizeof (long)) * sizeof (long))
+
SOCKETSYS = 88
SOCKETSYS = 83
SO_ACCEPT = 1