From ddd802cbd7790033fb71650281c14e93bf01cf25 Mon Sep 17 00:00:00 2001
From: Fred Drake <fdrake@acm.org>
Date: Tue, 27 Feb 2001 21:35:40 +0000
Subject: Replace all the platform-specific TERMIOS modules with a portable
 version based on the termios module.  The only added "feature" is the
 deprecation warning it spits out.

---
 Lib/TERMIOS.py               |  17 ++
 Lib/plat-aix3/TERMIOS.py     | 195 -------------
 Lib/plat-aix4/TERMIOS.py     | 206 -------------
 Lib/plat-beos5/TERMIOS.py    | 218 --------------
 Lib/plat-freebsd2/TERMIOS.py | 198 -------------
 Lib/plat-freebsd3/TERMIOS.py | 198 -------------
 Lib/plat-freebsd4/TERMIOS.py | 198 -------------
 Lib/plat-freebsd5/TERMIOS.py | 198 -------------
 Lib/plat-irix5/TERMIOS.py    | 576 ------------------------------------
 Lib/plat-irix6/TERMIOS.py    | 676 -------------------------------------------
 Lib/plat-linux1/TERMIOS.py   | 270 -----------------
 Lib/plat-linux2/TERMIOS.py   | 316 --------------------
 Lib/plat-netbsd1/TERMIOS.py  | 191 ------------
 Lib/plat-sunos5/TERMIOS.py   | 433 ---------------------------
 14 files changed, 17 insertions(+), 3873 deletions(-)
 create mode 100644 Lib/TERMIOS.py
 delete mode 100644 Lib/plat-aix3/TERMIOS.py
 delete mode 100644 Lib/plat-aix4/TERMIOS.py
 delete mode 100644 Lib/plat-beos5/TERMIOS.py
 delete mode 100644 Lib/plat-freebsd2/TERMIOS.py
 delete mode 100644 Lib/plat-freebsd3/TERMIOS.py
 delete mode 100644 Lib/plat-freebsd4/TERMIOS.py
 delete mode 100644 Lib/plat-freebsd5/TERMIOS.py
 delete mode 100755 Lib/plat-irix5/TERMIOS.py
 delete mode 100644 Lib/plat-irix6/TERMIOS.py
 delete mode 100755 Lib/plat-linux1/TERMIOS.py
 delete mode 100644 Lib/plat-linux2/TERMIOS.py
 delete mode 100644 Lib/plat-netbsd1/TERMIOS.py
 delete mode 100755 Lib/plat-sunos5/TERMIOS.py

