summaryrefslogtreecommitdiffstats
path: root/Lib/sunos4
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-09 03:50:59 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-09 03:50:59 (GMT)
commit1c0d851a32c9c271215572ed37cdd38d60125d04 (patch)
treeac9e9b801f9d88a1930ea9088486bf8e34b0f7b2 /Lib/sunos4
parent5c1f5bd5f64c2c60afa5221862fd220cd086c5c8 (diff)
downloadcpython-1c0d851a32c9c271215572ed37cdd38d60125d04.zip
cpython-1c0d851a32c9c271215572ed37cdd38d60125d04.tar.gz
cpython-1c0d851a32c9c271215572ed37cdd38d60125d04.tar.bz2
Renamed platform specific subdirectories to plat-*.
Diffstat (limited to 'Lib/sunos4')
-rwxr-xr-xLib/sunos4/FCNTL.py67
-rwxr-xr-xLib/sunos4/IN.py59
-rwxr-xr-xLib/sunos4/SOCKET.py78
-rwxr-xr-xLib/sunos4/SUNAUDIODEV.py38
-rwxr-xr-xLib/sunos4/WAIT.py13
-rwxr-xr-xLib/sunos4/regen12
6 files changed, 0 insertions, 267 deletions
diff --git a/Lib/sunos4/FCNTL.py b/Lib/sunos4/FCNTL.py
deleted file mode 100755
index 1256d81..0000000
--- a/Lib/sunos4/FCNTL.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# Generated by h2py from stdin
-_FOPEN = (-1)
-_FREAD = 0x0001
-_FWRITE = 0x0002
-_FNDELAY = 0x0004
-_FAPPEND = 0x0008
-_FSETBLK = 0x0010
-_FASYNC = 0x0040
-_FSHLOCK = 0x0080
-_FEXLOCK = 0x0100
-_FCREAT = 0x0200
-_FTRUNC = 0x0400
-_FEXCL = 0x0800
-_FNBIO = 0x1000
-_FSYNC = 0x2000
-_FNONBLOCK = 0x4000
-_FNOCTTY = 0x8000
-_FMARK = 0x10000
-_FDEFER = 0x20000
-O_RDONLY = 0
-O_WRONLY = 1
-O_RDWR = 2
-O_APPEND = _FAPPEND
-O_CREAT = _FCREAT
-O_TRUNC = _FTRUNC
-O_EXCL = _FEXCL
-O_NONBLOCK = _FNONBLOCK
-O_NOCTTY = _FNOCTTY
-O_SYNC = _FSYNC
-FAPPEND = _FAPPEND
-FSYNC = _FSYNC
-FASYNC = _FASYNC
-FNBIO = _FNBIO
-FNONBIO = _FNONBLOCK
-FNDELAY = _FNDELAY
-FREAD = _FREAD
-FWRITE = _FWRITE
-FMARK = _FMARK
-FDEFER = _FDEFER
-FSETBLK = _FSETBLK
-FSHLOCK = _FSHLOCK
-FEXLOCK = _FEXLOCK
-FOPEN = _FOPEN
-FCREAT = _FCREAT
-FTRUNC = _FTRUNC
-FEXCL = _FEXCL
-FNOCTTY = _FNOCTTY
-FD_CLOEXEC = 1
-F_DUPFD = 0
-F_GETFD = 1
-F_SETFD = 2
-F_GETFL = 3
-F_SETFL = 4
-F_GETOWN = 5
-F_SETOWN = 6
-F_GETLK = 7
-F_SETLK = 8
-F_SETLKW = 9
-F_RGETLK = 10
-F_RSETLK = 11
-F_CNVT = 12
-F_RSETLKW = 13
-F_RDLCK = 1
-F_WRLCK = 2
-F_UNLCK = 3
-F_UNLKSYS = 4
-O_ACCMODE = (O_RDONLY|O_WRONLY|O_RDWR)
diff --git a/Lib/sunos4/IN.py b/Lib/sunos4/IN.py
deleted file mode 100755
index a05a944..0000000
--- a/Lib/sunos4/IN.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# Generated by h2py from /usr/include/netinet/in.h
-IPPROTO_IP = 0
-IPPROTO_ICMP = 1
-IPPROTO_IGMP = 2
-IPPROTO_GGP = 3
-IPPROTO_TCP = 6
-IPPROTO_EGP = 8
-IPPROTO_PUP = 12
-IPPROTO_UDP = 17
-IPPROTO_IDP = 22
-IPPROTO_HELLO = 63
-IPPROTO_ND = 77
-IPPROTO_RAW = 255
-IPPROTO_MAX = 256
-IPPORT_ECHO = 7
-IPPORT_DISCARD = 9
-IPPORT_SYSTAT = 11
-IPPORT_DAYTIME = 13
-IPPORT_NETSTAT = 15
-IPPORT_FTP = 21
-IPPORT_TELNET = 23
-IPPORT_SMTP = 25
-IPPORT_TIMESERVER = 37
-IPPORT_NAMESERVER = 42
-IPPORT_WHOIS = 43
-IPPORT_MTP = 57
-IPPORT_TFTP = 69
-IPPORT_RJE = 77
-IPPORT_FINGER = 79
-IPPORT_TTYLINK = 87
-IPPORT_SUPDUP = 95
-IPPORT_EXECSERVER = 512
-IPPORT_LOGINSERVER = 513
-IPPORT_CMDSERVER = 514
-IPPORT_EFSSERVER = 520
-IPPORT_BIFFUDP = 512
-IPPORT_WHOSERVER = 513
-IPPORT_ROUTESERVER = 520
-IPPORT_RESERVED = 1024
-IPPORT_USERRESERVED = 5000
-IMPLINK_IP = 155
-IMPLINK_LOWEXPER = 156
-IMPLINK_HIGHEXPER = 158
-IN_CLASSA_NET = 0xff000000
-IN_CLASSA_NSHIFT = 24
-IN_CLASSA_HOST = 0x00ffffff
-IN_CLASSA_MAX = 128
-IN_CLASSB_NET = 0xffff0000
-IN_CLASSB_NSHIFT = 16
-IN_CLASSB_HOST = 0x0000ffff
-IN_CLASSB_MAX = 65536
-IN_CLASSC_NET = 0xffffff00
-IN_CLASSC_NSHIFT = 8
-IN_CLASSC_HOST = 0x000000ff
-INADDR_ANY = 0x00000000
-INADDR_LOOPBACK = 0x7F000001
-INADDR_BROADCAST = 0xffffffff
-IN_LOOPBACKNET = 127
-IP_OPTIONS = 1
diff --git a/Lib/sunos4/SOCKET.py b/Lib/sunos4/SOCKET.py
deleted file mode 100755
index 65ce4bc..0000000
--- a/Lib/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/sunos4/SUNAUDIODEV.py b/Lib/sunos4/SUNAUDIODEV.py
deleted file mode 100755
index b66610d..0000000
--- a/Lib/sunos4/SUNAUDIODEV.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# Symbolic constants for use with sunaudiodev module
-# The names are the same as in audioio.h with the leading AUDIO_
-# removed.
-
-# Not all values are supported on all releases of SunOS.
-
-# Encoding types, for fields i_encoding and o_encoding
-
-ENCODING_NONE = 0 # no encoding assigned
-ENCODING_ULAW = 1 # u-law encoding
-ENCODING_ALAW = 2 # A-law encoding
-ENCODING_LINEAR = 3 # Linear PCM encoding
-
-# Gain ranges for i_gain, o_gain and monitor_gain
-
-MIN_GAIN = 0 # minimum gain value
-MAX_GAIN = 255 # maximum gain value
-
-# Balance values for i_balance and o_balance
-
-LEFT_BALANCE = 0 # left channel only
-MID_BALANCE = 32 # equal left/right channel
-RIGHT_BALANCE = 64 # right channel only
-BALANCE_SHIFT = 3
-
-# Port names for i_port and o_port
-
-PORT_A = 1
-PORT_B = 2
-PORT_C = 3
-PORT_D = 4
-
-SPEAKER = 0x01 # output to built-in speaker
-HEADPHONE = 0x02 # output to headphone jack
-LINE_OUT = 0x04 # output to line out
-
-MICROPHONE = 0x01 # input from microphone
-LINE_IN = 0x02 # input from line in
diff --git a/Lib/sunos4/WAIT.py b/Lib/sunos4/WAIT.py
deleted file mode 100755
index 43612f0..0000000
--- a/Lib/sunos4/WAIT.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# Generated by h2py from /usr/include/sys/wait.h
-WUNTRACED = 0004
-WNOHANG = 0100
-WEXITED = 0001
-WTRAPPED = 0002
-WSTOPPED = WUNTRACED
-WCONTINUED = 0010
-WNOWAIT = 0200
-WOPTMASK = (WEXITED|WTRAPPED|WSTOPPED|WCONTINUED|WNOHANG|WNOWAIT)
-WSTOPFLG = 0177
-WCONTFLG = 0177777
-WCOREFLG = 0200
-WSIGMASK = 0177
diff --git a/Lib/sunos4/regen b/Lib/sunos4/regen
deleted file mode 100755
index 8b52d74..0000000
--- a/Lib/sunos4/regen
+++ /dev/null
@@ -1,12 +0,0 @@
-#! /bin/sh
-case `uname -sr` in
-'SunOS 4.'*) ;;
-*) echo Probably not on a SunOS 4 system 1>&2
- exit 1;;
-esac
-set -v
-h2py </usr/include/sys/fcntlcom.h >FCNTL.py
-echo "O_ACCMODE = (O_RDONLY|O_WRONLY|O_RDWR)" >>FCNTL.py
-h2py /usr/include/sys/socket.h
-h2py /usr/include/sys/wait.h
-h2py -i '(u_long)' /usr/include/netinet/in.h