summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-02-02 02:51:21 (GMT)
committerFred Drake <fdrake@acm.org>2001-02-02 02:51:21 (GMT)
commit0c07b5081164555ffe5393bff51f0638aeb7da34 (patch)
tree7909de5486db4e88f9f9c8da60fabdbeeb5c0dc1
parent57d943ad3801fbc71756c4f555e4bc65c883a2e1 (diff)
downloadcpython-0c07b5081164555ffe5393bff51f0638aeb7da34.zip
cpython-0c07b5081164555ffe5393bff51f0638aeb7da34.tar.gz
cpython-0c07b5081164555ffe5393bff51f0638aeb7da34.tar.bz2
The socket constants have been moved to the socket module for a long time;
the standard library does not use the SOCKET module any more, and it is not defined for all platforms (Windows, in particular).
-rw-r--r--Lib/plat-aix3/SOCKET.py86
-rw-r--r--Lib/plat-aix4/SOCKET.py93
-rw-r--r--Lib/plat-beos5/SOCKET.py325
-rw-r--r--Lib/plat-freebsd2/SOCKET.py128
-rw-r--r--Lib/plat-freebsd3/SOCKET.py132
-rw-r--r--Lib/plat-freebsd4/SOCKET.py142
-rw-r--r--Lib/plat-freebsd5/SOCKET.py142
-rwxr-xr-xLib/plat-irix5/SOCKET.py133
-rw-r--r--Lib/plat-irix6/SOCKET.py152
-rwxr-xr-xLib/plat-linux1/SOCKET.py183
-rw-r--r--Lib/plat-linux2/SOCKET.py199
-rw-r--r--Lib/plat-netbsd1/SOCKET.py122
-rwxr-xr-xLib/plat-sunos4/SOCKET.py78
-rwxr-xr-xLib/plat-sunos5/SOCKET.py145
14 files changed, 0 insertions, 2060 deletions
diff --git a/Lib/plat-aix3/SOCKET.py b/Lib/plat-aix3/SOCKET.py
deleted file mode 100644
index 5e52914..0000000
--- a/Lib/plat-aix3/SOCKET.py
+++ /dev/null
@@ -1,86 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_INTF = 20
-AF_RIF = 21
-PF_INTF = AF_INTF
-AF_NETWARE = 22
-AF_NDD = 23
-AF_MAX = 30
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_INTF = AF_INTF
-PF_RIF = AF_RIF
-PF_NDD = AF_NDD
-PF_MAX = AF_MAX
-SOMAXCONN = 10
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-SCM_RIGHTS = 0x01
-MSG_MAXIOVLEN = 16
diff --git a/Lib/plat-aix4/SOCKET.py b/Lib/plat-aix4/SOCKET.py
deleted file mode 100644
index 5f7ee3e..0000000
--- a/Lib/plat-aix4/SOCKET.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_CKSUMRECV = 0x0800
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_INTF = 20
-AF_RIF = 21
-AF_NETWARE = 22
-AF_NDD = 23
-AF_MAX = 30
-AF_MAX = 20
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_INTF = AF_INTF
-PF_RIF = AF_RIF
-PF_INTF = AF_INTF
-PF_NDD = AF_NDD
-PF_MAX = AF_MAX
-SOMAXCONN = 10
-SOMAXCONN = 5
-MSG_MAXIOVLEN = 16
-UIO_MAXIOV = 1024
-UIO_SMALLIOV = 8
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_NONBLOCK = 0x4000
-MSG_COMPAT = 0x8000
-SCM_RIGHTS = 0x01
diff --git a/Lib/plat-beos5/SOCKET.py b/Lib/plat-beos5/SOCKET.py
deleted file mode 100644
index 90fc582..0000000
--- a/Lib/plat-beos5/SOCKET.py
+++ /dev/null
@@ -1,325 +0,0 @@
-# Generated by h2py from /boot/develop/headers/be/net/socket.h
-
-# Included from BeBuild.h
-B_BEOS_VERSION_4 = 0x0400
-B_BEOS_VERSION_4_5 = 0x0450
-B_BEOS_VERSION_5 = 0x0500
-B_BEOS_VERSION = B_BEOS_VERSION_5
-B_BEOS_VERSION_MAUI = B_BEOS_VERSION_5
-_PR2_COMPATIBLE_ = 1
-_PR3_COMPATIBLE_ = 1
-_R4_COMPATIBLE_ = 1
-_R4_5_COMPATIBLE_ = 1
-_PR2_COMPATIBLE_ = 0
-_PR3_COMPATIBLE_ = 0
-_R4_COMPATIBLE_ = 1
-_R4_5_COMPATIBLE_ = 1
-def _UNUSED(x): return x
-
-
-# Included from sys/types.h
-
-# Included from time.h
-
-# Included from be_setup.h
-def __std(ref): return ref
-
-__be_os = 2
-__dest_os = __be_os
-__MSL__ = 0x4011
-__GLIBC__ = -2
-__GLIBC_MINOR__ = 1
-
-# Included from null.h
-NULL = (0)
-NULL = 0L
-
-# Included from size_t.h
-
-# Included from stddef.h
-
-# Included from wchar_t.h
-CLOCKS_PER_SEC = 1000
-CLK_TCK = CLOCKS_PER_SEC
-MAX_TIMESTR = 70
-
-# Included from sys/time.h
-
-# Included from ByteOrder.h
-
-# Included from endian.h
-__LITTLE_ENDIAN = 1234
-LITTLE_ENDIAN = __LITTLE_ENDIAN
-__BYTE_ORDER = __LITTLE_ENDIAN
-BYTE_ORDER = __BYTE_ORDER
-__BIG_ENDIAN = 0
-BIG_ENDIAN = 0
-__BIG_ENDIAN = 4321
-BIG_ENDIAN = __BIG_ENDIAN
-__BYTE_ORDER = __BIG_ENDIAN
-BYTE_ORDER = __BYTE_ORDER
-__LITTLE_ENDIAN = 0
-LITTLE_ENDIAN = 0
-__PDP_ENDIAN = 3412
-PDP_ENDIAN = __PDP_ENDIAN
-
-# Included from SupportDefs.h
-
-# Included from Errors.h
-
-# Included from limits.h
-
-# Included from float.h
-FLT_ROUNDS = 1
-FLT_RADIX = 2
-FLT_MANT_DIG = 24
-FLT_DIG = 6
-FLT_MIN_EXP = (-125)
-FLT_MIN_10_EXP = (-37)
-FLT_MAX_EXP = 128
-FLT_MAX_10_EXP = 38
-DBL_MANT_DIG = 53
-DBL_DIG = 15
-DBL_MIN_EXP = (-1021)
-DBL_MIN_10_EXP = (-308)
-DBL_MAX_EXP = 1024
-DBL_MAX_10_EXP = 308
-LDBL_MANT_DIG = DBL_MANT_DIG
-LDBL_DIG = DBL_DIG
-LDBL_MIN_EXP = DBL_MIN_EXP
-LDBL_MIN_10_EXP = DBL_MIN_10_EXP
-LDBL_MAX_EXP = DBL_MAX_EXP
-LDBL_MAX_10_EXP = DBL_MAX_10_EXP
-CHAR_BIT = (8)
-SCHAR_MIN = (-127-1)
-SCHAR_MAX = (127)
-CHAR_MIN = SCHAR_MIN
-CHAR_MAX = SCHAR_MAX
-MB_LEN_MAX = (1)
-SHRT_MIN = (-32767-1)
-SHRT_MAX = (32767)
-LONG_MIN = (-2147483647L-1)
-LONG_MAX = (2147483647L)
-INT_MIN = LONG_MIN
-INT_MAX = LONG_MAX
-ARG_MAX = (32768)
-ATEXIT_MAX = (32)
-CHILD_MAX = (1024)
-IOV_MAX = (256)
-FILESIZEBITS = (64)
-LINK_MAX = (1)
-LOGIN_NAME_MAX = (32)
-MAX_CANON = (255)
-MAX_INPUT = (255)
-NAME_MAX = (256)
-NGROUPS_MAX = (32)
-OPEN_MAX = (128)
-PATH_MAX = (1024)
-PIPE_MAX = (512)
-SSIZE_MAX = (2147483647L)
-TTY_NAME_MAX = (256)
-TZNAME_MAX = (32)
-SYMLINKS_MAX = (16)
-_POSIX_ARG_MAX = (32768)
-_POSIX_CHILD_MAX = (1024)
-_POSIX_LINK_MAX = (1)
-_POSIX_LOGIN_NAME_MAX = (9)
-_POSIX_MAX_CANON = (255)
-_POSIX_MAX_INPUT = (255)
-_POSIX_NAME_MAX = (255)
-_POSIX_NGROUPS_MAX = (0)
-_POSIX_OPEN_MAX = (128)
-_POSIX_PATH_MAX = (1024)
-_POSIX_PIPE_BUF = (512)
-_POSIX_SSIZE_MAX = (2147483647L)
-_POSIX_STREAM_MAX = (8)
-_POSIX_TTY_NAME_MAX = (256)
-_POSIX_TZNAME_MAX = (3)
-B_GENERAL_ERROR_BASE = LONG_MIN
-B_OS_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x1000
-B_APP_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x2000
-B_INTERFACE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x3000
-B_MEDIA_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4000
-B_TRANSLATION_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4800
-B_MIDI_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x5000
-B_STORAGE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x6000
-B_POSIX_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x7000
-B_MAIL_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x8000
-B_PRINT_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x9000
-B_DEVICE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0xa000
-B_ERRORS_END = (B_GENERAL_ERROR_BASE + 0xffff)
-E2BIG = (B_POSIX_ERROR_BASE + 1)
-ECHILD = (B_POSIX_ERROR_BASE + 2)
-EDEADLK = (B_POSIX_ERROR_BASE + 3)
-EFBIG = (B_POSIX_ERROR_BASE + 4)
-EMLINK = (B_POSIX_ERROR_BASE + 5)
-ENFILE = (B_POSIX_ERROR_BASE + 6)
-ENODEV = (B_POSIX_ERROR_BASE + 7)
-ENOLCK = (B_POSIX_ERROR_BASE + 8)
-ENOSYS = (B_POSIX_ERROR_BASE + 9)
-ENOTTY = (B_POSIX_ERROR_BASE + 10)
-ENXIO = (B_POSIX_ERROR_BASE + 11)
-ESPIPE = (B_POSIX_ERROR_BASE + 12)
-ESRCH = (B_POSIX_ERROR_BASE + 13)
-EFPOS = (B_POSIX_ERROR_BASE + 14)
-ESIGPARM = (B_POSIX_ERROR_BASE + 15)
-EDOM = (B_POSIX_ERROR_BASE + 16)
-ERANGE = (B_POSIX_ERROR_BASE + 17)
-EPROTOTYPE = (B_POSIX_ERROR_BASE + 18)
-EPROTONOSUPPORT = (B_POSIX_ERROR_BASE + 19)
-EPFNOSUPPORT = (B_POSIX_ERROR_BASE + 20)
-EAFNOSUPPORT = (B_POSIX_ERROR_BASE + 21)
-EADDRINUSE = (B_POSIX_ERROR_BASE + 22)
-EADDRNOTAVAIL = (B_POSIX_ERROR_BASE + 23)
-ENETDOWN = (B_POSIX_ERROR_BASE + 24)
-ENETUNREACH = (B_POSIX_ERROR_BASE + 25)
-ENETRESET = (B_POSIX_ERROR_BASE + 26)
-ECONNABORTED = (B_POSIX_ERROR_BASE + 27)
-ECONNRESET = (B_POSIX_ERROR_BASE + 28)
-EISCONN = (B_POSIX_ERROR_BASE + 29)
-ENOTCONN = (B_POSIX_ERROR_BASE + 30)
-ESHUTDOWN = (B_POSIX_ERROR_BASE + 31)
-ECONNREFUSED = (B_POSIX_ERROR_BASE + 32)
-EHOSTUNREACH = (B_POSIX_ERROR_BASE + 33)
-ENOPROTOOPT = (B_POSIX_ERROR_BASE + 34)
-ENOBUFS = (B_POSIX_ERROR_BASE + 35)
-EINPROGRESS = (B_POSIX_ERROR_BASE + 36)
-EALREADY = (B_POSIX_ERROR_BASE + 37)
-EILSEQ = (B_POSIX_ERROR_BASE + 38)
-ENOMSG = (B_POSIX_ERROR_BASE + 39)
-ESTALE = (B_POSIX_ERROR_BASE + 40)
-EOVERFLOW = (B_POSIX_ERROR_BASE + 41)
-EMSGSIZE = (B_POSIX_ERROR_BASE + 42)
-EOPNOTSUPP = (B_POSIX_ERROR_BASE + 43)
-ENOTSOCK = (B_POSIX_ERROR_BASE + 44)
-false = 0
-true = 1
-NULL = (0)
-FALSE = 0
-TRUE = 1
-
-# Included from TypeConstants.h
-B_HOST_IS_LENDIAN = 1
-B_HOST_IS_BENDIAN = 0
-def B_HOST_TO_LENDIAN_DOUBLE(arg): return (double)(arg)
-
-def B_HOST_TO_LENDIAN_FLOAT(arg): return (float)(arg)
-
-def B_HOST_TO_LENDIAN_INT64(arg): return (uint64)(arg)
-
-def B_HOST_TO_LENDIAN_INT32(arg): return (uint32)(arg)
-
-def B_HOST_TO_LENDIAN_INT16(arg): return (uint16)(arg)
-
-def B_HOST_TO_BENDIAN_DOUBLE(arg): return __swap_double(arg)
-
-def B_HOST_TO_BENDIAN_FLOAT(arg): return __swap_float(arg)
-
-def B_HOST_TO_BENDIAN_INT64(arg): return __swap_int64(arg)
-
-def B_HOST_TO_BENDIAN_INT32(arg): return __swap_int32(arg)
-
-def B_HOST_TO_BENDIAN_INT16(arg): return __swap_int16(arg)
-
-def B_LENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg)
-
-def B_LENDIAN_TO_HOST_FLOAT(arg): return (float)(arg)
-
-def B_LENDIAN_TO_HOST_INT64(arg): return (uint64)(arg)
-
-def B_LENDIAN_TO_HOST_INT32(arg): return (uint32)(arg)
-
-def B_LENDIAN_TO_HOST_INT16(arg): return (uint16)(arg)
-
-def B_BENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg)
-
-def B_BENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg)
-
-def B_BENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg)
-
-def B_BENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg)
-
-def B_BENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg)
-
-B_HOST_IS_LENDIAN = 0
-B_HOST_IS_BENDIAN = 1
-def B_HOST_TO_LENDIAN_DOUBLE(arg): return __swap_double(arg)
-
-def B_HOST_TO_LENDIAN_FLOAT(arg): return __swap_float(arg)
-
-def B_HOST_TO_LENDIAN_INT64(arg): return __swap_int64(arg)
-
-def B_HOST_TO_LENDIAN_INT32(arg): return __swap_int32(arg)
-
-def B_HOST_TO_LENDIAN_INT16(arg): return __swap_int16(arg)
-
-def B_HOST_TO_BENDIAN_DOUBLE(arg): return (double)(arg)
-
-def B_HOST_TO_BENDIAN_FLOAT(arg): return (float)(arg)
-
-def B_HOST_TO_BENDIAN_INT64(arg): return (uint64)(arg)
-
-def B_HOST_TO_BENDIAN_INT32(arg): return (uint32)(arg)
-
-def B_HOST_TO_BENDIAN_INT16(arg): return (uint16)(arg)
-
-def B_LENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg)
-
-def B_LENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg)
-
-def B_LENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg)
-
-def B_LENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg)
-
-def B_LENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg)
-
-def B_BENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg)
-
-def B_BENDIAN_TO_HOST_FLOAT(arg): return (float)(arg)
-
-def B_BENDIAN_TO_HOST_INT64(arg): return (uint64)(arg)
-
-def B_BENDIAN_TO_HOST_INT32(arg): return (uint32)(arg)
-
-def B_BENDIAN_TO_HOST_INT16(arg): return (uint16)(arg)
-
-def B_SWAP_DOUBLE(arg): return __swap_double(arg)
-
-def B_SWAP_FLOAT(arg): return __swap_float(arg)
-
-def B_SWAP_INT64(arg): return __swap_int64(arg)
-
-def B_SWAP_INT32(arg): return __swap_int32(arg)
-
-def B_SWAP_INT16(arg): return __swap_int16(arg)
-
-def htonl(x): return B_HOST_TO_BENDIAN_INT32(x)
-
-def ntohl(x): return B_BENDIAN_TO_HOST_INT32(x)
-
-def htons(x): return B_HOST_TO_BENDIAN_INT16(x)
-
-def ntohs(x): return B_BENDIAN_TO_HOST_INT16(x)
-
-AF_INET = 1
-INADDR_ANY = 0x00000000
-INADDR_BROADCAST = 0xffffffff
-INADDR_LOOPBACK = 0x7f000001
-SOL_SOCKET = 1
-SO_DEBUG = 1
-SO_REUSEADDR = 2
-SO_NONBLOCK = 3
-SO_REUSEPORT = 4
-MSG_OOB = 0x1
-SOCK_DGRAM = 1
-SOCK_STREAM = 2
-IPPROTO_UDP = 1
-IPPROTO_TCP = 2
-IPPROTO_ICMP = 3
-B_UDP_MAX_SIZE = (65536 - 1024)
-FD_SETSIZE = 256
-FDSETSIZE = FD_SETSIZE
-NFDBITS = 32
-def _FDMSKNO(fd): return ((fd) / NFDBITS)
-
-def _FDBITNO(fd): return ((fd) % NFDBITS)
diff --git a/Lib/plat-freebsd2/SOCKET.py b/Lib/plat-freebsd2/SOCKET.py
deleted file mode 100644
index 45f1cb1..0000000
--- a/Lib/plat-freebsd2/SOCKET.py
+++ /dev/null
@@ -1,128 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_TIMESTAMP = 0x0400
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SO_PRIVSTATE = 0x1009
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_LOCAL = 1
-AF_UNIX = AF_LOCAL
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_COIP = 20
-AF_CNT = 21
-pseudo_AF_RTIP = 22
-AF_IPX = 23
-AF_SIP = 24
-pseudo_AF_PIP = 25
-AF_ISDN = 26
-AF_E164 = AF_ISDN
-pseudo_AF_KEY = 27
-AF_INET6 = 28
-AF_MAX = 29
-PF_UNSPEC = AF_UNSPEC
-PF_LOCAL = AF_LOCAL
-PF_UNIX = PF_LOCAL
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_COIP = AF_COIP
-PF_CNT = AF_CNT
-PF_SIP = AF_SIP
-PF_IPX = AF_IPX
-PF_RTIP = pseudo_AF_RTIP
-PF_PIP = pseudo_AF_PIP
-PF_ISDN = AF_ISDN
-PF_KEY = pseudo_AF_KEY
-PF_INET6 = AF_INET6
-PF_MAX = AF_MAX
-NET_MAXID = AF_MAX
-NET_RT_DUMP = 1
-NET_RT_FLAGS = 2
-NET_RT_IFLIST = 3
-NET_RT_MAXID = 4
-SOMAXCONN = 128
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_DONTWAIT = 0x80
-MSG_EOF = 0x100
-MSG_COMPAT = 0x8000
-SCM_RIGHTS = 0x01
-SCM_TIMESTAMP = 0x02
-
-# Included from sys/cdefs.h
-def __P(protos): return protos
-
-def __STRING(x): return #x
-
-def __XSTRING(x): return __STRING(x)
-
-def __P(protos): return ()
-
-def __STRING(x): return "x"
-
-def __RCSID(s): return __IDSTRING(rcsid,s)
-
-def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
-
-def __COPYRIGHT(s): return __IDSTRING(copyright,s)
-
diff --git a/Lib/plat-freebsd3/SOCKET.py b/Lib/plat-freebsd3/SOCKET.py
deleted file mode 100644
index abd0654..0000000
--- a/Lib/plat-freebsd3/SOCKET.py
+++ /dev/null
@@ -1,132 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_TIMESTAMP = 0x0400
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_LOCAL = 1
-AF_UNIX = AF_LOCAL
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_COIP = 20
-AF_CNT = 21
-pseudo_AF_RTIP = 22
-AF_IPX = 23
-AF_SIP = 24
-pseudo_AF_PIP = 25
-AF_ISDN = 26
-AF_E164 = AF_ISDN
-pseudo_AF_KEY = 27
-AF_INET6 = 28
-AF_NATM = 29
-AF_MAX = 30
-SOCK_MAXADDRLEN = 255
-PF_UNSPEC = AF_UNSPEC
-PF_LOCAL = AF_LOCAL
-PF_UNIX = PF_LOCAL
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_COIP = AF_COIP
-PF_CNT = AF_CNT
-PF_SIP = AF_SIP
-PF_IPX = AF_IPX
-PF_RTIP = pseudo_AF_RTIP
-PF_PIP = pseudo_AF_PIP
-PF_ISDN = AF_ISDN
-PF_KEY = pseudo_AF_KEY
-PF_INET6 = AF_INET6
-PF_NATM = AF_NATM
-PF_MAX = AF_MAX
-NET_MAXID = AF_MAX
-NET_RT_DUMP = 1
-NET_RT_FLAGS = 2
-NET_RT_IFLIST = 3
-NET_RT_MAXID = 4
-SOMAXCONN = 128
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_DONTWAIT = 0x80
-MSG_EOF = 0x100
-MSG_COMPAT = 0x8000
-CMGROUP_MAX = 16
-SCM_RIGHTS = 0x01
-SCM_TIMESTAMP = 0x02
-SCM_CREDS = 0x03
-
-# Included from sys/cdefs.h
-def __P(protos): return protos
-
-def __STRING(x): return #x
-
-def __XSTRING(x): return __STRING(x)
-
-def __P(protos): return ()
-
-def __STRING(x): return "x"
-
-def __RCSID(s): return __IDSTRING(rcsid,s)
-
-def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
-
-def __COPYRIGHT(s): return __IDSTRING(copyright,s)
-
diff --git a/Lib/plat-freebsd4/SOCKET.py b/Lib/plat-freebsd4/SOCKET.py
deleted file mode 100644
index 6c6f34a..0000000
--- a/Lib/plat-freebsd4/SOCKET.py
+++ /dev/null
@@ -1,142 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_TIMESTAMP = 0x0400
-SO_ACCEPTFILTER = 0x1000
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_LOCAL = 1
-AF_UNIX = AF_LOCAL
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_COIP = 20
-AF_CNT = 21
-pseudo_AF_RTIP = 22
-AF_IPX = 23
-AF_SIP = 24
-pseudo_AF_PIP = 25
-AF_ISDN = 26
-AF_E164 = AF_ISDN
-pseudo_AF_KEY = 27
-AF_INET6 = 28
-AF_NATM = 29
-AF_ATM = 30
-pseudo_AF_HDRCMPLT = 31
-AF_NETGRAPH = 32
-AF_MAX = 33
-SOCK_MAXADDRLEN = 255
-_SS_MAXSIZE = 128
-PF_UNSPEC = AF_UNSPEC
-PF_LOCAL = AF_LOCAL
-PF_UNIX = PF_LOCAL
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_COIP = AF_COIP
-PF_CNT = AF_CNT
-PF_SIP = AF_SIP
-PF_IPX = AF_IPX
-PF_RTIP = pseudo_AF_RTIP
-PF_PIP = pseudo_AF_PIP
-PF_ISDN = AF_ISDN
-PF_KEY = pseudo_AF_KEY
-PF_INET6 = AF_INET6
-PF_NATM = AF_NATM
-PF_ATM = AF_ATM
-PF_NETGRAPH = AF_NETGRAPH
-PF_MAX = AF_MAX
-NET_MAXID = AF_MAX
-NET_RT_DUMP = 1
-NET_RT_FLAGS = 2
-NET_RT_IFLIST = 3
-NET_RT_MAXID = 4
-SOMAXCONN = 128
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_DONTWAIT = 0x80
-MSG_EOF = 0x100
-MSG_COMPAT = 0x8000
-CMGROUP_MAX = 16
-SCM_RIGHTS = 0x01
-SCM_TIMESTAMP = 0x02
-SCM_CREDS = 0x03
-SHUT_RD = 0
-SHUT_WR = 1
-SHUT_RDWR = 2
-
-# Included from sys/cdefs.h
-def __P(protos): return protos
-
-def __STRING(x): return #x
-
-def __XSTRING(x): return __STRING(x)
-
-def __P(protos): return ()
-
-def __STRING(x): return "x"
-
-def __RCSID(s): return __IDSTRING(rcsid,s)
-
-def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
-
-def __COPYRIGHT(s): return __IDSTRING(copyright,s)
-
diff --git a/Lib/plat-freebsd5/SOCKET.py b/Lib/plat-freebsd5/SOCKET.py
deleted file mode 100644
index 6c6f34a..0000000
--- a/Lib/plat-freebsd5/SOCKET.py
+++ /dev/null
@@ -1,142 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_TIMESTAMP = 0x0400
-SO_ACCEPTFILTER = 0x1000
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_LOCAL = 1
-AF_UNIX = AF_LOCAL
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_COIP = 20
-AF_CNT = 21
-pseudo_AF_RTIP = 22
-AF_IPX = 23
-AF_SIP = 24
-pseudo_AF_PIP = 25
-AF_ISDN = 26
-AF_E164 = AF_ISDN
-pseudo_AF_KEY = 27
-AF_INET6 = 28
-AF_NATM = 29
-AF_ATM = 30
-pseudo_AF_HDRCMPLT = 31
-AF_NETGRAPH = 32
-AF_MAX = 33
-SOCK_MAXADDRLEN = 255
-_SS_MAXSIZE = 128
-PF_UNSPEC = AF_UNSPEC
-PF_LOCAL = AF_LOCAL
-PF_UNIX = PF_LOCAL
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_COIP = AF_COIP
-PF_CNT = AF_CNT
-PF_SIP = AF_SIP
-PF_IPX = AF_IPX
-PF_RTIP = pseudo_AF_RTIP
-PF_PIP = pseudo_AF_PIP
-PF_ISDN = AF_ISDN
-PF_KEY = pseudo_AF_KEY
-PF_INET6 = AF_INET6
-PF_NATM = AF_NATM
-PF_ATM = AF_ATM
-PF_NETGRAPH = AF_NETGRAPH
-PF_MAX = AF_MAX
-NET_MAXID = AF_MAX
-NET_RT_DUMP = 1
-NET_RT_FLAGS = 2
-NET_RT_IFLIST = 3
-NET_RT_MAXID = 4
-SOMAXCONN = 128
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_DONTWAIT = 0x80
-MSG_EOF = 0x100
-MSG_COMPAT = 0x8000
-CMGROUP_MAX = 16
-SCM_RIGHTS = 0x01
-SCM_TIMESTAMP = 0x02
-SCM_CREDS = 0x03
-SHUT_RD = 0
-SHUT_WR = 1
-SHUT_RDWR = 2
-
-# Included from sys/cdefs.h
-def __P(protos): return protos
-
-def __STRING(x): return #x
-
-def __XSTRING(x): return __STRING(x)
-
-def __P(protos): return ()
-
-def __STRING(x): return "x"
-
-def __RCSID(s): return __IDSTRING(rcsid,s)
-
-def __RCSID_SOURCE(s): return __IDSTRING(rcsid_source,s)
-
-def __COPYRIGHT(s): return __IDSTRING(copyright,s)
-
diff --git a/Lib/plat-irix5/SOCKET.py b/Lib/plat-irix5/SOCKET.py
deleted file mode 100755
index 401de2b..0000000
--- a/Lib/plat-irix5/SOCKET.py
+++ /dev/null
@@ -1,133 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-
-# Included from sys/bsd_types.h
-
-# Included from sys/mkdev.h
-ONBITSMAJOR = 7
-ONBITSMINOR = 8
-OMAXMAJ = 0x7f
-OMAXMIN = 0xff
-NBITSMAJOR = 14
-NBITSMINOR = 18
-MAXMAJ = 0x1ff
-MAXMIN = 0x3ffff
-OLDDEV = 0
-NEWDEV = 1
-MKDEV_VER = NEWDEV
-def major(dev): return __major(MKDEV_VER, dev)
-
-def minor(dev): return __minor(MKDEV_VER, dev)
-
-
-# Included from sys/select.h
-FD_SETSIZE = 1024
-NBBY = 8
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-NC_TPI_CLTS = 1
-NC_TPI_COTS = 2
-NC_TPI_COTS_ORD = 3
-NC_TPI_RAW = 4
-SOCK_DGRAM = NC_TPI_CLTS
-SOCK_STREAM = NC_TPI_COTS
-SOCK_RAW = NC_TPI_RAW
-SOCK_RDM = 5
-SOCK_SEQPACKET = 6
-IRIX4_SOCK_STREAM = 1
-IRIX4_SOCK_DGRAM = 2
-IRIX4_SOCK_RAW = 3
-IRIX4_SOCK_RDM = 4
-IRIX4_SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_ORDREL = 0x0200
-SO_IMASOCKET = 0x0400
-SO_CHAMELEON = 0x1000
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SO_PROTOTYPE = 0x1009
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_RAW = 18
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_NIT = 17
-AF_802 = 18
-AF_OSI = 19
-AF_X25 = 20
-AF_OSINET = 21
-AF_GOSIP = 22
-AF_SDL = 23
-AF_MAX = (AF_SDL+1)
-def OPTLEN(x): return ((((x) + sizeof(long) - 1) / sizeof(long)) * sizeof(long))
-
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_RAW = AF_RAW
-PF_NIT = AF_NIT
-PF_802 = AF_802
-PF_OSI = AF_OSI
-PF_X25 = AF_X25
-PF_OSINET = AF_OSINET
-PF_GOSIP = AF_GOSIP
-PF_MAX = AF_MAX
-SOMAXCONN = 5
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_BTAG = 0x40
-MSG_ETAG = 0x80
-MSG_MAXIOVLEN = 16
diff --git a/Lib/plat-irix6/SOCKET.py b/Lib/plat-irix6/SOCKET.py
deleted file mode 100644
index 39a8b63..0000000
--- a/Lib/plat-irix6/SOCKET.py
+++ /dev/null
@@ -1,152 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-
-# Included from sys/bsd_types.h
-
-# Included from sys/mkdev.h
-ONBITSMAJOR = 7
-ONBITSMINOR = 8
-OMAXMAJ = 0x7f
-OMAXMIN = 0xff
-NBITSMAJOR = 14
-NBITSMINOR = 18
-MAXMAJ = 0x1ff
-MAXMIN = 0x3ffff
-OLDDEV = 0
-NEWDEV = 1
-MKDEV_VER = NEWDEV
-def major(dev): return __major(MKDEV_VER, dev)
-
-def minor(dev): return __minor(MKDEV_VER, dev)
-
-
-# Included from sys/select.h
-
-# Included from standards.h
-FD_SETSIZE = 1024
-__NBBY = 8
-
-# Included from string.h
-NULL = 0L
-NBBY = 8
-NC_TPI_CLTS = 1
-NC_TPI_COTS = 2
-NC_TPI_COTS_ORD = 3
-NC_TPI_RAW = 4
-SOCK_DGRAM = NC_TPI_CLTS
-SOCK_STREAM = NC_TPI_COTS
-SOCK_RAW = NC_TPI_RAW
-SOCK_RDM = 5
-SOCK_SEQPACKET = 6
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_ORDREL = 0x0200
-SO_IMASOCKET = 0x0400
-SO_CHAMELEON = 0x1000
-SO_PASSIFNAME = 0x2000
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SO_PROTOTYPE = 0x1009
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_LOCAL = 1
-AF_UNIX = AF_LOCAL
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_RAW = 18
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_NIT = 17
-AF_802 = 18
-AF_OSI = 19
-AF_X25 = 20
-AF_OSINET = 21
-AF_GOSIP = 22
-AF_SDL = 23
-AF_INET6 = 24
-AF_LINK = 25
-AF_MAX = (AF_LINK+1)
-_SIN_ADDR_SIZE = 8
-_SIN_SA_DATA_SIZE = 14
-_MAX_SA_LEN = 20
-def OPTLEN(x): return ((((x) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
-
-PF_UNSPEC = AF_UNSPEC
-PF_LOCAL = AF_LOCAL
-PF_UNIX = PF_LOCAL
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_RAW = AF_RAW
-PF_NIT = AF_NIT
-PF_802 = AF_802
-PF_X25 = AF_X25
-PF_OSINET = AF_OSINET
-PF_GOSIP = AF_GOSIP
-PF_INET6 = AF_INET6
-PF_MAX = AF_MAX
-NET_RT_DUMP = 1
-NET_RT_FLAGS = 2
-NET_RT_IFLIST = 3
-IPCTL_FORWARDING = 1
-IPCTL_SENDREDIRECTS = 2
-UDPCTL_CHECKSUM = 1
-SOMAXCONN = 1000
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_DONTWAIT = 0x80
-MSG_BTAG = 0x40
-MSG_ETAG = 0x80
-MSG_MAXIOVLEN = 16
-_ALIGNBYTES = 7
-def _ALIGN(p): return (((u_int)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
-
-SCM_RIGHTS = 0x01
diff --git a/Lib/plat-linux1/SOCKET.py b/Lib/plat-linux1/SOCKET.py
deleted file mode 100755
index 71077c3..0000000
--- a/Lib/plat-linux1/SOCKET.py
+++ /dev/null
@@ -1,183 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-
-# Included from features.h
-_FEATURES_H = 1
-_GNU_SOURCE = 1
-__USE_ANSI = 1
-__FAVOR_BSD = 1
-_BSD_SOURCE = 1
-_SVID_SOURCE = 1
-_POSIX_SOURCE = 1
-_POSIX_C_SOURCE = 2
-__USE_POSIX = 1
-__USE_POSIX2 = 1
-__USE_MISC = 1
-__USE_BSD = 1
-__USE_SVID = 1
-__USE_GNU = 1
-__GNU_LIBRARY__ = 1
-
-# Included from sys/cdefs.h
-_SYS_CDEFS_H = 1
-def __P(args): return args
-
-def __P(args): return args
-
-def __P(args): return ()
-
-def __STRING(x): return #x
-
-def __STRING(x): return "x"
-
-
-# Included from linux/socket.h
-
-# Included from asm/socket.h
-FIOSETOWN = 0x8901
-SIOCSPGRP = 0x8902
-FIOGETOWN = 0x8903
-SIOCGPGRP = 0x8904
-SIOCATMARK = 0x8905
-SIOCGSTAMP = 0x8906
-SOL_SOCKET = 1
-SO_DEBUG = 1
-SO_REUSEADDR = 2
-SO_TYPE = 3
-SO_ERROR = 4
-SO_DONTROUTE = 5
-SO_BROADCAST = 6
-SO_SNDBUF = 7
-SO_RCVBUF = 8
-SO_KEEPALIVE = 9
-SO_OOBINLINE = 10
-SO_NO_CHECK = 11
-SO_PRIORITY = 12
-SO_LINGER = 13
-
-# Included from linux/sockios.h
-SIOCADDRT = 0x890B
-SIOCDELRT = 0x890C
-SIOCGIFNAME = 0x8910
-SIOCSIFLINK = 0x8911
-SIOCGIFCONF = 0x8912
-SIOCGIFFLAGS = 0x8913
-SIOCSIFFLAGS = 0x8914
-SIOCGIFADDR = 0x8915
-SIOCSIFADDR = 0x8916
-SIOCGIFDSTADDR = 0x8917
-SIOCSIFDSTADDR = 0x8918
-SIOCGIFBRDADDR = 0x8919
-SIOCSIFBRDADDR = 0x891a
-SIOCGIFNETMASK = 0x891b
-SIOCSIFNETMASK = 0x891c
-SIOCGIFMETRIC = 0x891d
-SIOCSIFMETRIC = 0x891e
-SIOCGIFMEM = 0x891f
-SIOCSIFMEM = 0x8920
-SIOCGIFMTU = 0x8921
-SIOCSIFMTU = 0x8922
-SIOCSIFHWADDR = 0x8924
-SIOCGIFENCAP = 0x8925
-SIOCSIFENCAP = 0x8926
-SIOCGIFHWADDR = 0x8927
-SIOCGIFSLAVE = 0x8929
-SIOCSIFSLAVE = 0x8930
-SIOCADDMULTI = 0x8931
-SIOCDELMULTI = 0x8932
-OLD_SIOCDARP = 0x8950
-OLD_SIOCGARP = 0x8951
-OLD_SIOCSARP = 0x8952
-SIOCDARP = 0x8953
-SIOCGARP = 0x8954
-SIOCSARP = 0x8955
-SIOCDRARP = 0x8960
-SIOCGRARP = 0x8961
-SIOCSRARP = 0x8962
-SIOCGIFMAP = 0x8970
-SIOCSIFMAP = 0x8971
-SIOCDEVPRIVATE = 0x89F0
-SIOCPROTOPRIVATE = 0x89E0
-
-# Included from linux/uio.h
-MAX_IOVEC = 8
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SOCK_PACKET = 10
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_AX25 = 3
-AF_IPX = 4
-AF_APPLETALK = 5
-AF_NETROM = 6
-AF_BRIDGE = 7
-AF_AAL5 = 8
-AF_X25 = 9
-AF_INET6 = 10
-AF_MAX = 12
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_AX25 = AF_AX25
-PF_IPX = AF_IPX
-PF_APPLETALK = AF_APPLETALK
-PF_NETROM = AF_NETROM
-PF_BRIDGE = AF_BRIDGE
-PF_AAL5 = AF_AAL5
-PF_X25 = AF_X25
-PF_INET6 = AF_INET6
-PF_MAX = AF_MAX
-SOMAXCONN = 128
-MSG_OOB = 1
-MSG_PEEK = 2
-MSG_DONTROUTE = 4
-SOL_IP = 0
-SOL_IPX = 256
-SOL_AX25 = 257
-SOL_ATALK = 258
-SOL_NETROM = 259
-SOL_TCP = 6
-SOL_UDP = 17
-IP_TOS = 1
-IPTOS_LOWDELAY = 0x10
-IPTOS_THROUGHPUT = 0x08
-IPTOS_RELIABILITY = 0x04
-IP_TTL = 2
-IP_HDRINCL = 3
-IP_OPTIONS = 4
-IP_MULTICAST_IF = 32
-IP_MULTICAST_TTL = 33
-IP_MULTICAST_LOOP = 34
-IP_ADD_MEMBERSHIP = 35
-IP_DROP_MEMBERSHIP = 36
-IP_DEFAULT_MULTICAST_TTL = 1
-IP_DEFAULT_MULTICAST_LOOP = 1
-IP_MAX_MEMBERSHIPS = 20
-IPX_TYPE = 1
-TCP_NODELAY = 1
-TCP_MAXSEG = 2
-SOPRI_INTERACTIVE = 0
-SOPRI_NORMAL = 1
-SOPRI_BACKGROUND = 2
-
-# Included from sys/types.h
-
-# Included from linux/types.h
-__FD_SETSIZE = 256
-
-# Included from asm/types.h
-def __FD_ZERO(fdsetp): return \
-
-
-# Included from sys/bitypes.h
-
-# Included from pthread/mit/posix.h
-
-# Included from pthread/mit/types.h
-
-# Included from pthread/mit/xtypes.h
-
-# Included from pthread/mit/sys/types.h
diff --git a/Lib/plat-linux2/SOCKET.py b/Lib/plat-linux2/SOCKET.py
deleted file mode 100644
index 90c5406..0000000
--- a/Lib/plat-linux2/SOCKET.py
+++ /dev/null
@@ -1,199 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-
-# Included from features.h
-_FEATURES_H = 1
-_GNU_SOURCE = 1
-__USE_ANSI = 1
-__FAVOR_BSD = 1
-_BSD_SOURCE = 1
-_SVID_SOURCE = 1
-_POSIX_SOURCE = 1
-_POSIX_C_SOURCE = 2
-__USE_POSIX = 1
-__USE_POSIX2 = 1
-__USE_MISC = 1
-__USE_BSD = 1
-__USE_SVID = 1
-__USE_GNU = 1
-__GNU_LIBRARY__ = 1
-
-# Included from sys/cdefs.h
-_SYS_CDEFS_H = 1
-def __P(args): return args
-
-def __P(args): return args
-
-def __P(args): return ()
-
-def __STRING(x): return #x
-
-def __STRING(x): return "x"
-
-
-# Included from linux/socket.h
-
-# Included from asm/socket.h
-
-# Included from asm/sockios.h
-FIOSETOWN = 0x8901
-SIOCSPGRP = 0x8902
-FIOGETOWN = 0x8903
-SIOCGPGRP = 0x8904
-SIOCATMARK = 0x8905
-SIOCGSTAMP = 0x8906
-SOL_SOCKET = 1
-SO_DEBUG = 1
-SO_REUSEADDR = 2
-SO_TYPE = 3
-SO_ERROR = 4
-SO_DONTROUTE = 5
-SO_BROADCAST = 6
-SO_SNDBUF = 7
-SO_RCVBUF = 8
-SO_KEEPALIVE = 9
-SO_OOBINLINE = 10
-SO_NO_CHECK = 11
-SO_PRIORITY = 12
-SO_LINGER = 13
-SO_BSDCOMPAT = 14
-
-# Included from linux/sockios.h
-SIOCADDRT = 0x890B
-SIOCDELRT = 0x890C
-SIOCGIFNAME = 0x8910
-SIOCSIFLINK = 0x8911
-SIOCGIFCONF = 0x8912
-SIOCGIFFLAGS = 0x8913
-SIOCSIFFLAGS = 0x8914
-SIOCGIFADDR = 0x8915
-SIOCSIFADDR = 0x8916
-SIOCGIFDSTADDR = 0x8917
-SIOCSIFDSTADDR = 0x8918
-SIOCGIFBRDADDR = 0x8919
-SIOCSIFBRDADDR = 0x891a
-SIOCGIFNETMASK = 0x891b
-SIOCSIFNETMASK = 0x891c
-SIOCGIFMETRIC = 0x891d
-SIOCSIFMETRIC = 0x891e
-SIOCGIFMEM = 0x891f
-SIOCSIFMEM = 0x8920
-SIOCGIFMTU = 0x8921
-SIOCSIFMTU = 0x8922
-SIOCSIFHWADDR = 0x8924
-SIOCGIFENCAP = 0x8925
-SIOCSIFENCAP = 0x8926
-SIOCGIFHWADDR = 0x8927
-SIOCGIFSLAVE = 0x8929
-SIOCSIFSLAVE = 0x8930
-SIOCADDMULTI = 0x8931
-SIOCDELMULTI = 0x8932
-SIOCGIFBR = 0x8940
-SIOCSIFBR = 0x8941
-OLD_SIOCDARP = 0x8950
-OLD_SIOCGARP = 0x8951
-OLD_SIOCSARP = 0x8952
-SIOCDARP = 0x8953
-SIOCGARP = 0x8954
-SIOCSARP = 0x8955
-SIOCDRARP = 0x8960
-SIOCGRARP = 0x8961
-SIOCSRARP = 0x8962
-SIOCGIFMAP = 0x8970
-SIOCSIFMAP = 0x8971
-SIOCADDDLCI = 0x8980
-SIOCDELDLCI = 0x8981
-SIOCDEVPRIVATE = 0x89F0
-SIOCPROTOPRIVATE = 0x89E0
-
-# Included from linux/uio.h
-UIO_MAXIOV = 16
-SCM_RIGHTS = 1
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SOCK_PACKET = 10
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_AX25 = 3
-AF_IPX = 4
-AF_APPLETALK = 5
-AF_NETROM = 6
-AF_BRIDGE = 7
-AF_AAL5 = 8
-AF_X25 = 9
-AF_INET6 = 10
-AF_MAX = 12
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_AX25 = AF_AX25
-PF_IPX = AF_IPX
-PF_APPLETALK = AF_APPLETALK
-PF_NETROM = AF_NETROM
-PF_BRIDGE = AF_BRIDGE
-PF_AAL5 = AF_AAL5
-PF_X25 = AF_X25
-PF_INET6 = AF_INET6
-PF_MAX = AF_MAX
-SOMAXCONN = 128
-MSG_OOB = 1
-MSG_PEEK = 2
-MSG_DONTROUTE = 4
-MSG_PROXY = 16
-SOL_IP = 0
-SOL_IPX = 256
-SOL_AX25 = 257
-SOL_ATALK = 258
-SOL_NETROM = 259
-SOL_TCP = 6
-SOL_UDP = 17
-IP_TOS = 1
-IPTOS_LOWDELAY = 0x10
-IPTOS_THROUGHPUT = 0x08
-IPTOS_RELIABILITY = 0x04
-IPTOS_MINCOST = 0x02
-IP_TTL = 2
-IP_HDRINCL = 3
-IP_OPTIONS = 4
-IP_MULTICAST_IF = 32
-IP_MULTICAST_TTL = 33
-IP_MULTICAST_LOOP = 34
-IP_ADD_MEMBERSHIP = 35
-IP_DROP_MEMBERSHIP = 36
-IP_DEFAULT_MULTICAST_TTL = 1
-IP_DEFAULT_MULTICAST_LOOP = 1
-IP_MAX_MEMBERSHIPS = 20
-IPX_TYPE = 1
-TCP_NODELAY = 1
-TCP_MAXSEG = 2
-SOPRI_INTERACTIVE = 0
-SOPRI_NORMAL = 1
-SOPRI_BACKGROUND = 2
-
-# Included from sys/types.h
-
-# Included from linux/types.h
-
-# Included from linux/posix_types.h
-__FD_SETSIZE = 1024
-def __FDELT(d): return ((d) / __NFDBITS)
-
-
-# Included from asm/posix_types.h
-def __FD_ZERO(fdsetp): return \
-
-
-# Included from asm/types.h
-
-# Included from sys/bitypes.h
-
-# Included from pthread/mit/posix.h
-
-# Included from pthread/mit/types.h
-
-# Included from pthread/mit/xtypes.h
-
-# Included from pthread/mit/sys/types.h
diff --git a/Lib/plat-netbsd1/SOCKET.py b/Lib/plat-netbsd1/SOCKET.py
deleted file mode 100644
index e47a56b..0000000
--- a/Lib/plat-netbsd1/SOCKET.py
+++ /dev/null
@@ -1,122 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_REUSEPORT = 0x0200
-SO_TIMESTAMP = 0x0400
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_LOCAL = 1
-AF_UNIX = AF_LOCAL
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_ISO = 7
-AF_OSI = AF_ISO
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_ROUTE = 17
-AF_LINK = 18
-pseudo_AF_XTP = 19
-AF_COIP = 20
-AF_CNT = 21
-pseudo_AF_RTIP = 22
-AF_IPX = 23
-AF_SIP = 24
-pseudo_AF_PIP = 25
-AF_ISDN = 26
-AF_E164 = AF_ISDN
-AF_NATM = 27
-AF_ARP = 28
-AF_MAX = 29
-PF_UNSPEC = AF_UNSPEC
-PF_LOCAL = AF_LOCAL
-PF_UNIX = PF_LOCAL
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_ISO = AF_ISO
-PF_OSI = AF_ISO
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_ROUTE = AF_ROUTE
-PF_LINK = AF_LINK
-PF_XTP = pseudo_AF_XTP
-PF_COIP = AF_COIP
-PF_CNT = AF_CNT
-PF_SIP = AF_SIP
-PF_IPX = AF_IPX
-PF_PIP = pseudo_AF_PIP
-PF_NATM = AF_NATM
-PF_ARP = AF_ARP
-PF_MAX = AF_MAX
-NET_MAXID = AF_MAX
-NET_RT_DUMP = 1
-NET_RT_FLAGS = 2
-NET_RT_IFLIST = 3
-NET_RT_MAXID = 4
-SOMAXCONN = 128
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_EOR = 0x8
-MSG_TRUNC = 0x10
-MSG_CTRUNC = 0x20
-MSG_WAITALL = 0x40
-MSG_DONTWAIT = 0x80
-SCM_RIGHTS = 0x01
-SCM_TIMESTAMP = 0x02
-
-# Included from sys/cdefs.h
-
-# Included from machine/cdefs.h
-def __P(protos): return protos
-
-def __STRING(x): return #x
-
-def __P(protos): return ()
-
-def __STRING(x): return "x"
-
-def __attribute__(x): return
-
-def __kprintf_attribute__(a): return __attribute__(a)
-
-MSG_COMPAT = 0x8000
diff --git a/Lib/plat-sunos4/SOCKET.py b/Lib/plat-sunos4/SOCKET.py
deleted file mode 100755
index 65ce4bc..0000000
--- a/Lib/plat-sunos4/SOCKET.py
+++ /dev/null
@@ -1,78 +0,0 @@
-# Generated by h2py from /usr/include/sys/socket.h
-SOCK_STREAM = 1
-SOCK_DGRAM = 2
-SOCK_RAW = 3
-SOCK_RDM = 4
-SOCK_SEQPACKET = 5
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_DONTLINGER = (~SO_LINGER)
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_NBS = 7
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_NIT = 17
-AF_802 = 18
-AF_OSI = 19
-AF_X25 = 20
-AF_OSINET = 21
-AF_GOSIP = 22
-AF_MAX = 21
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_NBS = AF_NBS
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_NIT = AF_NIT
-PF_802 = AF_802
-PF_OSI = AF_OSI
-PF_X25 = AF_X25
-PF_OSINET = AF_OSINET
-PF_GOSIP = AF_GOSIP
-PF_MAX = AF_MAX
-SOMAXCONN = 5
-MSG_OOB = 0x1
-MSG_PEEK = 0x2
-MSG_DONTROUTE = 0x4
-MSG_MAXIOVLEN = 16
diff --git a/Lib/plat-sunos5/SOCKET.py b/Lib/plat-sunos5/SOCKET.py
deleted file mode 100755
index 25c10f3..0000000
--- a/Lib/plat-sunos5/SOCKET.py
+++ /dev/null
@@ -1,145 +0,0 @@
-# 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
-NC_TPI_RAW = 4
-SOCK_STREAM = NC_TPI_COTS
-SOCK_DGRAM = NC_TPI_CLTS
-SOCK_RAW = NC_TPI_RAW
-SOCK_RDM = 5
-SOCK_SEQPACKET = 6
-SO_DEBUG = 0x0001
-SO_ACCEPTCONN = 0x0002
-SO_REUSEADDR = 0x0004
-SO_KEEPALIVE = 0x0008
-SO_DONTROUTE = 0x0010
-SO_BROADCAST = 0x0020
-SO_USELOOPBACK = 0x0040
-SO_LINGER = 0x0080
-SO_OOBINLINE = 0x0100
-SO_DONTLINGER = (~SO_LINGER)
-SO_SNDBUF = 0x1001
-SO_RCVBUF = 0x1002
-SO_SNDLOWAT = 0x1003
-SO_RCVLOWAT = 0x1004
-SO_SNDTIMEO = 0x1005
-SO_RCVTIMEO = 0x1006
-SO_ERROR = 0x1007
-SO_TYPE = 0x1008
-SO_PROTOTYPE = 0x1009
-SOL_SOCKET = 0xffff
-AF_UNSPEC = 0
-AF_UNIX = 1
-AF_INET = 2
-AF_IMPLINK = 3
-AF_PUP = 4
-AF_CHAOS = 5
-AF_NS = 6
-AF_NBS = 7
-AF_ECMA = 8
-AF_DATAKIT = 9
-AF_CCITT = 10
-AF_SNA = 11
-AF_DECnet = 12
-AF_DLI = 13
-AF_LAT = 14
-AF_HYLINK = 15
-AF_APPLETALK = 16
-AF_NIT = 17
-AF_802 = 18
-AF_OSI = 19
-AF_X25 = 20
-AF_OSINET = 21
-AF_GOSIP = 22
-AF_IPX = 23
-AF_MAX = 23
-PF_UNSPEC = AF_UNSPEC
-PF_UNIX = AF_UNIX
-PF_INET = AF_INET
-PF_IMPLINK = AF_IMPLINK
-PF_PUP = AF_PUP
-PF_CHAOS = AF_CHAOS
-PF_NS = AF_NS
-PF_NBS = AF_NBS
-PF_ECMA = AF_ECMA
-PF_DATAKIT = AF_DATAKIT
-PF_CCITT = AF_CCITT
-PF_SNA = AF_SNA
-PF_DECnet = AF_DECnet
-PF_DLI = AF_DLI
-PF_LAT = AF_LAT
-PF_HYLINK = AF_HYLINK
-PF_APPLETALK = AF_APPLETALK
-PF_NIT = AF_NIT
-PF_802 = AF_802
-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
-SO_BIND = 2
-SO_CONNECT = 3
-SO_GETPEERNAME = 4
-SO_GETSOCKNAME = 5
-SO_GETSOCKOPT = 6
-SO_LISTEN = 7
-SO_RECV = 8
-SO_RECVFROM = 9
-SO_SEND = 10
-SO_SENDTO = 11
-SO_SETSOCKOPT = 12
-SO_SHUTDOWN = 13
-SO_SOCKET = 14
-SO_SOCKPOLL = 15
-SO_GETIPDOMAIN = 16
-SO_SETIPDOMAIN = 17
-SO_ADJTIME = 18