# Generated by h2py from /usr/include/sys/socket.h

# Included from sys/types.h

# Included from limits.h
CHAR_BIT = 8
CHAR_MIN = (-128)
CHAR_MAX = 127
CHAR_MIN = 0
CHAR_MAX = 255
MB_LEN_MAX = 3
SCHAR_MIN = (-128)
SCHAR_MAX = 127
SHRT_MIN = (-32767-1)
SHRT_MAX = 32767
LONG_MAX = 2147483647L
LONG_MIN = (-2147483647L-1)
INT_MIN = (-2147483647-1)
INT_MAX = 2147483647
INT_MIN = (-32767-1)
INT_MAX = 32767
_POSIX_ARG_MAX = 4096
_POSIX_CHILD_MAX = 6
_POSIX_LINK_MAX = 8
_POSIX_MAX_CANON = 255
_POSIX_MAX_INPUT = 255
_POSIX_NAME_MAX = 14
_POSIX_NGROUPS_MAX = 0
_POSIX_OPEN_MAX = 16
_POSIX_PATH_MAX = 255
_POSIX_PIPE_BUF = 512
_POSIX_SSIZE_MAX = 32767
_POSIX_STREAM_MAX = 8
_POSIX_SYMLOOP_MAX = 8
_POSIX_TZNAME_MAX = 3
NGROUPS_MAX = 1
ARG_MAX = 61440
TZNAME_MAX = 30
MAX_CANON = _POSIX_MAX_CANON
MAX_INPUT = _POSIX_MAX_INPUT
NAME_MAX = 48
PATH_MAX = _POSIX_PATH_MAX
PIPE_BUF = 5120
SSIZE_MAX = _POSIX_SSIZE_MAX
SYMLOOP_MAX = 32
BC_BASE_MAX = 99
BC_DIM_MAX = 2048
BC_SCALE_MAX = 99
COLL_ELEM_MAX = 4
EXPR_NEST_MAX = 32
LINE_MAX = 2048
PASTE_FILES_MAX = 12
RE_DUP_MAX = 255
SED_PATTERN_MAX = 20480
SENDTO_MAX = 90000L
SORT_LINE_MAX = 20480
_QNX_ROOT_PREFIX_MAX = 128
_QNX_PROXY_SIZE_MAX = 100
_QNX_MXTAB_LEN = 255
_QNX_ATTACHEDNAME_MAX = 64
_QNX_PREFIX_MAX = 48
_QNX_ERRNOSTR_MAX = 64
def minor(device): return ((int)((device) & 0x3ff))

def major(device): return ((int)(((device) >> 10) & 0x3f))

SOCK_STREAM = 1
SOCK_DGRAM = 2
SOCK_RAW = 3
SOCK_RDM = 4
SOCK_SEQPACKET = 5
SO_DEBUG = 0x0001
SO_ACCEPTCONN = 0x0002
SO_REUSEADDR = 0x0004
SO_KEEPALIVE = 0x0008
SO_DONTROUTE = 0x0010
SO_BROADCAST = 0x0020
SO_USELOOPBACK = 0x0040
SO_LINGER = 0x0080
SO_OOBINLINE = 0x0100
SO_SNDBUF = 0x1001
SO_RCVBUF = 0x1002
SO_SNDLOWAT = 0x1003
SO_RCVLOWAT = 0x1004
SO_SNDTIMEO = 0x1005
SO_RCVTIMEO = 0x1006
SO_ERROR = 0x1007
SO_TYPE = 0x1008
SOL_SOCKET = 0xffff
AF_UNSPEC = 0
AF_UNIX = 1
AF_INET = 2
AF_IMPLINK = 3
AF_PUP = 4
AF_CHAOS = 5
AF_NS = 6
AF_ISO = 7
AF_OSI = AF_ISO
AF_ECMA = 8
AF_DATAKIT = 9
AF_CCITT = 10
AF_SNA = 11
AF_DECnet = 12
AF_DLI = 13
AF_LAT = 14
AF_HYLINK = 15
AF_APPLETALK = 16
AF_ROUTE = 17
AF_LINK = 18
pseudo_AF_XTP = 19
AF_MAX = 20
PF_UNSPEC = AF_UNSPEC
PF_UNIX = AF_UNIX
PF_INET = AF_INET
PF_IMPLINK = AF_IMPLINK
PF_PUP = AF_PUP
PF_CHAOS = AF_CHAOS
PF_NS = AF_NS
PF_ISO = AF_ISO
PF_OSI = AF_ISO
PF_ECMA = AF_ECMA
PF_DATAKIT = AF_DATAKIT
PF_CCITT = AF_CCITT
PF_SNA = AF_SNA
PF_DECnet = AF_DECnet
PF_DLI = AF_DLI
PF_LAT = AF_LAT
PF_HYLINK = AF_HYLINK
PF_APPLETALK = AF_APPLETALK
PF_ROUTE = AF_ROUTE
PF_LINK = AF_LINK
PF_XTP = pseudo_AF_XTP
PF_MAX = AF_MAX
SOMAXCONN = 32
MSG_OOB = 0x1
MSG_PEEK = 0x2
MSG_DONTROUTE = 0x4
MSG_EOR = 0x8
MSG_TRUNC = 0x10
MSG_CTRUNC = 0x20
MSG_WAITALL = 0x40
SCM_RIGHTS = 0x01