diff --git a/Lib/TERMIOS.py b/Lib/TERMIOS.py
new file mode 100644
index 0000000..0b96e55
--- /dev/null
+++ b/Lib/TERMIOS.py
@@ -0,0 +1,17 @@
+"""Backward-compatibility version of TERMIOS; export constants exported by
+termios, and issue a deprecation warning.
+"""
+
+import warnings
+warnings.warn("the TERMIOS module is deprecated; please use termios",
+              DeprecationWarning)
+
+# Ignore further deprecation warnings about this module
+warnings.filterwarnings("ignore", "", DeprecationWarning, __name__)
+
+
+# Export the constants known to the termios module:
+from termios import *
+
+# and *only* the constants:
+__all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
diff --git a/Lib/plat-aix3/TERMIOS.py b/Lib/plat-aix3/TERMIOS.py
deleted file mode 100644
index a048cd9..0000000
--- a/Lib/plat-aix3/TERMIOS.py
+++ /dev/null
@@ -1,195 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-
-# Included from standards.h
-
-# Included from sys/types.h
-
-# Included from sys/m_types.h
-TRUE = 1
-FALSE = 0
-NBBY = 8
-FHSIZE = 32
-
-# Included from sys/select.h
-
-# Included from sys/time.h
-ITIMER_REAL = 0
-ITIMER_VIRTUAL = 1
-ITIMER_PROF = 2
-ITIMER_VIRT = 3
-TIMEOFDAY = 9
-TIMERID_ALRM = (ITIMER_REAL)
-TIMERID_REAL = (ITIMER_REAL)
-TIMERID_VIRTUAL = (ITIMER_VIRTUAL)
-TIMERID_PROF = (ITIMER_PROF)
-TIMERID_VIRT = (ITIMER_VIRT)
-TIMERID_TOD = (TIMERID_VIRT+1)
-NALRM = 1
-NPROF = 1
-NVIRTUAL = 2
-NTIMEOFDAY = 5
-NTIMERS = (NALRM + NPROF + NVIRTUAL + NTIMEOFDAY)
-MIN_SECS_SINCE_EPOCH = 0
-uS_PER_SECOND = (1000000)
-NS_PER_uS = (1000)
-MAX_SECS_TO_uS = 4000
-MAX_NS_TO_uS = 294967296
-NS_PER_SEC = 1000000000
-uS_PER_SEC = (NS_PER_SEC / 1000)
-NS_PER_MSEC = (NS_PER_SEC / 1000)
-MAX_DEC_SECS = 2
-MAX_DEC_NS = 147483647
-DST_NONE = 0
-DST_USA = 1
-DST_AUST = 2
-DST_WET = 3
-DST_MET = 4
-DST_EET = 5
-DST_CAN = 6
-
-# Included from time.h
-
-# Included from stddef.h
-CLOCKS_PER_SEC = 1000000
-CLK_TCK = 100
-TIMELEN = 26
-NLTBMAX = 64
-NO_TIMEOUT = 0
-INF_TIMEOUT = -1
-def NFDS(x): return ((x) & 0x0000FFFF)
-
-def LOW_HALF(x): return NFDS(x)
-
-def NMSGS(x): return (((x) >> 16) & 0x0000FFFF)
-
-def HIGH_HALF(x): return NMSGS(x)
-
-FD_SETSIZE = 2048
-def major(__x): return (int)((unsigned)(__x)>>16)
-
-def minor(__x): return (int)((__x)&0xFFFF)
-
-NCCS = 16
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VSTART = 7
-VSTOP = 8
-VSUSP = 9
-VMIN = 4
-VTIME = 5
-VEOL2 = 6
-VDSUSP = 10
-VREPRINT = 11
-VDISCRD = 12
-VWERSE = 13
-VLNEXT = 14
-VSTRT = VSTART
-B0 = 0x00000000
-B50 = 0x00000001
-B75 = 0x00000002
-B110 = 0x00000003
-B134 = 0x00000004
-B150 = 0x00000005
-B200 = 0x00000006
-B300 = 0x00000007
-B600 = 0x00000008
-B1200 = 0x00000009
-B1800 = 0x0000000a
-B2400 = 0x0000000b
-B4800 = 0x0000000c
-B9600 = 0x0000000d
-B19200 = 0x0000000e
-B38400 = 0x0000000f
-EXTA = B19200
-EXTB = B38400
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IUCLC = 0x00000800
-IXANY = 0x00001000
-IMAXBEL = 0x00010000
-OPOST = 0x00000001
-OLCUC = 0x00000002
-ONLCR = 0x00000004
-OCRNL = 0x00000008
-ONOCR = 0x00000010
-ONLRET = 0x00000020
-OFILL = 0x00000040
-OFDEL = 0x00000080
-CRDLY = 0x00000300
-CR0 = 0x00000000
-CR1 = 0x00000100
-CR2 = 0x00000200
-CR3 = 0x00000300
-TABDLY = 0x00000c00
-TAB0 = 0x00000000
-TAB1 = 0x00000400
-TAB2 = 0x00000800
-TAB3 = 0x00000c00
-BSDLY = 0x00001000
-BS0 = 0x00000000
-BS1 = 0x00001000
-FFDLY = 0x00002000
-FF0 = 0x00000000
-FF1 = 0x00002000
-NLDLY = 0x00004000
-NL0 = 0x00000000
-NL1 = 0x00004000
-VTDLY = 0x00008000
-VT0 = 0x00000000
-VT1 = 0x00008000
-DLY_MASK = (NLDLY | CRDLY | TABDLY | BSDLY | VTDLY | FFDLY)
-_CBAUD = 0x0000000f
-CSIZE = 0x00000030
-CS5 = 0x00000000
-CS6 = 0x00000010
-CS7 = 0x00000020
-CS8 = 0x00000030
-CSTOPB = 0x00000040
-CREAD = 0x00000080
-PARENB = 0x00000100
-PARODD = 0x00000200
-HUPCL = 0x00000400
-CLOCAL = 0x00000800
-_CIBAUD = 0x000f0000
-_IBSHIFT = 16
-CIBAUD = _CIBAUD
-IBSHIFT = _IBSHIFT
-PAREXT = 0x00100000
-ISIG = 0x00000001
-ICANON = 0x00000002
-XCASE = 0x00000004
-ECHO = 0x00000008
-ECHOE = 0x00000010
-ECHOK = 0x00000020
-ECHONL = 0x00000040
-NOFLSH = 0x00000080
-TOSTOP = 0x00010000
-ECHOCTL = 0x00020000
-ECHOPRT = 0x00040000
-ECHOKE = 0x00080000
-FLUSHO = 0x00100000
-PENDIN = 0x20000000
-IEXTEN = 0x00200000
diff --git a/Lib/plat-aix4/TERMIOS.py b/Lib/plat-aix4/TERMIOS.py
deleted file mode 100644
index 6b58f03..0000000
--- a/Lib/plat-aix4/TERMIOS.py
+++ /dev/null
@@ -1,206 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-
-# Included from standards.h
-
-# Included from sys/types.h
-
-# Included from sys/m_types.h
-NULL = 0
-TRUE = 1
-FALSE = 0
-NBBY = 8
-FHSIZE = 32
-
-# Included from sys/select.h
-
-# Included from sys/time.h
-ITIMER_REAL = 0
-ITIMER_VIRTUAL = 1
-ITIMER_PROF = 2
-ITIMER_VIRT = 3
-ITIMER_REAL1 = 20
-TIMEOFDAY = 9
-TIMERID_ALRM = (ITIMER_REAL)
-TIMERID_REAL = (ITIMER_REAL)
-TIMERID_VIRTUAL = (ITIMER_VIRTUAL)
-TIMERID_PROF = (ITIMER_PROF)
-TIMERID_VIRT = (ITIMER_VIRT)
-TIMERID_TOD = (TIMERID_VIRT+1)
-TIMERID_REAL1 = (ITIMER_REAL1)
-NALRM = 1
-NPROF = 1
-NVIRTUAL = 2
-NTIMEOFDAY = 5
-NTIMERS = (NALRM + NPROF + NVIRTUAL + NTIMEOFDAY)
-NALRM_THREAD = 1
-NTIMERS_THREAD = (NALRM_THREAD)
-MIN_SECS_SINCE_EPOCH = 0
-uS_PER_SECOND = (1000000)
-NS_PER_uS = (1000)
-MAX_SECS_TO_uS = 4000
-MAX_NS_TO_uS = 294967296
-NS_PER_SEC = 1000000000
-uS_PER_SEC = (NS_PER_SEC / 1000)
-NS_PER_MSEC = (NS_PER_SEC / 1000)
-MAX_DEC_SECS = 2
-MAX_DEC_NS = 147483647
-DST_NONE = 0
-DST_USA = 1
-DST_AUST = 2
-DST_WET = 3
-DST_MET = 4
-DST_EET = 5
-DST_CAN = 6
-
-# Included from time.h
-NULL = 0
-CLOCKS_PER_SEC = 1000000
-CLK_TCK = 100
-
-# Included from stddef.h
-NULL = 0
-TIMELEN = 26
-NLTBMAX = 64
-NO_TIMEOUT = 0
-INF_TIMEOUT = -1
-def NFDS(x): return ((x) & 0x0000FFFF)
-
-def LOW_HALF(x): return NFDS(x)
-
-def NMSGS(x): return (((x) >> 16) & 0x0000FFFF)
-
-def HIGH_HALF(x): return NMSGS(x)
-
-FD_SETSIZE = 2048
-def major(__x): return (int)((unsigned)(__x)>>16)
-
-def minor(__x): return (int)((__x)&0xFFFF)
-
-NCCS = 16
-CSMAP_DIR = "/usr/lib/nls/csmap/"
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VSTART = 7
-VSTOP = 8
-VSUSP = 9
-VMIN = 4
-VTIME = 5
-VEOL2 = 6
-VDSUSP = 10
-VREPRINT = 11
-VDISCRD = 12
-VWERSE = 13
-VLNEXT = 14
-VSTRT = VSTART
-B0 = 0x00000000
-B50 = 0x00000001
-B75 = 0x00000002
-B110 = 0x00000003
-B134 = 0x00000004
-B150 = 0x00000005
-B200 = 0x00000006
-B300 = 0x00000007
-B600 = 0x00000008
-B1200 = 0x00000009
-B1800 = 0x0000000a
-B2400 = 0x0000000b
-B4800 = 0x0000000c
-B9600 = 0x0000000d
-B19200 = 0x0000000e
-B38400 = 0x0000000f
-EXTA = B19200
-EXTB = B38400
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IUCLC = 0x00000800
-IXANY = 0x00001000
-IMAXBEL = 0x00010000
-OPOST = 0x00000001
-OLCUC = 0x00000002
-ONLCR = 0x00000004
-OCRNL = 0x00000008
-ONOCR = 0x00000010
-ONLRET = 0x00000020
-OFILL = 0x00000040
-OFDEL = 0x00000080
-CRDLY = 0x00000300
-CR0 = 0x00000000
-CR1 = 0x00000100
-CR2 = 0x00000200
-CR3 = 0x00000300
-TABDLY = 0x00000c00
-TAB0 = 0x00000000
-TAB1 = 0x00000400
-TAB2 = 0x00000800
-TAB3 = 0x00000c00
-BSDLY = 0x00001000
-BS0 = 0x00000000
-BS1 = 0x00001000
-FFDLY = 0x00002000
-FF0 = 0x00000000
-FF1 = 0x00002000
-NLDLY = 0x00004000
-NL0 = 0x00000000
-NL1 = 0x00004000
-VTDLY = 0x00008000
-VT0 = 0x00000000
-VT1 = 0x00008000
-DLY_MASK = (NLDLY | CRDLY | TABDLY | BSDLY | VTDLY | FFDLY)
-OXTABS = 0x00040000
-ONOEOT = 0x00080000
-_CBAUD = 0x0000000f
-CSIZE = 0x00000030
-CS5 = 0x00000000
-CS6 = 0x00000010
-CS7 = 0x00000020
-CS8 = 0x00000030
-CSTOPB = 0x00000040
-CREAD = 0x00000080
-PARENB = 0x00000100
-PARODD = 0x00000200
-HUPCL = 0x00000400
-CLOCAL = 0x00000800
-_CIBAUD = 0x000f0000
-_IBSHIFT = 16
-CIBAUD = _CIBAUD
-IBSHIFT = _IBSHIFT
-PAREXT = 0x00100000
-ISIG = 0x00000001
-ICANON = 0x00000002
-XCASE = 0x00000004
-ECHO = 0x00000008
-ECHOE = 0x00000010
-ECHOK = 0x00000020
-ECHONL = 0x00000040
-NOFLSH = 0x00000080
-TOSTOP = 0x00010000
-ECHOCTL = 0x00020000
-ECHOPRT = 0x00040000
-ECHOKE = 0x00080000
-FLUSHO = 0x00100000
-ALTWERASE = 0x00400000
-PENDIN = 0x20000000
-IEXTEN = 0x00200000
diff --git a/Lib/plat-beos5/TERMIOS.py b/Lib/plat-beos5/TERMIOS.py
deleted file mode 100644
index 18e5c80..0000000
--- a/Lib/plat-beos5/TERMIOS.py
+++ /dev/null
@@ -1,218 +0,0 @@
-# Generated by h2py from /boot/develop/headers/posix/termios.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 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 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 unistd.h
-B_MOUNT_READ_ONLY = 1
-R_OK = 4
-W_OK = 2
-X_OK = 1
-F_OK = 0
-STDIN_FILENO = 0
-STDOUT_FILENO = 1
-STDERR_FILENO = 2
-_PC_CHOWN_RESTRICTED = 1
-_PC_MAX_CANON = 2
-_PC_MAX_INPUT = 3
-_PC_NAME_MAX = 4
-_PC_NO_TRUNC = 5
-_PC_PATH_MAX = 6
-_PC_PIPE_BUF = 7
-_PC_VDISABLE = 8
-_POSIX_CHOWN_RESTRICTED = 9
-_POSIX_JOB_CONTROL = 10
-_POSIX_NO_TRUNC = 11
-_POSIX_SAVED_IDS = 12
-_POSIX_VERSION = (199009L)
-_SC_ARG_MAX = 15
-_SC_CHILD_MAX = 16
-_SC_CLK_TCK = 17
-_SC_JOB_CONTROL = 18
-_SC_NGROUPS_MAX = 19
-_SC_OPEN_MAX = 20
-_SC_SAVED_IDS = 21
-_SC_STREAM_MAX = 22
-_SC_TZNAME_MAX = 23
-_SC_VERSION = 24
-_PC_LINK_MAX = 25
-SEEK_SET = 0
-SEEK_CUR = 1
-SEEK_END = 2
-NCC = 11
-NCCS = NCC
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VMIN = 4
-VTIME = 5
-VEOL2 = 6
-VSWTCH = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-IGNBRK = 0x01
-BRKINT = 0x02
-IGNPAR = 0x04
-PARMRK = 0x08
-INPCK = 0x10
-ISTRIP = 0x20
-INLCR = 0x40
-IGNCR = 0x80
-ICRNL = 0x100
-IUCLC = 0x200
-IXON = 0x400
-IXANY = 0x800
-IXOFF = 0x1000
-OPOST = 0x01
-OLCUC = 0x02
-ONLCR = 0x04
-OCRNL = 0x08
-ONOCR = 0x10
-ONLRET = 0x20
-OFILL = 0x40
-OFDEL = 0x80
-NLDLY = 0x100
-NL0 = 0x000
-NL1 = 0x100
-CRDLY = 0x600
-CR0 = 0x000
-CR1 = 0x200
-CR2 = 0x400
-CR3 = 0x600
-TABDLY = 0x1800
-TAB0 = 0x0000
-TAB1 = 0x0800
-TAB2 = 0x1000
-TAB3 = 0x1800
-BSDLY = 0x2000
-BS0 = 0x0000
-BS1 = 0x2000
-VTDLY = 0x4000
-VT0 = 0x0000
-VT1 = 0x4000
-FFDLY = 0x8000
-FF0 = 0x0000
-FF1 = 0x8000
-CBAUD = 0x1F
-B0 = 0x00
-B50 = 0x01
-B75 = 0x02
-B110 = 0x03
-B134 = 0x04
-B150 = 0x05
-B200 = 0x06
-B300 = 0x07
-B600 = 0x08
-B1200 = 0x09
-B1800 = 0x0A
-B2400 = 0x0B
-B4800 = 0x0C
-B9600 = 0x0D
-B19200 = 0x0E
-B38400 = 0x0F
-B57600 = 0x10
-B115200 = 0x11
-B230400 = 0x12
-B31250 = 0x13
-CSIZE = 0x20
-CS5 = 0x00
-CS6 = 0x00
-CS7 = 0x00
-CS8 = 0x20
-CSTOPB = 0x40
-CREAD = 0x80
-PARENB = 0x100
-PARODD = 0x200
-HUPCL = 0x400
-CLOCAL = 0x800
-XLOBLK = 0x1000
-CTSFLOW = 0x2000
-RTSFLOW = 0x4000
-CRTSCTS = (RTSFLOW | CTSFLOW)
-ISIG = (0x01)
-ICANON = (0x02)
-XCASE = (0x04)
-ECHO = (0x08)
-ECHOE = (0x10)
-ECHOK = (0x20)
-ECHONL = (0x40)
-NOFLSH = (0x80)
-TOSTOP = (0x100)
-IEXTEN = (0x200)
-EV_RING = 0x0001
-EV_BREAK = 0x0002
-EV_CARRIER = 0x0004
-EV_CARRIERLOST = 0x0008
-TCGETA = (0x8000)
-TCSETA = (TCGETA+1)
-TCSETAF = (TCGETA+2)
-TCSETAW = (TCGETA+3)
-TCWAITEVENT = (TCGETA+4)
-TCSBRK = (TCGETA+5)
-TCFLSH = (TCGETA+6)
-TCXONC = (TCGETA+7)
-TCQUERYCONNECTED = (TCGETA+8)
-TCGETBITS = (TCGETA+9)
-TCSETDTR = (TCGETA+10)
-TCSETRTS = (TCGETA+11)
-TIOCGWINSZ = (TCGETA+12)
-TIOCSWINSZ = (TCGETA+13)
-TCVTIME = (TCGETA+14)
-TCGB_CTS = 0x01
-TCGB_DSR = 0x02
-TCGB_RI = 0x04
-TCGB_DCD = 0x08
-TCSANOW = 0x01
-TCSADRAIN = 0x02
-TCSAFLUSH = 0x04
-TCOOFF = 0x01
-TCOON = 0x02
-TCIOFF = 0x04
-TCION = 0x08
-TCIFLUSH = 0x01
-TCOFLUSH = 0x02
-TCIOFLUSH = (TCIFLUSH | TCOFLUSH)
\ No newline at end of file
diff --git a/Lib/plat-freebsd2/TERMIOS.py b/Lib/plat-freebsd2/TERMIOS.py
deleted file mode 100644
index b0e3d28..0000000
--- a/Lib/plat-freebsd2/TERMIOS.py
+++ /dev/null
@@ -1,198 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-VEOF = 0
-VEOL = 1
-VEOL2 = 2
-VERASE = 3
-VWERASE = 4
-VKILL = 5
-VREPRINT = 6
-VINTR = 8
-VQUIT = 9
-VSUSP = 10
-VDSUSP = 11
-VSTART = 12
-VSTOP = 13
-VLNEXT = 14
-VDISCARD = 15
-VMIN = 16
-VTIME = 17
-VSTATUS = 18
-NCCS = 20
-_POSIX_VDISABLE = 0xff
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IXANY = 0x00000800
-IMAXBEL = 0x00002000
-OPOST = 0x00000001
-ONLCR = 0x00000002
-OXTABS = 0x00000004
-ONOEOT = 0x00000008
-CIGNORE = 0x00000001
-CSIZE = 0x00000300
-CS5 = 0x00000000
-CS6 = 0x00000100
-CS7 = 0x00000200
-CS8 = 0x00000300
-CSTOPB = 0x00000400
-CREAD = 0x00000800
-PARENB = 0x00001000
-PARODD = 0x00002000
-HUPCL = 0x00004000
-CLOCAL = 0x00008000
-CCTS_OFLOW = 0x00010000
-CRTS_IFLOW = 0x00020000
-CDTR_IFLOW = 0x00040000
-CDSR_OFLOW = 0x00080000
-CCAR_OFLOW = 0x00100000
-MDMBUF = 0x00100000
-ECHOKE = 0x00000001
-ECHOE = 0x00000002
-ECHOK = 0x00000004
-ECHO = 0x00000008
-ECHONL = 0x00000010
-ECHOPRT = 0x00000020
-ECHOCTL = 0x00000040
-ISIG = 0x00000080
-ICANON = 0x00000100
-ALTWERASE = 0x00000200
-IEXTEN = 0x00000400
-EXTPROC = 0x00000800
-TOSTOP = 0x00400000
-FLUSHO = 0x00800000
-NOKERNINFO = 0x02000000
-PENDIN = 0x20000000
-NOFLSH = 0x80000000
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCSASOFT = 0x10
-B0 = 0
-B50 = 50
-B75 = 75
-B110 = 110
-B134 = 134
-B150 = 150
-B200 = 200
-B300 = 300
-B600 = 600
-B1200 = 1200
-B1800 = 1800
-B2400 = 2400
-B4800 = 4800
-B9600 = 9600
-B19200 = 19200
-B38400 = 38400
-B7200 = 7200
-B14400 = 14400
-B28800 = 28800
-B57600 = 57600
-B76800 = 76800
-B115200 = 115200
-B230400 = 230400
-EXTA = 19200
-EXTB = 38400
-TCIFLUSH = 1
-TCOFLUSH = 2
-TCIOFLUSH = 3
-TCOOFF = 1
-TCOON = 2
-TCIOFF = 3
-TCION = 4
-
-# 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)
-
-
-# Included from sys/ttycom.h
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0x1fff
-def IOCPARM_LEN(x): return (((x) >> 16) & IOCPARM_MASK)
-
-def IOCBASECMD(x): return ((x) & ~(IOCPARM_MASK << 16))
-
-def IOCGROUP(x): return (((x) >> 8) & 0xff)
-
-IOC_VOID = 0x20000000
-IOC_OUT = 0x40000000
-IOC_IN = 0x80000000
-IOC_INOUT = (IOC_IN|IOC_OUT)
-IOC_DIRMASK = 0xe0000000
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_STOP = 0x04
-TIOCPKT_START = 0x08
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-def UIOCCMD(n): return _IO(ord('u'), n)	 
-
-TTYDISC = 0
-TABLDISC = 3
-SLIPDISC = 4
-PPPDISC = 5
-
-# Included from sys/ttydefaults.h
-TTYDEF_IFLAG = (BRKINT	| ICRNL	| IMAXBEL | IXON | IXANY)
-TTYDEF_OFLAG = (OPOST | ONLCR)
-TTYDEF_LFLAG = (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-TTYDEF_CFLAG = (CREAD | CS8 | HUPCL)
-TTYDEF_SPEED = (B9600)
-def CTRL(x): return (x&037)
-
-CEOF = CTRL(ord('d'))
-CEOL = 0xff
-CERASE = 0177
-CINTR = CTRL(ord('c'))
-CSTATUS = CTRL(ord('t'))
-CKILL = CTRL(ord('u'))
-CMIN = 1
-CQUIT = 034
-CSUSP = CTRL(ord('z'))
-CTIME = 0
-CDSUSP = CTRL(ord('y'))
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CLNEXT = CTRL(ord('v'))
-CDISCARD = CTRL(ord('o'))
-CWERASE = CTRL(ord('w'))
-CREPRINT = CTRL(ord('r'))
-CEOT = CEOF
-CBRK = CEOL
-CRPRNT = CREPRINT
-CFLUSH = CDISCARD
diff --git a/Lib/plat-freebsd3/TERMIOS.py b/Lib/plat-freebsd3/TERMIOS.py
deleted file mode 100644
index b0e3d28..0000000
--- a/Lib/plat-freebsd3/TERMIOS.py
+++ /dev/null
@@ -1,198 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-VEOF = 0
-VEOL = 1
-VEOL2 = 2
-VERASE = 3
-VWERASE = 4
-VKILL = 5
-VREPRINT = 6
-VINTR = 8
-VQUIT = 9
-VSUSP = 10
-VDSUSP = 11
-VSTART = 12
-VSTOP = 13
-VLNEXT = 14
-VDISCARD = 15
-VMIN = 16
-VTIME = 17
-VSTATUS = 18
-NCCS = 20
-_POSIX_VDISABLE = 0xff
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IXANY = 0x00000800
-IMAXBEL = 0x00002000
-OPOST = 0x00000001
-ONLCR = 0x00000002
-OXTABS = 0x00000004
-ONOEOT = 0x00000008
-CIGNORE = 0x00000001
-CSIZE = 0x00000300
-CS5 = 0x00000000
-CS6 = 0x00000100
-CS7 = 0x00000200
-CS8 = 0x00000300
-CSTOPB = 0x00000400
-CREAD = 0x00000800
-PARENB = 0x00001000
-PARODD = 0x00002000
-HUPCL = 0x00004000
-CLOCAL = 0x00008000
-CCTS_OFLOW = 0x00010000
-CRTS_IFLOW = 0x00020000
-CDTR_IFLOW = 0x00040000
-CDSR_OFLOW = 0x00080000
-CCAR_OFLOW = 0x00100000
-MDMBUF = 0x00100000
-ECHOKE = 0x00000001
-ECHOE = 0x00000002
-ECHOK = 0x00000004
-ECHO = 0x00000008
-ECHONL = 0x00000010
-ECHOPRT = 0x00000020
-ECHOCTL = 0x00000040
-ISIG = 0x00000080
-ICANON = 0x00000100
-ALTWERASE = 0x00000200
-IEXTEN = 0x00000400
-EXTPROC = 0x00000800
-TOSTOP = 0x00400000
-FLUSHO = 0x00800000
-NOKERNINFO = 0x02000000
-PENDIN = 0x20000000
-NOFLSH = 0x80000000
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCSASOFT = 0x10
-B0 = 0
-B50 = 50
-B75 = 75
-B110 = 110
-B134 = 134
-B150 = 150
-B200 = 200
-B300 = 300
-B600 = 600
-B1200 = 1200
-B1800 = 1800
-B2400 = 2400
-B4800 = 4800
-B9600 = 9600
-B19200 = 19200
-B38400 = 38400
-B7200 = 7200
-B14400 = 14400
-B28800 = 28800
-B57600 = 57600
-B76800 = 76800
-B115200 = 115200
-B230400 = 230400
-EXTA = 19200
-EXTB = 38400
-TCIFLUSH = 1
-TCOFLUSH = 2
-TCIOFLUSH = 3
-TCOOFF = 1
-TCOON = 2
-TCIOFF = 3
-TCION = 4
-
-# 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)
-
-
-# Included from sys/ttycom.h
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0x1fff
-def IOCPARM_LEN(x): return (((x) >> 16) & IOCPARM_MASK)
-
-def IOCBASECMD(x): return ((x) & ~(IOCPARM_MASK << 16))
-
-def IOCGROUP(x): return (((x) >> 8) & 0xff)
-
-IOC_VOID = 0x20000000
-IOC_OUT = 0x40000000
-IOC_IN = 0x80000000
-IOC_INOUT = (IOC_IN|IOC_OUT)
-IOC_DIRMASK = 0xe0000000
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_STOP = 0x04
-TIOCPKT_START = 0x08
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-def UIOCCMD(n): return _IO(ord('u'), n)	 
-
-TTYDISC = 0
-TABLDISC = 3
-SLIPDISC = 4
-PPPDISC = 5
-
-# Included from sys/ttydefaults.h
-TTYDEF_IFLAG = (BRKINT	| ICRNL	| IMAXBEL | IXON | IXANY)
-TTYDEF_OFLAG = (OPOST | ONLCR)
-TTYDEF_LFLAG = (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-TTYDEF_CFLAG = (CREAD | CS8 | HUPCL)
-TTYDEF_SPEED = (B9600)
-def CTRL(x): return (x&037)
-
-CEOF = CTRL(ord('d'))
-CEOL = 0xff
-CERASE = 0177
-CINTR = CTRL(ord('c'))
-CSTATUS = CTRL(ord('t'))
-CKILL = CTRL(ord('u'))
-CMIN = 1
-CQUIT = 034
-CSUSP = CTRL(ord('z'))
-CTIME = 0
-CDSUSP = CTRL(ord('y'))
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CLNEXT = CTRL(ord('v'))
-CDISCARD = CTRL(ord('o'))
-CWERASE = CTRL(ord('w'))
-CREPRINT = CTRL(ord('r'))
-CEOT = CEOF
-CBRK = CEOL
-CRPRNT = CREPRINT
-CFLUSH = CDISCARD
diff --git a/Lib/plat-freebsd4/TERMIOS.py b/Lib/plat-freebsd4/TERMIOS.py
deleted file mode 100644
index 783c617..0000000
--- a/Lib/plat-freebsd4/TERMIOS.py
+++ /dev/null
@@ -1,198 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-VEOF = 0
-VEOL = 1
-VEOL2 = 2
-VERASE = 3
-VWERASE = 4
-VKILL = 5
-VREPRINT = 6
-VINTR = 8
-VQUIT = 9
-VSUSP = 10
-VDSUSP = 11
-VSTART = 12
-VSTOP = 13
-VLNEXT = 14
-VDISCARD = 15
-VMIN = 16
-VTIME = 17
-VSTATUS = 18
-NCCS = 20
-_POSIX_VDISABLE = 0xff
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IXANY = 0x00000800
-IMAXBEL = 0x00002000
-OPOST = 0x00000001
-ONLCR = 0x00000002
-OXTABS = 0x00000004
-ONOEOT = 0x00000008
-CIGNORE = 0x00000001
-CSIZE = 0x00000300
-CS5 = 0x00000000
-CS6 = 0x00000100
-CS7 = 0x00000200
-CS8 = 0x00000300
-CSTOPB = 0x00000400
-CREAD = 0x00000800
-PARENB = 0x00001000
-PARODD = 0x00002000
-HUPCL = 0x00004000
-CLOCAL = 0x00008000
-CCTS_OFLOW = 0x00010000
-CRTS_IFLOW = 0x00020000
-CDTR_IFLOW = 0x00040000
-CDSR_OFLOW = 0x00080000
-CCAR_OFLOW = 0x00100000
-MDMBUF = 0x00100000
-ECHOKE = 0x00000001
-ECHOE = 0x00000002
-ECHOK = 0x00000004
-ECHO = 0x00000008
-ECHONL = 0x00000010
-ECHOPRT = 0x00000020
-ECHOCTL = 0x00000040
-ISIG = 0x00000080
-ICANON = 0x00000100
-ALTWERASE = 0x00000200
-IEXTEN = 0x00000400
-EXTPROC = 0x00000800
-TOSTOP = 0x00400000
-FLUSHO = 0x00800000
-NOKERNINFO = 0x02000000
-PENDIN = 0x20000000
-NOFLSH = 0x80000000
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCSASOFT = 0x10
-B0 = 0
-B50 = 50
-B75 = 75
-B110 = 110
-B134 = 134
-B150 = 150
-B200 = 200
-B300 = 300
-B600 = 600
-B1200 = 1200
-B1800 = 1800
-B2400 = 2400
-B4800 = 4800
-B9600 = 9600
-B19200 = 19200
-B38400 = 38400
-B7200 = 7200
-B14400 = 14400
-B28800 = 28800
-B57600 = 57600
-B76800 = 76800
-B115200 = 115200
-B230400 = 230400
-EXTA = 19200
-EXTB = 38400
-TCIFLUSH = 1
-TCOFLUSH = 2
-TCIOFLUSH = 3
-TCOOFF = 1
-TCOON = 2
-TCIOFF = 3
-TCION = 4
-
-# 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)
-
-
-# Included from sys/ttycom.h
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0x1fff
-def IOCPARM_LEN(x): return (((x) >> 16) & IOCPARM_MASK)
-
-def IOCBASECMD(x): return ((x) & ~(IOCPARM_MASK << 16))
-
-def IOCGROUP(x): return (((x) >> 8) & 0xff)
-
-IOC_VOID = 0x20000000
-IOC_OUT = 0x40000000
-IOC_IN = 0x80000000
-IOC_INOUT = (IOC_IN|IOC_OUT)
-IOC_DIRMASK = 0xe0000000
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_STOP = 0x04
-TIOCPKT_START = 0x08
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-def UIOCCMD(n): return _IO(ord('u'), n)	 
-
-TTYDISC = 0
-SLIPDISC = 4
-PPPDISC = 5
-NETGRAPHDISC = 6
-
-# Included from sys/ttydefaults.h
-TTYDEF_IFLAG = (BRKINT	| ICRNL	| IMAXBEL | IXON | IXANY)
-TTYDEF_OFLAG = (OPOST | ONLCR)
-TTYDEF_LFLAG = (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-TTYDEF_CFLAG = (CREAD | CS8 | HUPCL)
-TTYDEF_SPEED = (B9600)
-def CTRL(x): return (x&037)
-
-CEOF = CTRL(ord('d'))
-CEOL = 0xff
-CERASE = 0177
-CINTR = CTRL(ord('c'))
-CSTATUS = CTRL(ord('t'))
-CKILL = CTRL(ord('u'))
-CMIN = 1
-CQUIT = 034
-CSUSP = CTRL(ord('z'))
-CTIME = 0
-CDSUSP = CTRL(ord('y'))
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CLNEXT = CTRL(ord('v'))
-CDISCARD = CTRL(ord('o'))
-CWERASE = CTRL(ord('w'))
-CREPRINT = CTRL(ord('r'))
-CEOT = CEOF
-CBRK = CEOL
-CRPRNT = CREPRINT
-CFLUSH = CDISCARD
diff --git a/Lib/plat-freebsd5/TERMIOS.py b/Lib/plat-freebsd5/TERMIOS.py
deleted file mode 100644
index 783c617..0000000
--- a/Lib/plat-freebsd5/TERMIOS.py
+++ /dev/null
@@ -1,198 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-VEOF = 0
-VEOL = 1
-VEOL2 = 2
-VERASE = 3
-VWERASE = 4
-VKILL = 5
-VREPRINT = 6
-VINTR = 8
-VQUIT = 9
-VSUSP = 10
-VDSUSP = 11
-VSTART = 12
-VSTOP = 13
-VLNEXT = 14
-VDISCARD = 15
-VMIN = 16
-VTIME = 17
-VSTATUS = 18
-NCCS = 20
-_POSIX_VDISABLE = 0xff
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IXANY = 0x00000800
-IMAXBEL = 0x00002000
-OPOST = 0x00000001
-ONLCR = 0x00000002
-OXTABS = 0x00000004
-ONOEOT = 0x00000008
-CIGNORE = 0x00000001
-CSIZE = 0x00000300
-CS5 = 0x00000000
-CS6 = 0x00000100
-CS7 = 0x00000200
-CS8 = 0x00000300
-CSTOPB = 0x00000400
-CREAD = 0x00000800
-PARENB = 0x00001000
-PARODD = 0x00002000
-HUPCL = 0x00004000
-CLOCAL = 0x00008000
-CCTS_OFLOW = 0x00010000
-CRTS_IFLOW = 0x00020000
-CDTR_IFLOW = 0x00040000
-CDSR_OFLOW = 0x00080000
-CCAR_OFLOW = 0x00100000
-MDMBUF = 0x00100000
-ECHOKE = 0x00000001
-ECHOE = 0x00000002
-ECHOK = 0x00000004
-ECHO = 0x00000008
-ECHONL = 0x00000010
-ECHOPRT = 0x00000020
-ECHOCTL = 0x00000040
-ISIG = 0x00000080
-ICANON = 0x00000100
-ALTWERASE = 0x00000200
-IEXTEN = 0x00000400
-EXTPROC = 0x00000800
-TOSTOP = 0x00400000
-FLUSHO = 0x00800000
-NOKERNINFO = 0x02000000
-PENDIN = 0x20000000
-NOFLSH = 0x80000000
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCSASOFT = 0x10
-B0 = 0
-B50 = 50
-B75 = 75
-B110 = 110
-B134 = 134
-B150 = 150
-B200 = 200
-B300 = 300
-B600 = 600
-B1200 = 1200
-B1800 = 1800
-B2400 = 2400
-B4800 = 4800
-B9600 = 9600
-B19200 = 19200
-B38400 = 38400
-B7200 = 7200
-B14400 = 14400
-B28800 = 28800
-B57600 = 57600
-B76800 = 76800
-B115200 = 115200
-B230400 = 230400
-EXTA = 19200
-EXTB = 38400
-TCIFLUSH = 1
-TCOFLUSH = 2
-TCIOFLUSH = 3
-TCOOFF = 1
-TCOON = 2
-TCIOFF = 3
-TCION = 4
-
-# 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)
-
-
-# Included from sys/ttycom.h
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0x1fff
-def IOCPARM_LEN(x): return (((x) >> 16) & IOCPARM_MASK)
-
-def IOCBASECMD(x): return ((x) & ~(IOCPARM_MASK << 16))
-
-def IOCGROUP(x): return (((x) >> 8) & 0xff)
-
-IOC_VOID = 0x20000000
-IOC_OUT = 0x40000000
-IOC_IN = 0x80000000
-IOC_INOUT = (IOC_IN|IOC_OUT)
-IOC_DIRMASK = 0xe0000000
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_STOP = 0x04
-TIOCPKT_START = 0x08
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-def UIOCCMD(n): return _IO(ord('u'), n)	 
-
-TTYDISC = 0
-SLIPDISC = 4
-PPPDISC = 5
-NETGRAPHDISC = 6
-
-# Included from sys/ttydefaults.h
-TTYDEF_IFLAG = (BRKINT	| ICRNL	| IMAXBEL | IXON | IXANY)
-TTYDEF_OFLAG = (OPOST | ONLCR)
-TTYDEF_LFLAG = (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-TTYDEF_CFLAG = (CREAD | CS8 | HUPCL)
-TTYDEF_SPEED = (B9600)
-def CTRL(x): return (x&037)
-
-CEOF = CTRL(ord('d'))
-CEOL = 0xff
-CERASE = 0177
-CINTR = CTRL(ord('c'))
-CSTATUS = CTRL(ord('t'))
-CKILL = CTRL(ord('u'))
-CMIN = 1
-CQUIT = 034
-CSUSP = CTRL(ord('z'))
-CTIME = 0
-CDSUSP = CTRL(ord('y'))
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CLNEXT = CTRL(ord('v'))
-CDISCARD = CTRL(ord('o'))
-CWERASE = CTRL(ord('w'))
-CREPRINT = CTRL(ord('r'))
-CEOT = CEOF
-CBRK = CEOL
-CRPRNT = CREPRINT
-CFLUSH = CDISCARD
diff --git a/Lib/plat-irix5/TERMIOS.py b/Lib/plat-irix5/TERMIOS.py
deleted file mode 100755
index 2ac7487..0000000
--- a/Lib/plat-irix5/TERMIOS.py
+++ /dev/null
@@ -1,576 +0,0 @@
-# Generated by h2py from /usr/include/sys/termios.h
-
-# Included from sys/ttydev.h
-B0 = 0
-B50 = 0000001
-B75 = 0000002
-B110 = 0000003
-B134 = 0000004
-B150 = 0000005
-B200 = 0000006
-B300 = 0000007
-B600 = 0000010
-B1200 = 0000011
-B1800 = 0000012
-B2400 = 0000013
-B4800 = 0000014
-B9600 = 0000015
-B19200 = 0000016
-EXTA = 0000016
-B38400 = 0000017
-EXTB = 0000017
-
-# Included from sys/types.h
-
-# Included from sgidefs.h
-_MIPS_ISA_MIPS1 = 1
-_MIPS_ISA_MIPS2 = 2
-_MIPS_ISA_MIPS3 = 3
-_MIPS_ISA_MIPS4 = 4
-_MIPS_SIM_ABI32 = 1
-_MIPS_SIM_NABI32 = 2
-_MIPS_SIM_ABI64 = 3
-P_MYID = (-1)
-P_MYHOSTID = (-1)
-
-# 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
-_POSIX_VDISABLE = 0
-def CTRL(c): return ((c)&037)
-
-IBSHIFT = 16
-NCC = 8
-NCCS = 23
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VEOL2 = 6
-VMIN = 4
-VTIME = 5
-VSWTCH = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VDSUSP = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VRPRNT = VREPRINT
-VFLUSHO = VDISCARD
-VCEOF = NCC
-VCEOL = (NCC + 1)
-CNUL = 0
-CDEL = 0377
-CESC = ord('\\')
-CINTR = 0177
-CQUIT = 034
-CERASE = CTRL(ord('H'))
-CKILL = CTRL(ord('U'))
-CEOL = 0
-CEOL2 = 0
-CEOF = CTRL(ord('d'))
-CEOT = CEOF
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CSWTCH = CTRL(ord('z'))
-CNSWTCH = 0
-CSUSP = CSWTCH
-CLNEXT = CTRL(ord('v'))
-CWERASE = CTRL(ord('w'))
-CFLUSHO = CTRL(ord('o'))
-CFLUSH = CFLUSHO
-CRPRNT = CTRL(ord('r'))
-CDSUSP = CTRL(ord('y'))
-CBRK = 0377
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-IBLKMD = 0040000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0
-FF1 = 0100000
-PAGEOUT = 0200000
-WRAP = 0400000
-CBAUD = 000000017
-CSIZE = 000000060
-CS5 = 0
-CS6 = 000000020
-CS7 = 000000040
-CS8 = 000000060
-CSTOPB = 000000100
-CREAD = 000000200
-PARENB = 000000400
-PARODD = 000001000
-HUPCL = 000002000
-CLOCAL = 000004000
-RCV1EN = 000010000
-XMT1EN = 000020000
-LOBLK = 000040000
-XCLUDE = 000100000
-CIBAUD = 003600000
-PAREXT = 004000000
-CNEW_RTSCTS = 010000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-IEXTEN = 0000400
-ITOSTOP = 0100000
-TOSTOP = ITOSTOP
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-DEFECHO = 0010000
-FLUSHO = 0020000
-PENDIN = 0040000
-TIOC = (ord('T')<<8)
-TCGETA = (TIOC|1)
-TCSETA = (TIOC|2)
-TCSETAW = (TIOC|3)
-TCSETAF = (TIOC|4)
-TCSBRK = (TIOC|5)
-TCXONC = (TIOC|6)
-TCFLSH = (TIOC|7)
-
-# Included from sys/ioctl.h
-IOCTYPE = 0xff00
-LIOC = (ord('l')<<8)
-LIOCGETP = (LIOC|1)
-LIOCSETP = (LIOC|2)
-LIOCGETS = (LIOC|5)
-LIOCSETS = (LIOC|6)
-DIOC = (ord('d')<<8)
-DIOCGETC = (DIOC|1)
-DIOCGETB = (DIOC|2)
-DIOCSETE = (DIOC|3)
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0xff
-IOC_VOID = 0x20000000
-IOC_OUT = 0x40000000
-IOC_IN = 0x80000000
-IOC_INOUT = (IOC_IN|IOC_OUT)
-
-# Included from net/soioctl.h
-
-# Included from sys/termio.h
-
-# Included from sys/termios.h
-_POSIX_VDISABLE = 0
-def CTRL(c): return ((c)&037)
-
-IBSHIFT = 16
-NCC = 8
-NCCS = 23
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VEOL2 = 6
-VMIN = 4
-VTIME = 5
-VSWTCH = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VDSUSP = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VRPRNT = VREPRINT
-VFLUSHO = VDISCARD
-VCEOF = NCC
-VCEOL = (NCC + 1)
-CNUL = 0
-CDEL = 0377
-CESC = ord('\\')
-CINTR = 0177
-CQUIT = 034
-CERASE = CTRL(ord('H'))
-CKILL = CTRL(ord('U'))
-CEOL = 0
-CEOL2 = 0
-CEOF = CTRL(ord('d'))
-CEOT = CEOF
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CSWTCH = CTRL(ord('z'))
-CNSWTCH = 0
-CSUSP = CSWTCH
-CLNEXT = CTRL(ord('v'))
-CWERASE = CTRL(ord('w'))
-CFLUSHO = CTRL(ord('o'))
-CFLUSH = CFLUSHO
-CRPRNT = CTRL(ord('r'))
-CDSUSP = CTRL(ord('y'))
-CBRK = 0377
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-IBLKMD = 0040000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0
-FF1 = 0100000
-PAGEOUT = 0200000
-WRAP = 0400000
-CBAUD = 000000017
-CSIZE = 000000060
-CS5 = 0
-CS6 = 000000020
-CS7 = 000000040
-CS8 = 000000060
-CSTOPB = 000000100
-CREAD = 000000200
-PARENB = 000000400
-PARODD = 000001000
-HUPCL = 000002000
-CLOCAL = 000004000
-RCV1EN = 000010000
-XMT1EN = 000020000
-LOBLK = 000040000
-XCLUDE = 000100000
-CIBAUD = 003600000
-PAREXT = 004000000
-CNEW_RTSCTS = 010000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-IEXTEN = 0000400
-ITOSTOP = 0100000
-TOSTOP = ITOSTOP
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-DEFECHO = 0010000
-FLUSHO = 0020000
-PENDIN = 0040000
-TIOC = (ord('T')<<8)
-TCGETA = (TIOC|1)
-TCSETA = (TIOC|2)
-TCSETAW = (TIOC|3)
-TCSETAF = (TIOC|4)
-TCSBRK = (TIOC|5)
-TCXONC = (TIOC|6)
-TCFLSH = (TIOC|7)
-LDISC0 = 0
-LDISC1 = 1
-NTTYDISC = LDISC1
-TIOCFLUSH = (TIOC|12)
-TCSETLABEL = (TIOC|31)
-TCDSET = (TIOC|32)
-TCBLKMD = (TIOC|33)
-TIOCPKT = (TIOC|112)
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-TIOCNOTTY = (TIOC|113)
-TIOCSTI = (TIOC|114)
-TFIOC = (ord('F')<<8)
-oFIONREAD = (TFIOC|127)
-TO_STOP = LOBLK
-IOCTYPE = 0xff00
-TCGETS = (TIOC|13)
-TCSETS = (TIOC|14)
-TCSETSW = (TIOC|15)
-TCSETSF = (TIOC|16)
-TCSANOW = ((ord('T')<<8)|14)
-TCSADRAIN = ((ord('T')<<8)|15)
-TCSAFLUSH = ((ord('T')<<8)|16)
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-tIOC = (ord('t')<<8)
-TIOCGETD = (tIOC|0)
-TIOCSETD = (tIOC|1)
-TIOCHPCL = (tIOC|2)
-TIOCGETP = (tIOC|8)
-TIOCSETP = (tIOC|9)
-TIOCSETN = (tIOC|10)
-TIOCEXCL = (tIOC|13)
-TIOCNXCL = (tIOC|14)
-TIOCSETC = (tIOC|17)
-TIOCGETC = (tIOC|18)
-TIOCLBIS = (tIOC|127)
-TIOCLBIC = (tIOC|126)
-TIOCLSET = (tIOC|125)
-TIOCLGET = (tIOC|124)
-TIOCSBRK = (tIOC|123)
-TIOCCBRK = (tIOC|122)
-TIOCSDTR = (tIOC|121)
-TIOCCDTR = (tIOC|120)
-TIOCSLTC = (tIOC|117)
-TIOCGLTC = (tIOC|116)
-TIOCOUTQ = (tIOC|115)
-TIOCSTOP = (tIOC|111)
-TIOCSTART = (tIOC|110)
-TIOCGSID = (tIOC|22)
-TIOCSSID = (tIOC|24)
-TIOCMSET = (tIOC|26)
-TIOCMBIS = (tIOC|27)
-TIOCMBIC = (tIOC|28)
-TIOCMGET = (tIOC|29)
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCREMOTE = (tIOC|30)
-TIOCSIGNAL = (tIOC|31)
-ISPTM = ((ord('P')<<8)|1)
-UNLKPT = ((ord('P')<<8)|2)
-SVR4SOPEN = ((ord('P')<<8)|100)
-LDIOC = (ord('D')<<8)
-LDOPEN = (LDIOC|0)
-LDCLOSE = (LDIOC|1)
-LDCHG = (LDIOC|2)
-LDGETT = (LDIOC|8)
-LDSETT = (LDIOC|9)
-LDSMAP = (LDIOC|10)
-LDGMAP = (LDIOC|11)
-LDNMAP = (LDIOC|12)
-DIOC = (ord('d')<<8)
-DIOCGETP = (DIOC|8)
-DIOCSETP = (DIOC|9)
-FIORDCHK = ((ord('f')<<8)|3)
-CLNEXT = CTRL(ord('v'))
-CWERASE = CTRL(ord('w'))
-CFLUSHO = CTRL(ord('o'))
-CFLUSH = CFLUSHO
-CRPRNT = CTRL(ord('r'))
-CDSUSP = CTRL(ord('y'))
-SSPEED = B9600
-TERM_NONE = 0
-TERM_TEC = 1
-TERM_V61 = 2
-TERM_V10 = 3
-TERM_TEX = 4
-TERM_D40 = 5
-TERM_H45 = 6
-TERM_D42 = 7
-TM_NONE = 0000
-TM_SNL = 0001
-TM_ANL = 0002
-TM_LCF = 0004
-TM_CECHO = 0010
-TM_CINVIS = 0020
-TM_SET = 0200
-LDISC0 = 0
-LDISC1 = 1
-NTTYDISC = LDISC1
-TIOCFLUSH = (TIOC|12)
-TCSETLABEL = (TIOC|31)
-TCDSET = (TIOC|32)
-TCBLKMD = (TIOC|33)
-TIOCPKT = (TIOC|112)
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-TIOCNOTTY = (TIOC|113)
-TIOCSTI = (TIOC|114)
-TFIOC = (ord('F')<<8)
-oFIONREAD = (TFIOC|127)
-TO_STOP = LOBLK
-IOCTYPE = 0xff00
-TCGETS = (TIOC|13)
-TCSETS = (TIOC|14)
-TCSETSW = (TIOC|15)
-TCSETSF = (TIOC|16)
-TCSANOW = ((ord('T')<<8)|14)
-TCSADRAIN = ((ord('T')<<8)|15)
-TCSAFLUSH = ((ord('T')<<8)|16)
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-tIOC = (ord('t')<<8)
-TIOCGETD = (tIOC|0)
-TIOCSETD = (tIOC|1)
-TIOCHPCL = (tIOC|2)
-TIOCGETP = (tIOC|8)
-TIOCSETP = (tIOC|9)
-TIOCSETN = (tIOC|10)
-TIOCEXCL = (tIOC|13)
-TIOCNXCL = (tIOC|14)
-TIOCSETC = (tIOC|17)
-TIOCGETC = (tIOC|18)
-TIOCLBIS = (tIOC|127)
-TIOCLBIC = (tIOC|126)
-TIOCLSET = (tIOC|125)
-TIOCLGET = (tIOC|124)
-TIOCSBRK = (tIOC|123)
-TIOCCBRK = (tIOC|122)
-TIOCSDTR = (tIOC|121)
-TIOCCDTR = (tIOC|120)
-TIOCSLTC = (tIOC|117)
-TIOCGLTC = (tIOC|116)
-TIOCOUTQ = (tIOC|115)
-TIOCSTOP = (tIOC|111)
-TIOCSTART = (tIOC|110)
-TIOCGSID = (tIOC|22)
-TIOCSSID = (tIOC|24)
-TIOCMSET = (tIOC|26)
-TIOCMBIS = (tIOC|27)
-TIOCMBIC = (tIOC|28)
-TIOCMGET = (tIOC|29)
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCREMOTE = (tIOC|30)
-TIOCSIGNAL = (tIOC|31)
-ISPTM = ((ord('P')<<8)|1)
-UNLKPT = ((ord('P')<<8)|2)
-SVR4SOPEN = ((ord('P')<<8)|100)
-LDIOC = (ord('D')<<8)
-LDOPEN = (LDIOC|0)
-LDCLOSE = (LDIOC|1)
-LDCHG = (LDIOC|2)
-LDGETT = (LDIOC|8)
-LDSETT = (LDIOC|9)
-LDSMAP = (LDIOC|10)
-LDGMAP = (LDIOC|11)
-LDNMAP = (LDIOC|12)
-DIOC = (ord('d')<<8)
-DIOCGETP = (DIOC|8)
-DIOCSETP = (DIOC|9)
-FIORDCHK = ((ord('f')<<8)|3)
diff --git a/Lib/plat-irix6/TERMIOS.py b/Lib/plat-irix6/TERMIOS.py
deleted file mode 100644
index fa4a475..0000000
--- a/Lib/plat-irix6/TERMIOS.py
+++ /dev/null
@@ -1,676 +0,0 @@
-# Generated by h2py from /usr/include/sys/termios.h
-
-# Included from standards.h
-
-# Included from sys/ttydev.h
-__NEW_INVALID_BAUD = 1800
-__OLD_B0 = 0
-__OLD_B50 = 0000001
-__OLD_B75 = 0000002
-__OLD_B110 = 0000003
-__OLD_B134 = 0000004
-__OLD_B150 = 0000005
-__OLD_B200 = 0000006
-__OLD_B300 = 0000007
-__OLD_B600 = 0000010
-__OLD_B1200 = 0000011
-__OLD_B1800 = 0000012
-__OLD_B2400 = 0000013
-__OLD_B4800 = 0000014
-__OLD_B9600 = 0000015
-__OLD_B19200 = 0000016
-__OLD_EXTA = 0000016
-__OLD_B38400 = 0000017
-__OLD_EXTB = 0000017
-__OLD_INVALID_BAUD = __OLD_B1800
-B0 = 0
-B50 = 50
-B75 = 75
-B110 = 110
-B134 = 134
-B150 = 150
-B200 = 200
-B300 = 300
-B600 = 600
-B1200 = 1200
-B1800 = 1800
-B2400 = 2400
-B4800 = 4800
-B9600 = 9600
-B19200 = 19200
-EXTA = 19200
-B38400 = 38400
-EXTB = 38400
-B57600 = 57600
-B76800 = 76800
-B115200 = 115200
-__INVALID_BAUD = 1800
-B0 = __OLD_B0
-B50 = __OLD_B50
-B75 = __OLD_B75
-B110 = __OLD_B110
-B134 = __OLD_B134
-B150 = __OLD_B150
-B200 = __OLD_B200
-B300 = __OLD_B300
-B600 = __OLD_B600
-B1200 = __OLD_B1200
-B1800 = __OLD_B1800
-B2400 = __OLD_B2400
-B4800 = __OLD_B4800
-B9600 = __OLD_B9600
-B19200 = __OLD_B19200
-EXTA = __OLD_B19200
-B38400 = __OLD_B38400
-EXTB = __OLD_B38400
-__INVALID_BAUD = __OLD_INVALID_BAUD
-
-# Included from sys/types.h
-
-# Included from sgidefs.h
-_MIPS_ISA_MIPS1 = 1
-_MIPS_ISA_MIPS2 = 2
-_MIPS_ISA_MIPS3 = 3
-_MIPS_ISA_MIPS4 = 4
-_MIPS_SIM_ABI32 = 1
-_MIPS_SIM_NABI32 = 2
-_MIPS_SIM_ABI64 = 3
-P_MYID = (-1)
-P_MYHOSTID = (-1)
-
-# 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
-
-# Included from string.h
-NULL = 0L
-NBBY = 8
-_POSIX_VDISABLE = 0
-def CTRL(c): return ((c)&037)
-
-IBSHIFT = 16
-NCC = 8
-NCCS = 23
-__NEW_MAX_BAUD = 500000
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VEOL2 = 6
-VMIN = 4
-VTIME = 5
-VSWTCH = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VDSUSP = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VRPRNT = VREPRINT
-VFLUSHO = VDISCARD
-VCEOF = NCC
-VCEOL = (NCC + 1)
-CNUL = 0
-CDEL = 0377
-CESC = ord('\\')
-CINTR = 0177
-CQUIT = 034
-CERASE = CTRL(ord('H'))
-CKILL = CTRL(ord('U'))
-CEOL = 0
-CEOL2 = 0
-CEOF = CTRL(ord('d'))
-CEOT = CEOF
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CSWTCH = CTRL(ord('z'))
-CNSWTCH = 0
-CSUSP = CSWTCH
-CLNEXT = CTRL(ord('v'))
-CWERASE = CTRL(ord('w'))
-CFLUSHO = CTRL(ord('o'))
-CFLUSH = CFLUSHO
-CRPRNT = CTRL(ord('r'))
-CDSUSP = CTRL(ord('y'))
-CBRK = 0377
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-IBLKMD = 0040000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0
-FF1 = 0100000
-PAGEOUT = 0200000
-WRAP = 0400000
-CBAUD = 000000017
-CSIZE = 000000060
-CS5 = 0
-CS6 = 000000020
-CS7 = 000000040
-CS8 = 000000060
-CSTOPB = 000000100
-CREAD = 000000200
-PARENB = 000000400
-PARODD = 000001000
-HUPCL = 000002000
-CLOCAL = 000004000
-RCV1EN = 000010000
-XMT1EN = 000020000
-LOBLK = 000040000
-XCLUDE = 000100000
-CIBAUD = 003600000
-PAREXT = 004000000
-CNEW_RTSCTS = 010000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-IEXTEN = 0000400
-ITOSTOP = 0100000
-TOSTOP = ITOSTOP
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-DEFECHO = 0010000
-FLUSHO = 0020000
-PENDIN = 0040000
-TIOC = (ord('T')<<8)
-__NEW_TCGETA = (TIOC|201)
-__NEW_TCSETA = (TIOC|202)
-__NEW_TCSETAW = (TIOC|203)
-__NEW_TCSETAF = (TIOC|204)
-__OLD_TCGETA = (TIOC|1)
-__OLD_TCSETA = (TIOC|2)
-__OLD_TCSETAW = (TIOC|3)
-__OLD_TCSETAF = (TIOC|4)
-TCGETA = __NEW_TCGETA
-TCSETA = __NEW_TCSETA
-TCSETAW = __NEW_TCSETAW
-TCSETAF = __NEW_TCSETAF
-TCGETA = __OLD_TCGETA
-TCSETA = __OLD_TCSETA
-TCSETAW = __OLD_TCSETAW
-TCSETAF = __OLD_TCSETAF
-TCSBRK = (TIOC|5)
-TCXONC = (TIOC|6)
-TCFLSH = (TIOC|7)
-
-# Included from sys/ioctl.h
-IOCTYPE = 0xff00
-LIOC = (ord('l')<<8)
-LIOCGETP = (LIOC|1)
-LIOCSETP = (LIOC|2)
-LIOCGETS = (LIOC|5)
-LIOCSETS = (LIOC|6)
-DIOC = (ord('d')<<8)
-DIOCGETC = (DIOC|1)
-DIOCGETB = (DIOC|2)
-DIOCSETE = (DIOC|3)
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0xff
-IOC_VOID = 0x20000000
-IOC_OUT = 0x40000000
-IOC_IN = 0x80000000
-IOC_INOUT = (IOC_IN|IOC_OUT)
-
-# Included from net/soioctl.h
-
-# Included from sys/termio.h
-
-# Included from sys/termios.h
-_POSIX_VDISABLE = 0
-def CTRL(c): return ((c)&037)
-
-IBSHIFT = 16
-NCC = 8
-NCCS = 23
-__NEW_MAX_BAUD = 500000
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VEOL2 = 6
-VMIN = 4
-VTIME = 5
-VSWTCH = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VDSUSP = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VRPRNT = VREPRINT
-VFLUSHO = VDISCARD
-VCEOF = NCC
-VCEOL = (NCC + 1)
-CNUL = 0
-CDEL = 0377
-CESC = ord('\\')
-CINTR = 0177
-CQUIT = 034
-CERASE = CTRL(ord('H'))
-CKILL = CTRL(ord('U'))
-CEOL = 0
-CEOL2 = 0
-CEOF = CTRL(ord('d'))
-CEOT = CEOF
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CSWTCH = CTRL(ord('z'))
-CNSWTCH = 0
-CSUSP = CSWTCH
-CLNEXT = CTRL(ord('v'))
-CWERASE = CTRL(ord('w'))
-CFLUSHO = CTRL(ord('o'))
-CFLUSH = CFLUSHO
-CRPRNT = CTRL(ord('r'))
-CDSUSP = CTRL(ord('y'))
-CBRK = 0377
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-IBLKMD = 0040000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0
-FF1 = 0100000
-PAGEOUT = 0200000
-WRAP = 0400000
-CBAUD = 000000017
-CSIZE = 000000060
-CS5 = 0
-CS6 = 000000020
-CS7 = 000000040
-CS8 = 000000060
-CSTOPB = 000000100
-CREAD = 000000200
-PARENB = 000000400
-PARODD = 000001000
-HUPCL = 000002000
-CLOCAL = 000004000
-RCV1EN = 000010000
-XMT1EN = 000020000
-LOBLK = 000040000
-XCLUDE = 000100000
-CIBAUD = 003600000
-PAREXT = 004000000
-CNEW_RTSCTS = 010000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-IEXTEN = 0000400
-ITOSTOP = 0100000
-TOSTOP = ITOSTOP
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-DEFECHO = 0010000
-FLUSHO = 0020000
-PENDIN = 0040000
-TIOC = (ord('T')<<8)
-__NEW_TCGETA = (TIOC|201)
-__NEW_TCSETA = (TIOC|202)
-__NEW_TCSETAW = (TIOC|203)
-__NEW_TCSETAF = (TIOC|204)
-__OLD_TCGETA = (TIOC|1)
-__OLD_TCSETA = (TIOC|2)
-__OLD_TCSETAW = (TIOC|3)
-__OLD_TCSETAF = (TIOC|4)
-TCGETA = __NEW_TCGETA
-TCSETA = __NEW_TCSETA
-TCSETAW = __NEW_TCSETAW
-TCSETAF = __NEW_TCSETAF
-TCGETA = __OLD_TCGETA
-TCSETA = __OLD_TCSETA
-TCSETAW = __OLD_TCSETAW
-TCSETAF = __OLD_TCSETAF
-TCSBRK = (TIOC|5)
-TCXONC = (TIOC|6)
-TCFLSH = (TIOC|7)
-LDISC0 = 0
-LDISC1 = 1
-NTTYDISC = LDISC1
-TIOCFLUSH = (TIOC|12)
-TCSETLABEL = (TIOC|31)
-TCDSET = (TIOC|32)
-TCBLKMD = (TIOC|33)
-TIOCPKT = (TIOC|112)
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-TIOCNOTTY = (TIOC|113)
-TIOCSTI = (TIOC|114)
-TFIOC = (ord('F')<<8)
-oFIONREAD = (TFIOC|127)
-TO_STOP = LOBLK
-IOCTYPE = 0xff00
-__NEW_TCGETS = (TIOC|213)
-__NEW_TCSETS = (TIOC|214)
-__NEW_TCSETSW = (TIOC|215)
-__NEW_TCSETSF = (TIOC|216)
-__OLD_TCGETS = (TIOC|13)
-__OLD_TCSETS = (TIOC|14)
-__OLD_TCSETSW = (TIOC|15)
-__OLD_TCSETSF = (TIOC|16)
-TCGETS = __NEW_TCGETS
-TCSETS = __NEW_TCSETS
-TCSETSW = __NEW_TCSETSW
-TCSETSF = __NEW_TCSETSF
-TCGETS = __OLD_TCGETS
-TCSETS = __OLD_TCSETS
-TCSETSW = __OLD_TCSETSW
-TCSETSF = __OLD_TCSETSF
-TCSANOW = ((ord('T')<<8)|14)
-TCSADRAIN = ((ord('T')<<8)|15)
-TCSAFLUSH = ((ord('T')<<8)|16)
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-tIOC = (ord('t')<<8)
-TIOCGETD = (tIOC|0)
-TIOCSETD = (tIOC|1)
-TIOCHPCL = (tIOC|2)
-TIOCGETP = (tIOC|8)
-TIOCSETP = (tIOC|9)
-TIOCSETN = (tIOC|10)
-TIOCEXCL = (tIOC|13)
-TIOCNXCL = (tIOC|14)
-TIOCSETC = (tIOC|17)
-TIOCGETC = (tIOC|18)
-TIOCLBIS = (tIOC|127)
-TIOCLBIC = (tIOC|126)
-TIOCLSET = (tIOC|125)
-TIOCLGET = (tIOC|124)
-TIOCSBRK = (tIOC|123)
-TIOCCBRK = (tIOC|122)
-TIOCSDTR = (tIOC|121)
-TIOCCDTR = (tIOC|120)
-TIOCSLTC = (tIOC|117)
-TIOCGLTC = (tIOC|116)
-TIOCOUTQ = (tIOC|115)
-TIOCSTOP = (tIOC|111)
-TIOCSTART = (tIOC|110)
-TIOCGSID = (tIOC|22)
-TIOCSSID = (tIOC|24)
-TIOCMSET = (tIOC|26)
-TIOCMBIS = (tIOC|27)
-TIOCMBIC = (tIOC|28)
-TIOCMGET = (tIOC|29)
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCREMOTE = (tIOC|30)
-TIOCSIGNAL = (tIOC|31)
-ISPTM = ((ord('P')<<8)|1)
-UNLKPT = ((ord('P')<<8)|2)
-SVR4SOPEN = ((ord('P')<<8)|100)
-LDIOC = (ord('D')<<8)
-LDOPEN = (LDIOC|0)
-LDCLOSE = (LDIOC|1)
-LDCHG = (LDIOC|2)
-LDGETT = (LDIOC|8)
-LDSETT = (LDIOC|9)
-LDSMAP = (LDIOC|10)
-LDGMAP = (LDIOC|11)
-LDNMAP = (LDIOC|12)
-DIOC = (ord('d')<<8)
-DIOCGETP = (DIOC|8)
-DIOCSETP = (DIOC|9)
-FIORDCHK = ((ord('f')<<8)|3)
-CLNEXT = CTRL(ord('v'))
-CWERASE = CTRL(ord('w'))
-CFLUSHO = CTRL(ord('o'))
-CFLUSH = CFLUSHO
-CRPRNT = CTRL(ord('r'))
-CDSUSP = CTRL(ord('y'))
-__OLD_SSPEED = __OLD_B9600
-SSPEED = B9600
-TERM_NONE = 0
-TERM_TEC = 1
-TERM_V61 = 2
-TERM_V10 = 3
-TERM_TEX = 4
-TERM_D40 = 5
-TERM_H45 = 6
-TERM_D42 = 7
-TM_NONE = 0000
-TM_SNL = 0001
-TM_ANL = 0002
-TM_LCF = 0004
-TM_CECHO = 0010
-TM_CINVIS = 0020
-TM_SET = 0200
-LDISC0 = 0
-LDISC1 = 1
-NTTYDISC = LDISC1
-TIOCFLUSH = (TIOC|12)
-TCSETLABEL = (TIOC|31)
-TCDSET = (TIOC|32)
-TCBLKMD = (TIOC|33)
-TIOCPKT = (TIOC|112)
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-TIOCNOTTY = (TIOC|113)
-TIOCSTI = (TIOC|114)
-TFIOC = (ord('F')<<8)
-oFIONREAD = (TFIOC|127)
-TO_STOP = LOBLK
-IOCTYPE = 0xff00
-__NEW_TCGETS = (TIOC|213)
-__NEW_TCSETS = (TIOC|214)
-__NEW_TCSETSW = (TIOC|215)
-__NEW_TCSETSF = (TIOC|216)
-__OLD_TCGETS = (TIOC|13)
-__OLD_TCSETS = (TIOC|14)
-__OLD_TCSETSW = (TIOC|15)
-__OLD_TCSETSF = (TIOC|16)
-TCGETS = __NEW_TCGETS
-TCSETS = __NEW_TCSETS
-TCSETSW = __NEW_TCSETSW
-TCSETSF = __NEW_TCSETSF
-TCGETS = __OLD_TCGETS
-TCSETS = __OLD_TCSETS
-TCSETSW = __OLD_TCSETSW
-TCSETSF = __OLD_TCSETSF
-TCSANOW = ((ord('T')<<8)|14)
-TCSADRAIN = ((ord('T')<<8)|15)
-TCSAFLUSH = ((ord('T')<<8)|16)
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-tIOC = (ord('t')<<8)
-TIOCGETD = (tIOC|0)
-TIOCSETD = (tIOC|1)
-TIOCHPCL = (tIOC|2)
-TIOCGETP = (tIOC|8)
-TIOCSETP = (tIOC|9)
-TIOCSETN = (tIOC|10)
-TIOCEXCL = (tIOC|13)
-TIOCNXCL = (tIOC|14)
-TIOCSETC = (tIOC|17)
-TIOCGETC = (tIOC|18)
-TIOCLBIS = (tIOC|127)
-TIOCLBIC = (tIOC|126)
-TIOCLSET = (tIOC|125)
-TIOCLGET = (tIOC|124)
-TIOCSBRK = (tIOC|123)
-TIOCCBRK = (tIOC|122)
-TIOCSDTR = (tIOC|121)
-TIOCCDTR = (tIOC|120)
-TIOCSLTC = (tIOC|117)
-TIOCGLTC = (tIOC|116)
-TIOCOUTQ = (tIOC|115)
-TIOCSTOP = (tIOC|111)
-TIOCSTART = (tIOC|110)
-TIOCGSID = (tIOC|22)
-TIOCSSID = (tIOC|24)
-TIOCMSET = (tIOC|26)
-TIOCMBIS = (tIOC|27)
-TIOCMBIC = (tIOC|28)
-TIOCMGET = (tIOC|29)
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCREMOTE = (tIOC|30)
-TIOCSIGNAL = (tIOC|31)
-ISPTM = ((ord('P')<<8)|1)
-UNLKPT = ((ord('P')<<8)|2)
-SVR4SOPEN = ((ord('P')<<8)|100)
-LDIOC = (ord('D')<<8)
-LDOPEN = (LDIOC|0)
-LDCLOSE = (LDIOC|1)
-LDCHG = (LDIOC|2)
-LDGETT = (LDIOC|8)
-LDSETT = (LDIOC|9)
-LDSMAP = (LDIOC|10)
-LDGMAP = (LDIOC|11)
-LDNMAP = (LDIOC|12)
-DIOC = (ord('d')<<8)
-DIOCGETP = (DIOC|8)
-DIOCSETP = (DIOC|9)
-FIORDCHK = ((ord('f')<<8)|3)
diff --git a/Lib/plat-linux1/TERMIOS.py b/Lib/plat-linux1/TERMIOS.py
deleted file mode 100755
index 4b17df6..0000000
--- a/Lib/plat-linux1/TERMIOS.py
+++ /dev/null
@@ -1,270 +0,0 @@
-# Generated by h2py from /usr/include/termios.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 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 linux/termios.h
-
-# Included from asm/termios.h
-TCGETS = 0x5401
-TCSETS = 0x5402
-TCSETSW = 0x5403
-TCSETSF = 0x5404
-TCGETA = 0x5405
-TCSETA = 0x5406
-TCSETAW = 0x5407
-TCSETAF = 0x5408
-TCSBRK = 0x5409
-TCXONC = 0x540A
-TCFLSH = 0x540B
-TIOCEXCL = 0x540C
-TIOCNXCL = 0x540D
-TIOCSCTTY = 0x540E
-TIOCGPGRP = 0x540F
-TIOCSPGRP = 0x5410
-TIOCOUTQ = 0x5411
-TIOCSTI = 0x5412
-TIOCGWINSZ = 0x5413
-TIOCSWINSZ = 0x5414
-TIOCMGET = 0x5415
-TIOCMBIS = 0x5416
-TIOCMBIC = 0x5417
-TIOCMSET = 0x5418
-TIOCGSOFTCAR = 0x5419
-TIOCSSOFTCAR = 0x541A
-FIONREAD = 0x541B
-TIOCINQ = FIONREAD
-TIOCLINUX = 0x541C
-TIOCCONS = 0x541D
-TIOCGSERIAL = 0x541E
-TIOCSSERIAL = 0x541F
-TIOCPKT = 0x5420
-FIONBIO = 0x5421
-TIOCNOTTY = 0x5422
-TIOCSETD = 0x5423
-TIOCGETD = 0x5424
-TCSBRKP = 0x5425
-TIOCTTYGSTRUCT = 0x5426
-FIONCLEX = 0x5450
-FIOCLEX = 0x5451
-FIOASYNC = 0x5452
-TIOCSERCONFIG = 0x5453
-TIOCSERGWILD = 0x5454
-TIOCSERSWILD = 0x5455
-TIOCGLCKTRMIOS = 0x5456
-TIOCSLCKTRMIOS = 0x5457
-TIOCSERGSTRUCT = 0x5458
-TIOCSERGETLSR = 0x5459
-TIOCSERGETMULTI = 0x545A
-TIOCSERSETMULTI = 0x545B
-TIOCPKT_DATA = 0
-TIOCPKT_FLUSHREAD = 1
-TIOCPKT_FLUSHWRITE = 2
-TIOCPKT_STOP = 4
-TIOCPKT_START = 8
-TIOCPKT_NOSTOP = 16
-TIOCPKT_DOSTOP = 32
-NCC = 8
-NCCS = 19
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VTIME = 5
-VMIN = 6
-VSWTC = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VEOL = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VEOL2 = 16
-INIT_C_CC = "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0000000
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0000000
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0000000
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0000000
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0000000
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0000000
-FF1 = 0100000
-CBAUD = 0010017
-B0 = 0000000
-B50 = 0000001
-B75 = 0000002
-B110 = 0000003
-B134 = 0000004
-B150 = 0000005
-B200 = 0000006
-B300 = 0000007
-B600 = 0000010
-B1200 = 0000011
-B1800 = 0000012
-B2400 = 0000013
-B4800 = 0000014
-B9600 = 0000015
-B19200 = 0000016
-B38400 = 0000017
-EXTA = B19200
-EXTB = B38400
-CSIZE = 0000060
-CS5 = 0000000
-CS6 = 0000020
-CS7 = 0000040
-CS8 = 0000060
-CSTOPB = 0000100
-CREAD = 0000200
-PARENB = 0000400
-PARODD = 0001000
-HUPCL = 0002000
-CLOCAL = 0004000
-CBAUDEX = 0010000
-B57600 = 0010001
-B115200 = 0010002
-B230400 = 0010003
-CIBAUD = 002003600000
-CRTSCTS = 020000000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-TOSTOP = 0000400
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-FLUSHO = 0010000
-PENDIN = 0040000
-IEXTEN = 0100000
-TIOCM_LE = 0x001
-TIOCM_DTR = 0x002
-TIOCM_RTS = 0x004
-TIOCM_ST = 0x008
-TIOCM_SR = 0x010
-TIOCM_CTS = 0x020
-TIOCM_CAR = 0x040
-TIOCM_RNG = 0x080
-TIOCM_DSR = 0x100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RI = TIOCM_RNG
-TIOCSER_TEMT = 0x01
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-N_TTY = 0
-N_SLIP = 1
-N_MOUSE = 2
-N_PPP = 3
-def CTRL(ch): return ((ch)&0x1F)
-
-IBSHIFT = 16
-CNUL = 0
-CDEL = 0177
-CESC = ord('\\')
-CINTR = 0177
-CQUIT = 034
-CERASE = ord('#')
-CKILL = ord('@')
-CEOT = 04
-CEOL = 0
-CEOL2 = 0
-CEOF = 4
-CSTART = 021
-CSTOP = 023
-CSWTCH = 032
-NSWTCH = 0
-CSUSP = CTRL(ord('Z'))
-CDSUSP = CTRL(ord('Y'))
-CRPRNT = CTRL(ord('R'))
-CFLUSH = CTRL(ord('O'))
-CWERASE = CTRL(ord('W'))
-CLNEXT = CTRL(ord('V'))
diff --git a/Lib/plat-linux2/TERMIOS.py b/Lib/plat-linux2/TERMIOS.py
deleted file mode 100644
index 14bb226..0000000
--- a/Lib/plat-linux2/TERMIOS.py
+++ /dev/null
@@ -1,316 +0,0 @@
-# Generated by h2py from /usr/include/termios.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 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 linux/termios.h
-
-# Included from asm/termios.h
-
-# Included from asm/termbits.h
-NCCS = 19
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VTIME = 5
-VMIN = 6
-VSWTC = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VEOL = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VEOL2 = 16
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0000000
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0000000
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0000000
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0000000
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0000000
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0000000
-FF1 = 0100000
-CBAUD = 0010017
-B0 = 0000000
-B50 = 0000001
-B75 = 0000002
-B110 = 0000003
-B134 = 0000004
-B150 = 0000005
-B200 = 0000006
-B300 = 0000007
-B600 = 0000010
-B1200 = 0000011
-B1800 = 0000012
-B2400 = 0000013
-B4800 = 0000014
-B9600 = 0000015
-B19200 = 0000016
-B38400 = 0000017
-EXTA = B19200
-EXTB = B38400
-CSIZE = 0000060
-CS5 = 0000000
-CS6 = 0000020
-CS7 = 0000040
-CS8 = 0000060
-CSTOPB = 0000100
-CREAD = 0000200
-PARENB = 0000400
-PARODD = 0001000
-HUPCL = 0002000
-CLOCAL = 0004000
-CBAUDEX = 0010000
-B57600 = 0010001
-B115200 = 0010002
-B230400 = 0010003
-B460800 = 0010004
-CIBAUD = 002003600000
-CRTSCTS = 020000000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-TOSTOP = 0000400
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-FLUSHO = 0010000
-PENDIN = 0040000
-IEXTEN = 0100000
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-
-# Included from asm/ioctls.h
-
-# Included from asm/ioctl.h
-_IOC_NRBITS = 8
-_IOC_TYPEBITS = 8
-_IOC_SIZEBITS = 14
-_IOC_DIRBITS = 2
-_IOC_NRMASK = ((1 << _IOC_NRBITS)-1)
-_IOC_TYPEMASK = ((1 << _IOC_TYPEBITS)-1)
-_IOC_SIZEMASK = ((1 << _IOC_SIZEBITS)-1)
-_IOC_DIRMASK = ((1 << _IOC_DIRBITS)-1)
-_IOC_NRSHIFT = 0
-_IOC_TYPESHIFT = (_IOC_NRSHIFT+_IOC_NRBITS)
-_IOC_SIZESHIFT = (_IOC_TYPESHIFT+_IOC_TYPEBITS)
-_IOC_DIRSHIFT = (_IOC_SIZESHIFT+_IOC_SIZEBITS)
-def _IOC_DIR(nr): return (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK)
-
-def _IOC_TYPE(nr): return (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
-
-def _IOC_NR(nr): return (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
-
-def _IOC_SIZE(nr): return (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
-
-IOCSIZE_MASK = (_IOC_SIZEMASK << _IOC_SIZESHIFT)
-IOCSIZE_SHIFT = (_IOC_SIZESHIFT)
-TCGETS = 0x5401
-TCSETS = 0x5402
-TCSETSW = 0x5403
-TCSETSF = 0x5404
-TCGETA = 0x5405
-TCSETA = 0x5406
-TCSETAW = 0x5407
-TCSETAF = 0x5408
-TCSBRK = 0x5409
-TCXONC = 0x540A
-TCFLSH = 0x540B
-TIOCEXCL = 0x540C
-TIOCNXCL = 0x540D
-TIOCSCTTY = 0x540E
-TIOCGPGRP = 0x540F
-TIOCSPGRP = 0x5410
-TIOCOUTQ = 0x5411
-TIOCSTI = 0x5412
-TIOCGWINSZ = 0x5413
-TIOCSWINSZ = 0x5414
-TIOCMGET = 0x5415
-TIOCMBIS = 0x5416
-TIOCMBIC = 0x5417
-TIOCMSET = 0x5418
-TIOCGSOFTCAR = 0x5419
-TIOCSSOFTCAR = 0x541A
-FIONREAD = 0x541B
-TIOCINQ = FIONREAD
-TIOCLINUX = 0x541C
-TIOCCONS = 0x541D
-TIOCGSERIAL = 0x541E
-TIOCSSERIAL = 0x541F
-TIOCPKT = 0x5420
-FIONBIO = 0x5421
-TIOCNOTTY = 0x5422
-TIOCSETD = 0x5423
-TIOCGETD = 0x5424
-TCSBRKP = 0x5425
-TIOCTTYGSTRUCT = 0x5426
-FIONCLEX = 0x5450
-FIOCLEX = 0x5451
-FIOASYNC = 0x5452
-TIOCSERCONFIG = 0x5453
-TIOCSERGWILD = 0x5454
-TIOCSERSWILD = 0x5455
-TIOCGLCKTRMIOS = 0x5456
-TIOCSLCKTRMIOS = 0x5457
-TIOCSERGSTRUCT = 0x5458
-TIOCSERGETLSR = 0x5459
-TIOCSERGETMULTI = 0x545A
-TIOCSERSETMULTI = 0x545B
-TIOCMIWAIT = 0x545C
-TIOCGICOUNT = 0x545D
-TIOCPKT_DATA = 0
-TIOCPKT_FLUSHREAD = 1
-TIOCPKT_FLUSHWRITE = 2
-TIOCPKT_STOP = 4
-TIOCPKT_START = 8
-TIOCPKT_NOSTOP = 16
-TIOCPKT_DOSTOP = 32
-TIOCSER_TEMT = 0x01
-NCC = 8
-INIT_C_CC = "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
-TIOCM_LE = 0x001
-TIOCM_DTR = 0x002
-TIOCM_RTS = 0x004
-TIOCM_ST = 0x008
-TIOCM_SR = 0x010
-TIOCM_CTS = 0x020
-TIOCM_CAR = 0x040
-TIOCM_RNG = 0x080
-TIOCM_DSR = 0x100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RI = TIOCM_RNG
-N_TTY = 0
-N_SLIP = 1
-N_MOUSE = 2
-N_PPP = 3
-N_STRIP = 4
-
-# Included from linux/string.h
-
-# Included from asm/string.h
-def COMMON(x): return \
-
-def COMMON(x): return \
-
-def CTRL(ch): return ((ch)&0x1F)
-
-IBSHIFT = 16
-CNUL = 0
-CDEL = 0177
-CESC = ord('\\')
-CINTR = 0177
-CQUIT = 034
-CERASE = ord('#')
-CKILL = ord('@')
-CEOT = 04
-CEOL = 0
-CEOL2 = 0
-CEOF = 4
-CSTART = 021
-CSTOP = 023
-CSWTCH = 032
-NSWTCH = 0
-CSUSP = CTRL(ord('Z'))
-CDSUSP = CTRL(ord('Y'))
-CRPRNT = CTRL(ord('R'))
-CFLUSH = CTRL(ord('O'))
-CWERASE = CTRL(ord('W'))
-CLNEXT = CTRL(ord('V'))
diff --git a/Lib/plat-netbsd1/TERMIOS.py b/Lib/plat-netbsd1/TERMIOS.py
deleted file mode 100644
index 7ef6ea7..0000000
--- a/Lib/plat-netbsd1/TERMIOS.py
+++ /dev/null
@@ -1,191 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-VEOF = 0
-VEOL = 1
-VEOL2 = 2
-VERASE = 3
-VWERASE = 4
-VKILL = 5
-VREPRINT = 6
-VINTR = 8
-VQUIT = 9
-VSUSP = 10
-VDSUSP = 11
-VSTART = 12
-VSTOP = 13
-VLNEXT = 14
-VDISCARD = 15
-VMIN = 16
-VTIME = 17
-VSTATUS = 18
-NCCS = 20
-IGNBRK = 0x00000001
-BRKINT = 0x00000002
-IGNPAR = 0x00000004
-PARMRK = 0x00000008
-INPCK = 0x00000010
-ISTRIP = 0x00000020
-INLCR = 0x00000040
-IGNCR = 0x00000080
-ICRNL = 0x00000100
-IXON = 0x00000200
-IXOFF = 0x00000400
-IXANY = 0x00000800
-IMAXBEL = 0x00002000
-OPOST = 0x00000001
-ONLCR = 0x00000002
-OXTABS = 0x00000004
-ONOEOT = 0x00000008
-CIGNORE = 0x00000001
-CSIZE = 0x00000300
-CS5 = 0x00000000
-CS6 = 0x00000100
-CS7 = 0x00000200
-CS8 = 0x00000300
-CSTOPB = 0x00000400
-CREAD = 0x00000800
-PARENB = 0x00001000
-PARODD = 0x00002000
-HUPCL = 0x00004000
-CLOCAL = 0x00008000
-CRTSCTS = 0x00010000
-CRTS_IFLOW = CRTSCTS
-CCTS_OFLOW = CRTSCTS
-MDMBUF = 0x00100000
-CHWFLOW = (MDMBUF|CRTSCTS)
-ECHOKE = 0x00000001
-ECHOE = 0x00000002
-ECHOK = 0x00000004
-ECHO = 0x00000008
-ECHONL = 0x00000010
-ECHOPRT = 0x00000020
-ECHOCTL = 0x00000040
-ISIG = 0x00000080
-ICANON = 0x00000100
-ALTWERASE = 0x00000200
-IEXTEN = 0x00000400
-EXTPROC = 0x00000800
-TOSTOP = 0x00400000
-FLUSHO = 0x00800000
-NOKERNINFO = 0x02000000
-PENDIN = 0x20000000
-NOFLSH = 0x80000000
-TCSANOW = 0
-TCSADRAIN = 1
-TCSAFLUSH = 2
-TCSASOFT = 0x10
-B0 = 0
-B50 = 50
-B75 = 75
-B110 = 110
-B134 = 134
-B150 = 150
-B200 = 200
-B300 = 300
-B600 = 600
-B1200 = 1200
-B1800 = 1800
-B2400 = 2400
-B4800 = 4800
-B9600 = 9600
-B19200 = 19200
-B38400 = 38400
-B7200 = 7200
-B14400 = 14400
-B28800 = 28800
-B57600 = 57600
-B76800 = 76800
-B115200 = 115200
-B230400 = 230400
-EXTA = 19200
-EXTB = 38400
-TCIFLUSH = 1
-TCOFLUSH = 2
-TCIOFLUSH = 3
-TCOOFF = 1
-TCOON = 2
-TCIOFF = 3
-TCION = 4
-
-# 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)
-
-
-# Included from sys/ttycom.h
-
-# Included from sys/ioccom.h
-IOCPARM_MASK = 0x1fff
-def IOCPARM_LEN(x): return (((x) >> 16) & IOCPARM_MASK)
-
-def IOCBASECMD(x): return ((x) & ~(IOCPARM_MASK << 16))
-
-def IOCGROUP(x): return (((x) >> 8) & 0xff)
-
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCPKT_DATA = 0x00
-TIOCPKT_FLUSHREAD = 0x01
-TIOCPKT_FLUSHWRITE = 0x02
-TIOCPKT_STOP = 0x04
-TIOCPKT_START = 0x08
-TIOCPKT_NOSTOP = 0x10
-TIOCPKT_DOSTOP = 0x20
-TIOCPKT_IOCTL = 0x40
-def UIOCCMD(n): return _IO(ord('u'), n)	 
-
-TIOCFLAG_SOFTCAR = 0x01
-TIOCFLAG_CLOCAL = 0x02
-TIOCFLAG_CRTSCTS = 0x04
-TIOCFLAG_MDMBUF = 0x08
-TTYDISC = 0
-TABLDISC = 3
-SLIPDISC = 4
-PPPDISC = 5
-STRIPDISC = 6
-
-# Included from sys/ttydefaults.h
-TTYDEF_IFLAG = (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
-TTYDEF_OFLAG = (OPOST | ONLCR | OXTABS)
-TTYDEF_LFLAG = (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
-TTYDEF_CFLAG = (CREAD | CS8 | HUPCL)
-TTYDEF_SPEED = (B9600)
-def CTRL(x): return (x&037)
-
-CEOF = CTRL(ord('d'))
-CERASE = 0177
-CINTR = CTRL(ord('c'))
-CKILL = CTRL(ord('u'))
-CMIN = 1
-CQUIT = 034
-CSUSP = CTRL(ord('z'))
-CTIME = 0
-CDSUSP = CTRL(ord('y'))
-CSTART = CTRL(ord('q'))
-CSTOP = CTRL(ord('s'))
-CLNEXT = CTRL(ord('v'))
-CDISCARD = CTRL(ord('o'))
-CWERASE = CTRL(ord('w'))
-CREPRINT = CTRL(ord('r'))
-CEOT = CEOF
-CRPRNT = CREPRINT
-CFLUSH = CDISCARD
diff --git a/Lib/plat-sunos5/TERMIOS.py b/Lib/plat-sunos5/TERMIOS.py
deleted file mode 100755
index 9a21f1b..0000000
--- a/Lib/plat-sunos5/TERMIOS.py
+++ /dev/null
@@ -1,433 +0,0 @@
-# Generated by h2py from /usr/include/termios.h
-
-# Included from sys/termios.h
-
-# Included from sys/feature_tests.h
-_POSIX_C_SOURCE = 1
-
-# Included from sys/ttydev.h
-B0 = 0
-B50 = 1
-B75 = 2
-B110 = 3
-B134 = 4
-B150 = 5
-B200 = 6
-B300 = 7
-B600 = 8
-B1200 = 9
-B1800 = 10
-B2400 = 11
-B4800 = 12
-B9600 = 13
-B19200 = 14
-B38400 = 15
-EXTA = 14
-EXTB = 15
-
-# Included from sys/types.h
-
-# Included from sys/isa_defs.h
-_CHAR_ALIGNMENT = 1
-_SHORT_ALIGNMENT = 2
-_INT_ALIGNMENT = 4
-_LONG_ALIGNMENT = 4
-_LONG_LONG_ALIGNMENT = 4
-_DOUBLE_ALIGNMENT = 4
-_LONG_DOUBLE_ALIGNMENT = 4
-_POINTER_ALIGNMENT = 4
-_MAX_ALIGNMENT = 4
-_ALIGNMENT_REQUIRED = 0
-_CHAR_ALIGNMENT = 1
-_SHORT_ALIGNMENT = 2
-_INT_ALIGNMENT = 4
-_LONG_ALIGNMENT = 4
-_LONG_LONG_ALIGNMENT = 8
-_DOUBLE_ALIGNMENT = 8
-_LONG_DOUBLE_ALIGNMENT = 16
-_POINTER_ALIGNMENT = 4
-_MAX_ALIGNMENT = 16
-_ALIGNMENT_REQUIRED = 1
-_CHAR_ALIGNMENT = 1
-_SHORT_ALIGNMENT = 2
-_INT_ALIGNMENT = 4
-_LONG_ALIGNMENT = 4
-_LONG_LONG_ALIGNMENT = 8
-_DOUBLE_ALIGNMENT = 8
-_LONG_DOUBLE_ALIGNMENT = 8
-_POINTER_ALIGNMENT = 4
-_MAX_ALIGNMENT = 8
-_ALIGNMENT_REQUIRED = 1
-
-# Included from sys/machtypes.h
-SHRT_MIN = -32768
-SHRT_MAX = 32767
-INT_MIN = (-2147483647-1)
-INT_MAX = 2147483647
-LONG_MIN = (-2147483647-1)
-LONG_MAX = 2147483647
-P_MYID = (-1)
-
-# Included from sys/select.h
-
-# Included from sys/time.h
-DST_NONE = 0
-DST_USA = 1
-DST_AUST = 2
-DST_WET = 3
-DST_MET = 4
-DST_EET = 5
-DST_CAN = 6
-DST_GB = 7
-DST_RUM = 8
-DST_TUR = 9
-DST_AUSTALT = 10
-ITIMER_REAL = 0
-ITIMER_VIRTUAL = 1
-ITIMER_PROF = 2
-ITIMER_REALPROF = 3
-SEC = 1
-MILLISEC = 1000
-MICROSEC = 1000000
-NANOSEC = 1000000000
-__CLOCK_REALTIME0 = 0
-CLOCK_VIRTUAL = 1
-CLOCK_PROF = 2
-__CLOCK_REALTIME3 = 3
-CLOCK_REALTIME = __CLOCK_REALTIME3
-CLOCK_REALTIME = __CLOCK_REALTIME0
-TIMER_RELTIME = 0x0
-TIMER_ABSTIME = 0x1
-
-# Included from sys/mutex.h
-
-# Included from sys/dki_lkinfo.h
-
-# Included from sys/dl.h
-NOSTATS = 1
-LSB_NLKDS = 91
-def MUTEX_HELD(x): return (mutex_owned(x))
-
-
-# Included from time.h
-NULL = 0
-CLOCKS_PER_SEC = 1000000
-
-# Included from sys/siginfo.h
-SIGEV_NONE = 1
-SIGEV_SIGNAL = 2
-SIGEV_THREAD = 3
-SI_NOINFO = 32767
-SI_USER = 0
-SI_LWP = (-1)
-SI_QUEUE = (-2)
-SI_TIMER = (-3)
-SI_ASYNCIO = (-4)
-SI_MESGQ = (-5)
-
-# Included from sys/machsig.h
-ILL_ILLOPC = 1
-ILL_ILLOPN = 2
-ILL_ILLADR = 3
-ILL_ILLTRP = 4
-ILL_PRVOPC = 5
-ILL_PRVREG = 6
-ILL_COPROC = 7
-ILL_BADSTK = 8
-NSIGILL = 8
-EMT_TAGOVF = 1
-NSIGEMT = 1
-FPE_INTDIV = 1
-FPE_INTOVF = 2
-FPE_FLTDIV = 3
-FPE_FLTOVF = 4
-FPE_FLTUND = 5
-FPE_FLTRES = 6
-FPE_FLTINV = 7
-FPE_FLTSUB = 8
-NSIGFPE = 8
-SEGV_MAPERR = 1
-SEGV_ACCERR = 2
-NSIGSEGV = 2
-BUS_ADRALN = 1
-BUS_ADRERR = 2
-BUS_OBJERR = 3
-NSIGBUS = 3
-TRAP_BRKPT = 1
-TRAP_TRACE = 2
-NSIGTRAP = 2
-CLD_EXITED = 1
-CLD_KILLED = 2
-CLD_DUMPED = 3
-CLD_TRAPPED = 4
-CLD_STOPPED = 5
-CLD_CONTINUED = 6
-NSIGCLD = 6
-POLL_IN = 1
-POLL_OUT = 2
-POLL_MSG = 3
-POLL_ERR = 4
-POLL_PRI = 5
-POLL_HUP = 6
-NSIGPOLL = 6
-PROF_SIG = 1
-NSIGPROF = 1
-SI_MAXSZ = 128
-def SI_CANQUEUE(c): return ((c) <= SI_QUEUE)
-
-FD_SETSIZE = 1024
-NBBY = 8
-_POSIX_VDISABLE = 0
-def CTRL(c): return ((c)&037)
-
-IBSHIFT = 16
-NCC = 8
-NCCS = 19
-VINTR = 0
-VQUIT = 1
-VERASE = 2
-VKILL = 3
-VEOF = 4
-VEOL = 5
-VEOL2 = 6
-VMIN = 4
-VTIME = 5
-VSWTCH = 7
-VSTART = 8
-VSTOP = 9
-VSUSP = 10
-VDSUSP = 11
-VREPRINT = 12
-VDISCARD = 13
-VWERASE = 14
-VLNEXT = 15
-VCEOF = NCC
-VCEOL = (NCC + 1)
-CNUL = 0
-CDEL = 0177
-CESC = ord('\\')
-CINTR = CTRL(ord('c'))
-CQUIT = 034
-CERASE = 0177
-CKILL = CTRL(ord('u'))
-CEOT = 04
-CEOL = 0
-CEOL2 = 0
-CEOF = 04
-CSTART = 021
-CSTOP = 023
-CSWTCH = 032
-CNSWTCH = 0
-CSUSP = CTRL(ord('z'))
-CDSUSP = CTRL(ord('y'))
-CRPRNT = CTRL(ord('r'))
-CFLUSH = CTRL(ord('o'))
-CWERASE = CTRL(ord('w'))
-CLNEXT = CTRL(ord('v'))
-IGNBRK = 0000001
-BRKINT = 0000002
-IGNPAR = 0000004
-PARMRK = 0000010
-INPCK = 0000020
-ISTRIP = 0000040
-INLCR = 0000100
-IGNCR = 0000200
-ICRNL = 0000400
-IUCLC = 0001000
-IXON = 0002000
-IXANY = 0004000
-IXOFF = 0010000
-IMAXBEL = 0020000
-DOSMODE = 0100000
-OPOST = 0000001
-OLCUC = 0000002
-ONLCR = 0000004
-OCRNL = 0000010
-ONOCR = 0000020
-ONLRET = 0000040
-OFILL = 0000100
-OFDEL = 0000200
-NLDLY = 0000400
-NL0 = 0
-NL1 = 0000400
-CRDLY = 0003000
-CR0 = 0
-CR1 = 0001000
-CR2 = 0002000
-CR3 = 0003000
-TABDLY = 0014000
-TAB0 = 0
-TAB1 = 0004000
-TAB2 = 0010000
-TAB3 = 0014000
-XTABS = 0014000
-BSDLY = 0020000
-BS0 = 0
-BS1 = 0020000
-VTDLY = 0040000
-VT0 = 0
-VT1 = 0040000
-FFDLY = 0100000
-FF0 = 0
-FF1 = 0100000
-PAGEOUT = 0200000
-WRAP = 0400000
-CBAUD = 0000017
-CSIZE = 0000060
-CS5 = 0
-CS6 = 0000020
-CS7 = 0000040
-CS8 = 0000060
-CSTOPB = 0000100
-CREAD = 0000200
-PARENB = 0000400
-PARODD = 0001000
-HUPCL = 0002000
-CLOCAL = 0004000
-RCV1EN = 0010000
-XMT1EN = 0020000
-LOBLK = 0040000
-XCLUDE = 0100000
-CRTSXOFF = 010000000000
-CRTSCTS = 020000000000
-CIBAUD = 03600000
-PAREXT = 04000000
-CBAUDEXT = 010000000
-CIBAUDEXT = 020000000
-CRTS_IFLOW = 010000000000
-CCTS_OFLOW = 020000000000
-ISIG = 0000001
-ICANON = 0000002
-XCASE = 0000004
-ECHO = 0000010
-ECHOE = 0000020
-ECHOK = 0000040
-ECHONL = 0000100
-NOFLSH = 0000200
-TOSTOP = 0000400
-ECHOCTL = 0001000
-ECHOPRT = 0002000
-ECHOKE = 0004000
-DEFECHO = 0010000
-FLUSHO = 0020000
-PENDIN = 0040000
-IEXTEN = 0100000
-_TIOC = (ord('T')<<8)
-TIOC = _TIOC
-TCGETA = (_TIOC|1)
-TCSETA = (_TIOC|2)
-TCSETAW = (_TIOC|3)
-TCSETAF = (_TIOC|4)
-TCSBRK = (_TIOC|5)
-TCXONC = (_TIOC|6)
-TCFLSH = (_TIOC|7)
-TIOCKBON = (_TIOC|8)
-TIOCKBOF = (_TIOC|9)
-KBENABLED = (_TIOC|10)
-IOCTYPE = 0xff00
-TCDSET = (_TIOC|32)
-RTS_TOG = (_TIOC|33)
-TIOCGWINSZ = (_TIOC|104)
-TIOCSWINSZ = (_TIOC|103)
-TIOCGSOFTCAR = (_TIOC|105)
-TIOCSSOFTCAR = (_TIOC|106)
-TCGETS = (_TIOC|13)
-TCSETS = (_TIOC|14)
-TCSANOW = (_TIOC|14)
-TCSETSW = (_TIOC|15)
-TCSADRAIN = (_TIOC|15)
-TCSETSF = (_TIOC|16)
-TCSAFLUSH = (_TIOC|16)
-TCIFLUSH = 0
-TCOFLUSH = 1
-TCIOFLUSH = 2
-TCOOFF = 0
-TCOON = 1
-TCIOFF = 2
-TCION = 3
-tIOC = (ord('t')<<8)
-TIOCGETD = (tIOC|0)
-TIOCSETD = (tIOC|1)
-TIOCHPCL = (tIOC|2)
-TIOCGETP = (tIOC|8)
-TIOCSETP = (tIOC|9)
-TIOCSETN = (tIOC|10)
-TIOCEXCL = (tIOC|13)
-TIOCNXCL = (tIOC|14)
-TIOCFLUSH = (tIOC|16)
-TIOCSETC = (tIOC|17)
-TIOCGETC = (tIOC|18)
-TIOCLBIS = (tIOC|127)
-TIOCLBIC = (tIOC|126)
-TIOCLSET = (tIOC|125)
-TIOCLGET = (tIOC|124)
-TIOCSBRK = (tIOC|123)
-TIOCCBRK = (tIOC|122)
-TIOCSDTR = (tIOC|121)
-TIOCCDTR = (tIOC|120)
-TIOCSLTC = (tIOC|117)
-TIOCGLTC = (tIOC|116)
-TIOCOUTQ = (tIOC|115)
-TIOCNOTTY = (tIOC|113)
-TIOCSTOP = (tIOC|111)
-TIOCSTART = (tIOC|110)
-TIOCGPGRP = (tIOC|20)
-TIOCSPGRP = (tIOC|21)
-TIOCGSID = (tIOC|22)
-TIOCSSID = (tIOC|24)
-TIOCSTI = (tIOC|23)
-TIOCMSET = (tIOC|26)
-TIOCMBIS = (tIOC|27)
-TIOCMBIC = (tIOC|28)
-TIOCMGET = (tIOC|29)
-TIOCM_LE = 0001
-TIOCM_DTR = 0002
-TIOCM_RTS = 0004
-TIOCM_ST = 0010
-TIOCM_SR = 0020
-TIOCM_CTS = 0040
-TIOCM_CAR = 0100
-TIOCM_CD = TIOCM_CAR
-TIOCM_RNG = 0200
-TIOCM_RI = TIOCM_RNG
-TIOCM_DSR = 0400
-TIOCREMOTE = (tIOC|30)
-TIOCSIGNAL = (tIOC|31)
-LDIOC = (ord('D')<<8)
-LDOPEN = (LDIOC|0)
-LDCLOSE = (LDIOC|1)
-LDCHG = (LDIOC|2)
-LDGETT = (LDIOC|8)
-LDSETT = (LDIOC|9)
-LDSMAP = (LDIOC|110)
-LDGMAP = (LDIOC|111)
-LDNMAP = (LDIOC|112)
-LDEMAP = (LDIOC|113)
-LDDMAP = (LDIOC|114)
-DIOC = (ord('d')<<8)
-DIOCGETP = (DIOC|8)
-DIOCSETP = (DIOC|9)
-FIORDCHK = ((ord('f')<<8)|3)
-B0 = 0
-B50 = 1
-B75 = 2
-B110 = 3
-B134 = 4
-B150 = 5
-B200 = 6
-B300 = 7
-B600 = 8
-B1200 = 9
-B1800 = 10
-B2400 = 11
-B4800 = 12
-B9600 = 13
-B19200 = 14
-B38400 = 15
-B57600 = 16
-B76800 = 17
-B115200 = 18
-B153600 = 19
-B230400 = 20
-B307200 = 21
-B460800 = 22
-- 
cgit v0.12

