mirror of https://github.com/python/cpython
Regenerated on newer Solaris version
This commit is contained in:
parent
f0ee937900
commit
725a67e5c2
|
@ -1,4 +1,160 @@
|
|||
# Generated by h2py from /usr/include/sys/fcntl.h
|
||||
|
||||
# Included from sys/feature_tests.h
|
||||
_POSIX_C_SOURCE = 1
|
||||
|
||||
# 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
|
||||
O_RDONLY = 0
|
||||
O_WRONLY = 1
|
||||
O_RDWR = 2
|
||||
|
@ -39,6 +195,7 @@ F_RSETLKW = 22
|
|||
F_GETOWN = 23
|
||||
F_SETOWN = 24
|
||||
F_REVOKE = 25
|
||||
F_HASREMOTELOCKS = 26
|
||||
F_RDLCK = 01
|
||||
F_WRLCK = 02
|
||||
F_UNLCK = 03
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,42 @@
|
|||
# Generated by h2py from /usr/include/sys/socket.h
|
||||
|
||||
# Included from sys/netconfig.h
|
||||
NETCONFIG = "/etc/netconfig"
|
||||
NETPATH = "NETPATH"
|
||||
NC_TPI_CLTS = 1
|
||||
NC_TPI_COTS = 2
|
||||
NC_TPI_COTS_ORD = 3
|
||||
NC_TPI_RAW = 4
|
||||
NC_NOFLAG = 00
|
||||
NC_VISIBLE = 01
|
||||
NC_BROADCAST = 02
|
||||
NC_NOPROTOFMLY = "-"
|
||||
NC_LOOPBACK = "loopback"
|
||||
NC_INET = "inet"
|
||||
NC_IMPLINK = "implink"
|
||||
NC_PUP = "pup"
|
||||
NC_CHAOS = "chaos"
|
||||
NC_NS = "ns"
|
||||
NC_NBS = "nbs"
|
||||
NC_ECMA = "ecma"
|
||||
NC_DATAKIT = "datakit"
|
||||
NC_CCITT = "ccitt"
|
||||
NC_SNA = "sna"
|
||||
NC_DECNET = "decnet"
|
||||
NC_DLI = "dli"
|
||||
NC_LAT = "lat"
|
||||
NC_HYLINK = "hylink"
|
||||
NC_APPLETALK = "appletalk"
|
||||
NC_NIT = "nit"
|
||||
NC_IEEE802 = "ieee802"
|
||||
NC_OSI = "osi"
|
||||
NC_X25 = "x25"
|
||||
NC_OSINET = "osinet"
|
||||
NC_GOSIP = "gosip"
|
||||
NC_NOPROTO = "-"
|
||||
NC_TCP = "tcp"
|
||||
NC_UDP = "udp"
|
||||
NC_ICMP = "icmp"
|
||||
NC_TPI_CLTS = 1
|
||||
NC_TPI_COTS = 2
|
||||
NC_TPI_COTS_ORD = 3
|
||||
|
@ -51,7 +89,8 @@ AF_OSI = 19
|
|||
AF_X25 = 20
|
||||
AF_OSINET = 21
|
||||
AF_GOSIP = 22
|
||||
AF_MAX = 22
|
||||
AF_IPX = 23
|
||||
AF_MAX = 23
|
||||
PF_UNSPEC = AF_UNSPEC
|
||||
PF_UNIX = AF_UNIX
|
||||
PF_INET = AF_INET
|
||||
|
@ -75,12 +114,15 @@ PF_OSI = AF_OSI
|
|||
PF_X25 = AF_X25
|
||||
PF_OSINET = AF_OSINET
|
||||
PF_GOSIP = AF_GOSIP
|
||||
PF_IPX = AF_IPX
|
||||
PF_MAX = AF_MAX
|
||||
SOMAXCONN = 5
|
||||
MSG_OOB = 0x1
|
||||
MSG_PEEK = 0x2
|
||||
MSG_DONTROUTE = 0x4
|
||||
MSG_MAXIOVLEN = 16
|
||||
def OPTLEN(x): return ((((x) + sizeof (long) - 1) / sizeof (long)) * sizeof (long))
|
||||
|
||||
SOCKETSYS = 88
|
||||
SOCKETSYS = 83
|
||||
SO_ACCEPT = 1
|
||||
|
|
|
@ -27,9 +27,39 @@ EXTB = 15
|
|||
|
||||
# Included from sys/types.h
|
||||
|
||||
# Included from sys/machtypes.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)
|
||||
|
@ -60,9 +90,12 @@ SEC = 1
|
|||
MILLISEC = 1000
|
||||
MICROSEC = 1000000
|
||||
NANOSEC = 1000000000
|
||||
CLOCK_REALTIME = 0
|
||||
__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
|
||||
|
||||
|
@ -83,6 +116,7 @@ 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)
|
||||
|
@ -139,6 +173,8 @@ 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
|
||||
|
@ -252,9 +288,14 @@ 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
|
||||
|
@ -383,3 +424,10 @@ B4800 = 12
|
|||
B9600 = 13
|
||||
B19200 = 14
|
||||
B38400 = 15
|
||||
B57600 = 16
|
||||
B76800 = 17
|
||||
B115200 = 18
|
||||
B153600 = 19
|
||||
B230400 = 20
|
||||
B307200 = 21
|
||||
B460800 = 22
|
||||
|
|
|
@ -1,4 +1,160 @@
|
|||
# Generated by h2py from /usr/include/sys/fcntl.h
|
||||
|
||||
# Included from sys/feature_tests.h
|
||||
_POSIX_C_SOURCE = 1
|
||||
|
||||
# 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
|
||||
O_RDONLY = 0
|
||||
O_WRONLY = 1
|
||||
O_RDWR = 2
|
||||
|
@ -39,6 +195,7 @@ F_RSETLKW = 22
|
|||
F_GETOWN = 23
|
||||
F_SETOWN = 24
|
||||
F_REVOKE = 25
|
||||
F_HASREMOTELOCKS = 26
|
||||
F_RDLCK = 01
|
||||
F_WRLCK = 02
|
||||
F_UNLCK = 03
|
||||
|
|
1005
Lib/sunos5/IN.py
1005
Lib/sunos5/IN.py
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,42 @@
|
|||
# Generated by h2py from /usr/include/sys/socket.h
|
||||
|
||||
# Included from sys/netconfig.h
|
||||
NETCONFIG = "/etc/netconfig"
|
||||
NETPATH = "NETPATH"
|
||||
NC_TPI_CLTS = 1
|
||||
NC_TPI_COTS = 2
|
||||
NC_TPI_COTS_ORD = 3
|
||||
NC_TPI_RAW = 4
|
||||
NC_NOFLAG = 00
|
||||
NC_VISIBLE = 01
|
||||
NC_BROADCAST = 02
|
||||
NC_NOPROTOFMLY = "-"
|
||||
NC_LOOPBACK = "loopback"
|
||||
NC_INET = "inet"
|
||||
NC_IMPLINK = "implink"
|
||||
NC_PUP = "pup"
|
||||
NC_CHAOS = "chaos"
|
||||
NC_NS = "ns"
|
||||
NC_NBS = "nbs"
|
||||
NC_ECMA = "ecma"
|
||||
NC_DATAKIT = "datakit"
|
||||
NC_CCITT = "ccitt"
|
||||
NC_SNA = "sna"
|
||||
NC_DECNET = "decnet"
|
||||
NC_DLI = "dli"
|
||||
NC_LAT = "lat"
|
||||
NC_HYLINK = "hylink"
|
||||
NC_APPLETALK = "appletalk"
|
||||
NC_NIT = "nit"
|
||||
NC_IEEE802 = "ieee802"
|
||||
NC_OSI = "osi"
|
||||
NC_X25 = "x25"
|
||||
NC_OSINET = "osinet"
|
||||
NC_GOSIP = "gosip"
|
||||
NC_NOPROTO = "-"
|
||||
NC_TCP = "tcp"
|
||||
NC_UDP = "udp"
|
||||
NC_ICMP = "icmp"
|
||||
NC_TPI_CLTS = 1
|
||||
NC_TPI_COTS = 2
|
||||
NC_TPI_COTS_ORD = 3
|
||||
|
@ -51,7 +89,8 @@ AF_OSI = 19
|
|||
AF_X25 = 20
|
||||
AF_OSINET = 21
|
||||
AF_GOSIP = 22
|
||||
AF_MAX = 22
|
||||
AF_IPX = 23
|
||||
AF_MAX = 23
|
||||
PF_UNSPEC = AF_UNSPEC
|
||||
PF_UNIX = AF_UNIX
|
||||
PF_INET = AF_INET
|
||||
|
@ -75,12 +114,15 @@ PF_OSI = AF_OSI
|
|||
PF_X25 = AF_X25
|
||||
PF_OSINET = AF_OSINET
|
||||
PF_GOSIP = AF_GOSIP
|
||||
PF_IPX = AF_IPX
|
||||
PF_MAX = AF_MAX
|
||||
SOMAXCONN = 5
|
||||
MSG_OOB = 0x1
|
||||
MSG_PEEK = 0x2
|
||||
MSG_DONTROUTE = 0x4
|
||||
MSG_MAXIOVLEN = 16
|
||||
def OPTLEN(x): return ((((x) + sizeof (long) - 1) / sizeof (long)) * sizeof (long))
|
||||
|
||||
SOCKETSYS = 88
|
||||
SOCKETSYS = 83
|
||||
SO_ACCEPT = 1
|
||||
|
|
|
@ -27,9 +27,39 @@ EXTB = 15
|
|||
|
||||
# Included from sys/types.h
|
||||
|
||||
# Included from sys/machtypes.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)
|
||||
|
@ -60,9 +90,12 @@ SEC = 1
|
|||
MILLISEC = 1000
|
||||
MICROSEC = 1000000
|
||||
NANOSEC = 1000000000
|
||||
CLOCK_REALTIME = 0
|
||||
__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
|
||||
|
||||
|
@ -83,6 +116,7 @@ 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)
|
||||
|
@ -139,6 +173,8 @@ 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
|
||||
|
@ -252,9 +288,14 @@ 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
|
||||
|
@ -383,3 +424,10 @@ B4800 = 12
|
|||
B9600 = 13
|
||||
B19200 = 14
|
||||
B38400 = 15
|
||||
B57600 = 16
|
||||
B76800 = 17
|
||||
B115200 = 18
|
||||
B153600 = 19
|
||||
B230400 = 20
|
||||
B307200 = 21
|
||||
B460800 = 22
|
||||
|
|
Loading…
Reference in New Issue