# DP: Provide Lib/plat-gnukfreebsd[78]. --- /dev/null +++ b/Lib/plat-gnukfreebsd7/DLFCN.py @@ -0,0 +1,118 @@ +# Generated by h2py from /usr/include/dlfcn.h +_DLFCN_H = 1 + +# Included from features.h +_FEATURES_H = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_ISOC99_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 200809 +_XOPEN_SOURCE = 700 +_XOPEN_SOURCE_EXTENDED = 1 +_LARGEFILE64_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_ATFILE_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +__USE_ISOC99 = 1 +__USE_ISOC95 = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +_POSIX_C_SOURCE = 199506 +_POSIX_C_SOURCE = 200112 +_POSIX_C_SOURCE = 200809 +__USE_POSIX_IMPLICITLY = 1 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_POSIX199309 = 1 +__USE_POSIX199506 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN2K8 = 1 +_ATFILE_SOURCE = 1 +__USE_XOPEN = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_UNIX98 = 1 +_LARGEFILE_SOURCE = 1 +__USE_XOPEN2K8 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_FILE_OFFSET64 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_ATFILE = 1 +__USE_GNU = 1 +__USE_REENTRANT = 1 +__USE_FORTIFY_LEVEL = 2 +__USE_FORTIFY_LEVEL = 1 +__USE_FORTIFY_LEVEL = 0 + +# Included from bits/predefs.h +__STDC_IEC_559__ = 1 +__STDC_IEC_559_COMPLEX__ = 1 +__STDC_ISO_10646__ = 200009 +__GNU_LIBRARY__ = 6 +__GLIBC__ = 2 +__GLIBC_MINOR__ = 11 +__GLIBC_HAVE_LONG_LONG = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __NTH(fct): return fct + +def __NTH(fct): return fct + +def __P(args): return args + +def __PMT(args): return args + +def __STRING(x): return #x + +def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) + +def __bos0(ptr): return __builtin_object_size (ptr, 0) + +def __warnattr(msg): return __attribute__((__warning__ (msg))) + +__flexarr = [] +__flexarr = [0] +__flexarr = [] +__flexarr = [1] +def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) + +def __attribute__(xyz): return + +def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) + +def __attribute_format_arg__(x): return + + +# Included from bits/wordsize.h +__WORDSIZE = 32 +__LDBL_COMPAT = 1 +def __LDBL_REDIR_DECL(name): return \ + +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_EXTERN_INLINES = 1 +__USE_EXTERN_INLINES_IN_LIBC = 1 + +# Included from gnu/stubs.h + +# Included from bits/dlfcn.h +RTLD_LAZY = 0x00001 +RTLD_NOW = 0x00002 +RTLD_BINDING_MASK = 0x3 +RTLD_NOLOAD = 0x00004 +RTLD_DEEPBIND = 0x00008 +RTLD_GLOBAL = 0x00100 +RTLD_LOCAL = 0 +RTLD_NODELETE = 0x01000 +LM_ID_BASE = 0 +LM_ID_NEWLM = -1 --- /dev/null +++ b/Lib/plat-gnukfreebsd7/IN.py @@ -0,0 +1,809 @@ +# Generated by h2py from /usr/include/netinet/in.h +_NETINET_IN_H = 1 + +# Included from features.h +_FEATURES_H = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_ISOC99_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 200809 +_XOPEN_SOURCE = 700 +_XOPEN_SOURCE_EXTENDED = 1 +_LARGEFILE64_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_ATFILE_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +__USE_ISOC99 = 1 +__USE_ISOC95 = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +_POSIX_C_SOURCE = 199506 +_POSIX_C_SOURCE = 200112 +_POSIX_C_SOURCE = 200809 +__USE_POSIX_IMPLICITLY = 1 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_POSIX199309 = 1 +__USE_POSIX199506 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN2K8 = 1 +_ATFILE_SOURCE = 1 +__USE_XOPEN = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_UNIX98 = 1 +_LARGEFILE_SOURCE = 1 +__USE_XOPEN2K8 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_FILE_OFFSET64 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_ATFILE = 1 +__USE_GNU = 1 +__USE_REENTRANT = 1 +__USE_FORTIFY_LEVEL = 2 +__USE_FORTIFY_LEVEL = 1 +__USE_FORTIFY_LEVEL = 0 + +# Included from bits/predefs.h +__STDC_IEC_559__ = 1 +__STDC_IEC_559_COMPLEX__ = 1 +__STDC_ISO_10646__ = 200009 +__GNU_LIBRARY__ = 6 +__GLIBC__ = 2 +__GLIBC_MINOR__ = 11 +__GLIBC_HAVE_LONG_LONG = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __NTH(fct): return fct + +def __NTH(fct): return fct + +def __P(args): return args + +def __PMT(args): return args + +def __STRING(x): return #x + +def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) + +def __bos0(ptr): return __builtin_object_size (ptr, 0) + +def __warnattr(msg): return __attribute__((__warning__ (msg))) + +__flexarr = [] +__flexarr = [0] +__flexarr = [] +__flexarr = [1] +def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) + +def __attribute__(xyz): return + +def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) + +def __attribute_format_arg__(x): return + + +# Included from bits/wordsize.h +__WORDSIZE = 32 +__LDBL_COMPAT = 1 +def __LDBL_REDIR_DECL(name): return \ + +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_EXTERN_INLINES = 1 +__USE_EXTERN_INLINES_IN_LIBC = 1 + +# Included from gnu/stubs.h + +# Included from stdint.h +_STDINT_H = 1 + +# Included from bits/wchar.h +_BITS_WCHAR_H = 1 +__WCHAR_MAX = (2147483647) +__WCHAR_MIN = (-__WCHAR_MAX - 1) +def __INT64_C(c): return c ## L + +def __UINT64_C(c): return c ## UL + +def __INT64_C(c): return c ## LL + +def __UINT64_C(c): return c ## ULL + +INT8_MIN = (-128) +INT16_MIN = (-32767-1) +INT32_MIN = (-2147483647-1) +INT64_MIN = (-__INT64_C(9223372036854775807)-1) +INT8_MAX = (127) +INT16_MAX = (32767) +INT32_MAX = (2147483647) +INT64_MAX = (__INT64_C(9223372036854775807)) +UINT8_MAX = (255) +UINT16_MAX = (65535) +UINT64_MAX = (__UINT64_C(18446744073709551615)) +INT_LEAST8_MIN = (-128) +INT_LEAST16_MIN = (-32767-1) +INT_LEAST32_MIN = (-2147483647-1) +INT_LEAST64_MIN = (-__INT64_C(9223372036854775807)-1) +INT_LEAST8_MAX = (127) +INT_LEAST16_MAX = (32767) +INT_LEAST32_MAX = (2147483647) +INT_LEAST64_MAX = (__INT64_C(9223372036854775807)) +UINT_LEAST8_MAX = (255) +UINT_LEAST16_MAX = (65535) +UINT_LEAST64_MAX = (__UINT64_C(18446744073709551615)) +INT_FAST8_MIN = (-128) +INT_FAST16_MIN = (-9223372036854775807-1) +INT_FAST32_MIN = (-9223372036854775807-1) +INT_FAST16_MIN = (-2147483647-1) +INT_FAST32_MIN = (-2147483647-1) +INT_FAST64_MIN = (-__INT64_C(9223372036854775807)-1) +INT_FAST8_MAX = (127) +INT_FAST16_MAX = (9223372036854775807) +INT_FAST32_MAX = (9223372036854775807) +INT_FAST16_MAX = (2147483647) +INT_FAST32_MAX = (2147483647) +INT_FAST64_MAX = (__INT64_C(9223372036854775807)) +UINT_FAST8_MAX = (255) +UINT_FAST64_MAX = (__UINT64_C(18446744073709551615)) +INTPTR_MIN = (-9223372036854775807-1) +INTPTR_MAX = (9223372036854775807) +INTPTR_MIN = (-2147483647-1) +INTPTR_MAX = (2147483647) +INTMAX_MIN = (-__INT64_C(9223372036854775807)-1) +INTMAX_MAX = (__INT64_C(9223372036854775807)) +UINTMAX_MAX = (__UINT64_C(18446744073709551615)) +PTRDIFF_MIN = (-9223372036854775807-1) +PTRDIFF_MAX = (9223372036854775807) +PTRDIFF_MIN = (-2147483647-1) +PTRDIFF_MAX = (2147483647) +SIG_ATOMIC_MIN = (-2147483647-1) +SIG_ATOMIC_MAX = (2147483647) +WCHAR_MIN = __WCHAR_MIN +WCHAR_MAX = __WCHAR_MAX +def INT8_C(c): return c + +def INT16_C(c): return c + +def INT32_C(c): return c + +def INT64_C(c): return c ## L + +def INT64_C(c): return c ## LL + +def UINT8_C(c): return c + +def UINT16_C(c): return c + +def UINT32_C(c): return c ## U + +def UINT64_C(c): return c ## UL + +def UINT64_C(c): return c ## ULL + +def INTMAX_C(c): return c ## L + +def UINTMAX_C(c): return c ## UL + +def INTMAX_C(c): return c ## LL + +def UINTMAX_C(c): return c ## ULL + + +# Included from sys/socket.h +_SYS_SOCKET_H = 1 + +# Included from sys/uio.h +_SYS_UIO_H = 1 +from TYPES import * + +# Included from bits/uio.h +_BITS_UIO_H = 1 +from TYPES import * +UIO_MAXIOV = 1024 + +# Included from bits/sigset.h +_SIGSET_H_types = 1 +_SIGSET_H_fns = 1 +def __sigword(sig): return (((sig) - 1) >> 5) + +def __sigemptyset(set): return \ + +def __sigfillset(set): return \ + +def __sigisemptyset(set): return \ + + +# Included from bits/socket.h +__BITS_SOCKET_H = 1 + +# Included from limits.h +_LIBC_LIMITS_H_ = 1 +MB_LEN_MAX = 16 +_LIMITS_H = 1 +CHAR_BIT = 8 +SCHAR_MIN = (-128) +SCHAR_MAX = 127 +UCHAR_MAX = 255 +CHAR_MIN = 0 +CHAR_MAX = UCHAR_MAX +CHAR_MIN = SCHAR_MIN +CHAR_MAX = SCHAR_MAX +SHRT_MIN = (-32768) +SHRT_MAX = 32767 +USHRT_MAX = 65535 +INT_MAX = 2147483647 +LONG_MAX = 9223372036854775807 +LONG_MAX = 2147483647 +LONG_MIN = (-LONG_MAX - 1) + +# Included from bits/posix1_lim.h +_BITS_POSIX1_LIM_H = 1 +_POSIX_AIO_LISTIO_MAX = 2 +_POSIX_AIO_MAX = 1 +_POSIX_ARG_MAX = 4096 +_POSIX_CHILD_MAX = 25 +_POSIX_CHILD_MAX = 6 +_POSIX_DELAYTIMER_MAX = 32 +_POSIX_HOST_NAME_MAX = 255 +_POSIX_LINK_MAX = 8 +_POSIX_LOGIN_NAME_MAX = 9 +_POSIX_MAX_CANON = 255 +_POSIX_MAX_INPUT = 255 +_POSIX_MQ_OPEN_MAX = 8 +_POSIX_MQ_PRIO_MAX = 32 +_POSIX_NAME_MAX = 14 +_POSIX_NGROUPS_MAX = 8 +_POSIX_NGROUPS_MAX = 0 +_POSIX_OPEN_MAX = 20 +_POSIX_OPEN_MAX = 16 +_POSIX_FD_SETSIZE = _POSIX_OPEN_MAX +_POSIX_PATH_MAX = 256 +_POSIX_PIPE_BUF = 512 +_POSIX_RE_DUP_MAX = 255 +_POSIX_RTSIG_MAX = 8 +_POSIX_SEM_NSEMS_MAX = 256 +_POSIX_SEM_VALUE_MAX = 32767 +_POSIX_SIGQUEUE_MAX = 32 +_POSIX_SSIZE_MAX = 32767 +_POSIX_STREAM_MAX = 8 +_POSIX_SYMLINK_MAX = 255 +_POSIX_SYMLOOP_MAX = 8 +_POSIX_TIMER_MAX = 32 +_POSIX_TTY_NAME_MAX = 9 +_POSIX_TZNAME_MAX = 6 +_POSIX_QLIMIT = 1 +_POSIX_HIWAT = _POSIX_PIPE_BUF +_POSIX_UIO_MAXIOV = 16 +_POSIX_CLOCKRES_MIN = 20000000 + +# Included from bits/local_lim.h + +# Included from sys/syslimits.h +ARG_MAX = 262144 +CHILD_MAX = 40 +LINK_MAX = 32767 +MAX_CANON = 255 +MAX_INPUT = 255 +NAME_MAX = 255 +NGROUPS_MAX = 1023 +OPEN_MAX = 64 +PATH_MAX = 1024 +PIPE_BUF = 512 +IOV_MAX = 1024 +_POSIX_THREAD_KEYS_MAX = 128 +PTHREAD_KEYS_MAX = 1024 +_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +PTHREAD_DESTRUCTOR_ITERATIONS = _POSIX_THREAD_DESTRUCTOR_ITERATIONS +_POSIX_THREAD_THREADS_MAX = 64 +PTHREAD_THREADS_MAX = 1024 +AIO_PRIO_DELTA_MAX = 20 +PTHREAD_STACK_MIN = 16384 +TIMER_MAX = 256 +DELAYTIMER_MAX = 2147483647 +SSIZE_MAX = LONG_MAX +NGROUPS_MAX = 8 + +# Included from bits/posix2_lim.h +_BITS_POSIX2_LIM_H = 1 +_POSIX2_BC_BASE_MAX = 99 +_POSIX2_BC_DIM_MAX = 2048 +_POSIX2_BC_SCALE_MAX = 99 +_POSIX2_BC_STRING_MAX = 1000 +_POSIX2_COLL_WEIGHTS_MAX = 2 +_POSIX2_EXPR_NEST_MAX = 32 +_POSIX2_LINE_MAX = 2048 +_POSIX2_RE_DUP_MAX = 255 +_POSIX2_CHARCLASS_NAME_MAX = 14 +BC_BASE_MAX = _POSIX2_BC_BASE_MAX +BC_DIM_MAX = _POSIX2_BC_DIM_MAX +BC_SCALE_MAX = _POSIX2_BC_SCALE_MAX +BC_STRING_MAX = _POSIX2_BC_STRING_MAX +COLL_WEIGHTS_MAX = 255 +EXPR_NEST_MAX = _POSIX2_EXPR_NEST_MAX +LINE_MAX = _POSIX2_LINE_MAX +CHARCLASS_NAME_MAX = 2048 +RE_DUP_MAX = (0x7fff) + +# Included from bits/xopen_lim.h +_XOPEN_LIM_H = 1 + +# Included from bits/stdio_lim.h +L_tmpnam = 20 +TMP_MAX = 238328 +FILENAME_MAX = 1024 +L_ctermid = 9 +L_cuserid = 9 +FOPEN_MAX = 64 +IOV_MAX = 1024 +_XOPEN_IOV_MAX = _POSIX_UIO_MAXIOV +NL_ARGMAX = _POSIX_ARG_MAX +NL_LANGMAX = _POSIX2_LINE_MAX +NL_MSGMAX = INT_MAX +NL_NMAX = INT_MAX +NL_SETMAX = INT_MAX +NL_TEXTMAX = INT_MAX +NZERO = 20 +WORD_BIT = 16 +WORD_BIT = 32 +WORD_BIT = 64 +WORD_BIT = 16 +WORD_BIT = 32 +WORD_BIT = 64 +WORD_BIT = 32 +LONG_BIT = 32 +LONG_BIT = 64 +LONG_BIT = 32 +LONG_BIT = 64 +LONG_BIT = 64 +LONG_BIT = 32 + +# Included from bits/types.h +_BITS_TYPES_H = 1 +__S32_TYPE = int +__SWORD_TYPE = int +__SLONG32_TYPE = int + +# Included from bits/typesizes.h +_BITS_TYPESIZES_H = 1 +__PID_T_TYPE = __S32_TYPE +__CLOCK_T_TYPE = __S32_TYPE +__SWBLK_T_TYPE = __S32_TYPE +__CLOCKID_T_TYPE = __S32_TYPE +__TIMER_T_TYPE = __S32_TYPE +__SSIZE_T_TYPE = __SWORD_TYPE +__FD_SETSIZE = 1024 +PF_UNSPEC = 0 +PF_LOCAL = 1 +PF_UNIX = PF_LOCAL +PF_FILE = PF_LOCAL +PF_INET = 2 +PF_IMPLINK = 3 +PF_PUP = 4 +PF_CHAOS = 5 +PF_NS = 6 +PF_ISO = 7 +PF_OSI = PF_ISO +PF_ECMA = 8 +PF_DATAKIT = 9 +PF_CCITT = 10 +PF_SNA = 11 +PF_DECnet = 12 +PF_DLI = 13 +PF_LAT = 14 +PF_HYLINK = 15 +PF_APPLETALK = 16 +PF_ROUTE = 17 +PF_LINK = 18 +PF_XTP = 19 +PF_COIP = 20 +PF_CNT = 21 +PF_RTIP = 22 +PF_IPX = 23 +PF_SIP = 24 +PF_PIP = 25 +PF_ISDN = 26 +PF_KEY = 27 +PF_INET6 = 28 +PF_NATM = 29 +PF_ATM = 30 +PF_HDRCMPLT = 31 +PF_NETGRAPH = 32 +PF_MAX = 33 +AF_UNSPEC = PF_UNSPEC +AF_LOCAL = PF_LOCAL +AF_UNIX = PF_UNIX +AF_FILE = PF_FILE +AF_INET = PF_INET +AF_IMPLINK = PF_IMPLINK +AF_PUP = PF_PUP +AF_CHAOS = PF_CHAOS +AF_NS = PF_NS +AF_ISO = PF_ISO +AF_OSI = PF_OSI +AF_ECMA = PF_ECMA +AF_DATAKIT = PF_DATAKIT +AF_CCITT = PF_CCITT +AF_SNA = PF_SNA +AF_DECnet = PF_DECnet +AF_DLI = PF_DLI +AF_LAT = PF_LAT +AF_HYLINK = PF_HYLINK +AF_APPLETALK = PF_APPLETALK +AF_ROUTE = PF_ROUTE +AF_LINK = PF_LINK +pseudo_AF_XTP = PF_XTP +AF_COIP = PF_COIP +AF_CNT = PF_CNT +pseudo_AF_RTIP = PF_RTIP +AF_IPX = PF_IPX +AF_SIP = PF_SIP +pseudo_AF_PIP = PF_PIP +AF_ISDN = PF_ISDN +AF_E164 = AF_ISDN +pseudo_AF_KEY = PF_KEY +AF_INET6 = PF_INET6 +AF_NATM = PF_NATM +AF_ATM = PF_ATM +pseudo_AF_HDRCMPLT = PF_HDRCMPLT +AF_NETGRAPH = PF_NETGRAPH +AF_MAX = PF_MAX +SOMAXCONN = 128 + +# Included from bits/sockaddr.h +_BITS_SOCKADDR_H = 1 +def __SOCKADDR_COMMON(sa_prefix): return \ + +_HAVE_SA_LEN = 1 +_SS_SIZE = 128 +def CMSG_FIRSTHDR(mhdr): return \ + +CMGROUP_MAX = 16 +SOL_SOCKET = 0xffff +LOCAL_PEERCRED = 0x001 +LOCAL_CREDS = 0x002 +LOCAL_CONNWAIT = 0x004 + +# Included from bits/socket2.h +def IN_CLASSA(a): return ((((in_addr_t)(a)) & (-2147483648)) == 0) + +IN_CLASSA_NET = (-16777216) +IN_CLASSA_NSHIFT = 24 +IN_CLASSA_HOST = ((-1) & ~IN_CLASSA_NET) +IN_CLASSA_MAX = 128 +def IN_CLASSB(a): return ((((in_addr_t)(a)) & (-1073741824)) == (-2147483648)) + +IN_CLASSB_NET = (-65536) +IN_CLASSB_NSHIFT = 16 +IN_CLASSB_HOST = ((-1) & ~IN_CLASSB_NET) +IN_CLASSB_MAX = 65536 +def IN_CLASSC(a): return ((((in_addr_t)(a)) & (-536870912)) == (-1073741824)) + +IN_CLASSC_NET = (-256) +IN_CLASSC_NSHIFT = 8 +IN_CLASSC_HOST = ((-1) & ~IN_CLASSC_NET) +def IN_CLASSD(a): return ((((in_addr_t)(a)) & (-268435456)) == (-536870912)) + +def IN_MULTICAST(a): return IN_CLASSD(a) + +def IN_EXPERIMENTAL(a): return ((((in_addr_t)(a)) & (-536870912)) == (-536870912)) + +def IN_BADCLASS(a): return ((((in_addr_t)(a)) & (-268435456)) == (-268435456)) + +IN_LOOPBACKNET = 127 +INET_ADDRSTRLEN = 16 +INET6_ADDRSTRLEN = 46 + +# Included from bits/in.h +IMPLINK_IP = 155 +IMPLINK_LOWEXPER = 156 +IMPLINK_HIGHEXPER = 158 +IPPROTO_DIVERT = 258 +SOL_IP = 0 +IP_OPTIONS = 1 +IP_HDRINCL = 2 +IP_TOS = 3 +IP_TTL = 4 +IP_RECVOPTS = 5 +IP_RECVRETOPTS = 6 +IP_RECVDSTADDR = 7 +IP_SENDSRCADDR = IP_RECVDSTADDR +IP_RETOPTS = 8 +IP_MULTICAST_IF = 9 +IP_MULTICAST_TTL = 10 +IP_MULTICAST_LOOP = 11 +IP_ADD_MEMBERSHIP = 12 +IP_DROP_MEMBERSHIP = 13 +IP_MULTICAST_VIF = 14 +IP_RSVP_ON = 15 +IP_RSVP_OFF = 16 +IP_RSVP_VIF_ON = 17 +IP_RSVP_VIF_OFF = 18 +IP_PORTRANGE = 19 +IP_RECVIF = 20 +IP_IPSEC_POLICY = 21 +IP_FAITH = 22 +IP_ONESBCAST = 23 +IP_NONLOCALOK = 24 +IP_FW_TABLE_ADD = 40 +IP_FW_TABLE_DEL = 41 +IP_FW_TABLE_FLUSH = 42 +IP_FW_TABLE_GETSIZE = 43 +IP_FW_TABLE_LIST = 44 +IP_FW_ADD = 50 +IP_FW_DEL = 51 +IP_FW_FLUSH = 52 +IP_FW_ZERO = 53 +IP_FW_GET = 54 +IP_FW_RESETLOG = 55 +IP_FW_NAT_CFG = 56 +IP_FW_NAT_DEL = 57 +IP_FW_NAT_GET_CONFIG = 58 +IP_FW_NAT_GET_LOG = 59 +IP_DUMMYNET_CONFIGURE = 60 +IP_DUMMYNET_DEL = 61 +IP_DUMMYNET_FLUSH = 62 +IP_DUMMYNET_GET = 64 +IP_RECVTTL = 65 +IP_MINTTL = 66 +IP_DONTFRAG = 67 +IP_ADD_SOURCE_MEMBERSHIP = 70 +IP_DROP_SOURCE_MEMBERSHIP = 71 +IP_BLOCK_SOURCE = 72 +IP_UNBLOCK_SOURCE = 73 +IP_MSFILTER = 74 +MCAST_JOIN_GROUP = 80 +MCAST_LEAVE_GROUP = 81 +MCAST_JOIN_SOURCE_GROUP = 82 +MCAST_LEAVE_SOURCE_GROUP = 83 +MCAST_BLOCK_SOURCE = 84 +MCAST_UNBLOCK_SOURCE = 85 +IP_DEFAULT_MULTICAST_TTL = 1 +IP_DEFAULT_MULTICAST_LOOP = 1 +IP_MIN_MEMBERSHIPS = 31 +IP_MAX_MEMBERSHIPS = 4095 +IP_MAX_SOURCE_FILTER = 1024 +MCAST_UNDEFINED = 0 +MCAST_INCLUDE = 1 +MCAST_EXCLUDE = 2 +IP_PORTRANGE_DEFAULT = 0 +IP_PORTRANGE_HIGH = 1 +IP_PORTRANGE_LOW = 2 +IPCTL_FORWARDING = 1 +IPCTL_SENDREDIRECTS = 2 +IPCTL_DEFTTL = 3 +IPCTL_DEFMTU = 4 +IPCTL_RTEXPIRE = 5 +IPCTL_RTMINEXPIRE = 6 +IPCTL_RTMAXCACHE = 7 +IPCTL_SOURCEROUTE = 8 +IPCTL_DIRECTEDBROADCAST = 9 +IPCTL_INTRQMAXLEN = 10 +IPCTL_INTRQDROPS = 11 +IPCTL_STATS = 12 +IPCTL_ACCEPTSOURCEROUTE = 13 +IPCTL_FASTFORWARDING = 14 +IPCTL_KEEPFAITH = 15 +IPCTL_GIF_TTL = 16 +IPCTL_MAXID = 17 +IPV6_SOCKOPT_RESERVED1 = 3 +IPV6_UNICAST_HOPS = 4 +IPV6_MULTICAST_IF = 9 +IPV6_MULTICAST_HOPS = 10 +IPV6_MULTICAST_LOOP = 11 +IPV6_JOIN_GROUP = 12 +IPV6_LEAVE_GROUP = 13 +IPV6_PORTRANGE = 14 +ICMP6_FILTER = 18 +IPV6_CHECKSUM = 26 +IPV6_V6ONLY = 27 +IPV6_IPSEC_POLICY = 28 +IPV6_FAITH = 29 +IPV6_FW_ADD = 30 +IPV6_FW_DEL = 31 +IPV6_FW_FLUSH = 32 +IPV6_FW_ZERO = 33 +IPV6_FW_GET = 34 +IPV6_RTHDRDSTOPTS = 35 +IPV6_RECVPKTINFO = 36 +IPV6_RECVHOPLIMIT = 37 +IPV6_RECVRTHDR = 38 +IPV6_RECVHOPOPTS = 39 +IPV6_RECVDSTOPTS = 40 +IPV6_USE_MIN_MTU = 42 +IPV6_RECVPATHMTU = 43 +IPV6_PATHMTU = 44 +IPV6_PKTINFO = 46 +IPV6_HOPLIMIT = 47 +IPV6_NEXTHOP = 48 +IPV6_HOPOPTS = 49 +IPV6_DSTOPTS = 50 +IPV6_RTHDR = 51 +IPV6_RECVTCLASS = 57 +IPV6_AUTOFLOWLABEL = 59 +IPV6_TCLASS = 61 +IPV6_DONTFRAG = 62 +IPV6_PREFER_TEMPADDR = 63 +IPV6_ADD_MEMBERSHIP = IPV6_JOIN_GROUP +IPV6_DROP_MEMBERSHIP = IPV6_LEAVE_GROUP +IPV6_RXHOPOPTS = IPV6_HOPOPTS +IPV6_RXDSTOPTS = IPV6_DSTOPTS +SOL_IPV6 = 41 +SOL_ICMPV6 = 58 +IPV6_DEFAULT_MULTICAST_HOPS = 1 +IPV6_DEFAULT_MULTICAST_LOOP = 1 +IPV6_PORTRANGE_DEFAULT = 0 +IPV6_PORTRANGE_HIGH = 1 +IPV6_PORTRANGE_LOW = 2 +IPV6_RTHDR_LOOSE = 0 +IPV6_RTHDR_STRICT = 1 +IPV6_RTHDR_TYPE_0 = 0 +IPV6CTL_FORWARDING = 1 +IPV6CTL_SENDREDIRECTS = 2 +IPV6CTL_DEFHLIM = 3 +IPV6CTL_FORWSRCRT = 5 +IPV6CTL_STATS = 6 +IPV6CTL_MRTSTATS = 7 +IPV6CTL_MRTPROTO = 8 +IPV6CTL_MAXFRAGPACKETS = 9 +IPV6CTL_SOURCECHECK = 10 +IPV6CTL_SOURCECHECK_LOGINT = 11 +IPV6CTL_ACCEPT_RTADV = 12 +IPV6CTL_KEEPFAITH = 13 +IPV6CTL_LOG_INTERVAL = 14 +IPV6CTL_HDRNESTLIMIT = 15 +IPV6CTL_DAD_COUNT = 16 +IPV6CTL_AUTO_FLOWLABEL = 17 +IPV6CTL_DEFMCASTHLIM = 18 +IPV6CTL_GIF_HLIM = 19 +IPV6CTL_KAME_VERSION = 20 +IPV6CTL_USE_DEPRECATED = 21 +IPV6CTL_RR_PRUNE = 22 +IPV6CTL_V6ONLY = 24 +IPV6CTL_RTEXPIRE = 25 +IPV6CTL_RTMINEXPIRE = 26 +IPV6CTL_RTMAXCACHE = 27 +IPV6CTL_USETEMPADDR = 32 +IPV6CTL_TEMPPLTIME = 33 +IPV6CTL_TEMPVLTIME = 34 +IPV6CTL_AUTO_LINKLOCAL = 35 +IPV6CTL_RIP6STATS = 36 +IPV6CTL_PREFER_TEMPADDR = 37 +IPV6CTL_ADDRCTLPOLICY = 38 +IPV6CTL_USE_DEFAULTZONE = 39 +IPV6CTL_MAXFRAGS = 41 +IPV6CTL_MCAST_PMTU = 44 +IPV6CTL_STEALTH = 45 +ICMPV6CTL_ND6_ONLINKNSRFC4861 = 47 +IPV6CTL_MAXID = 48 + +# Included from endian.h +_ENDIAN_H = 1 +__LITTLE_ENDIAN = 1234 +__BIG_ENDIAN = 4321 +__PDP_ENDIAN = 3412 + +# Included from bits/endian.h +__BYTE_ORDER = __LITTLE_ENDIAN +__FLOAT_WORD_ORDER = __BYTE_ORDER +LITTLE_ENDIAN = __LITTLE_ENDIAN +BIG_ENDIAN = __BIG_ENDIAN +PDP_ENDIAN = __PDP_ENDIAN +BYTE_ORDER = __BYTE_ORDER + +# Included from bits/byteswap.h +_BITS_BYTESWAP_H = 1 +def __bswap_constant_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_constant_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_constant_64(x): return \ + +def __bswap_64(x): return \ + +def htobe16(x): return __bswap_16 (x) + +def htole16(x): return (x) + +def be16toh(x): return __bswap_16 (x) + +def le16toh(x): return (x) + +def htobe32(x): return __bswap_32 (x) + +def htole32(x): return (x) + +def be32toh(x): return __bswap_32 (x) + +def le32toh(x): return (x) + +def htobe64(x): return __bswap_64 (x) + +def htole64(x): return (x) + +def be64toh(x): return __bswap_64 (x) + +def le64toh(x): return (x) + +def htobe16(x): return (x) + +def htole16(x): return __bswap_16 (x) + +def be16toh(x): return (x) + +def le16toh(x): return __bswap_16 (x) + +def htobe32(x): return (x) + +def htole32(x): return __bswap_32 (x) + +def be32toh(x): return (x) + +def le32toh(x): return __bswap_32 (x) + +def htobe64(x): return (x) + +def htole64(x): return __bswap_64 (x) + +def be64toh(x): return (x) + +def le64toh(x): return __bswap_64 (x) + +def ntohl(x): return (x) + +def ntohs(x): return (x) + +def htonl(x): return (x) + +def htons(x): return (x) + +def ntohl(x): return __bswap_32 (x) + +def ntohs(x): return __bswap_16 (x) + +def htonl(x): return __bswap_32 (x) + +def htons(x): return __bswap_16 (x) + +def IN6_IS_ADDR_UNSPECIFIED(a): return \ + +def IN6_IS_ADDR_LOOPBACK(a): return \ + +def IN6_IS_ADDR_LINKLOCAL(a): return \ + +def IN6_IS_ADDR_SITELOCAL(a): return \ + +def IN6_IS_ADDR_V4MAPPED(a): return \ + +def IN6_IS_ADDR_V4COMPAT(a): return \ + +def IN6_IS_ADDR_MC_NODELOCAL(a): return \ + +def IN6_IS_ADDR_MC_LINKLOCAL(a): return \ + +def IN6_IS_ADDR_MC_SITELOCAL(a): return \ + +def IN6_IS_ADDR_MC_ORGLOCAL(a): return \ + +def IN6_IS_ADDR_MC_GLOBAL(a): return \ + --- /dev/null +++ b/Lib/plat-gnukfreebsd7/TYPES.py @@ -0,0 +1,303 @@ +# Generated by h2py from /usr/include/sys/types.h +_SYS_TYPES_H = 1 + +# Included from features.h +_FEATURES_H = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_ISOC99_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 200809 +_XOPEN_SOURCE = 700 +_XOPEN_SOURCE_EXTENDED = 1 +_LARGEFILE64_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_ATFILE_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +__USE_ISOC99 = 1 +__USE_ISOC95 = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +_POSIX_C_SOURCE = 199506 +_POSIX_C_SOURCE = 200112 +_POSIX_C_SOURCE = 200809 +__USE_POSIX_IMPLICITLY = 1 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_POSIX199309 = 1 +__USE_POSIX199506 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN2K8 = 1 +_ATFILE_SOURCE = 1 +__USE_XOPEN = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_UNIX98 = 1 +_LARGEFILE_SOURCE = 1 +__USE_XOPEN2K8 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_FILE_OFFSET64 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_ATFILE = 1 +__USE_GNU = 1 +__USE_REENTRANT = 1 +__USE_FORTIFY_LEVEL = 2 +__USE_FORTIFY_LEVEL = 1 +__USE_FORTIFY_LEVEL = 0 + +# Included from bits/predefs.h +__STDC_IEC_559__ = 1 +__STDC_IEC_559_COMPLEX__ = 1 +__STDC_ISO_10646__ = 200009 +__GNU_LIBRARY__ = 6 +__GLIBC__ = 2 +__GLIBC_MINOR__ = 11 +__GLIBC_HAVE_LONG_LONG = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __NTH(fct): return fct + +def __NTH(fct): return fct + +def __P(args): return args + +def __PMT(args): return args + +def __STRING(x): return #x + +def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) + +def __bos0(ptr): return __builtin_object_size (ptr, 0) + +def __warnattr(msg): return __attribute__((__warning__ (msg))) + +__flexarr = [] +__flexarr = [0] +__flexarr = [] +__flexarr = [1] +def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) + +def __attribute__(xyz): return + +def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) + +def __attribute_format_arg__(x): return + + +# Included from bits/wordsize.h +__WORDSIZE = 32 +__LDBL_COMPAT = 1 +def __LDBL_REDIR_DECL(name): return \ + +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_EXTERN_INLINES = 1 +__USE_EXTERN_INLINES_IN_LIBC = 1 + +# Included from gnu/stubs.h + +# Included from bits/types.h +_BITS_TYPES_H = 1 +__S32_TYPE = int +__SWORD_TYPE = int +__SLONG32_TYPE = int + +# Included from bits/typesizes.h +_BITS_TYPESIZES_H = 1 +__PID_T_TYPE = __S32_TYPE +__CLOCK_T_TYPE = __S32_TYPE +__SWBLK_T_TYPE = __S32_TYPE +__CLOCKID_T_TYPE = __S32_TYPE +__TIMER_T_TYPE = __S32_TYPE +__SSIZE_T_TYPE = __SWORD_TYPE +__FD_SETSIZE = 1024 + +# Included from time.h +_TIME_H = 1 + +# Included from bits/time.h +_BITS_TIME_H = 1 +CLOCKS_PER_SEC = 1000000 +CLK_TCK = 128 +CLOCK_REALTIME = 0 +CLOCK_PROCESS_CPUTIME_ID = 2 +CLOCK_THREAD_CPUTIME_ID = 3 +CLOCK_MONOTONIC = 4 +CLOCK_VIRTUAL = 1 +CLOCK_PROF = 2 +CLOCK_UPTIME = 5 +CLOCK_UPTIME_PRECISE = 7 +CLOCK_UPTIME_FAST = 8 +CLOCK_REALTIME_PRECISE = 9 +CLOCK_REALTIME_FAST = 10 +CLOCK_MONOTONIC_PRECISE = 11 +CLOCK_MONOTONIC_FAST = 12 +CLOCK_SECOND = 13 +TIMER_RELTIME = 0 +TIMER_ABSTIME = 1 +_STRUCT_TIMEVAL = 1 +CLK_TCK = CLOCKS_PER_SEC +__clock_t_defined = 1 +__time_t_defined = 1 +__clockid_t_defined = 1 +__timer_t_defined = 1 +__timespec_defined = 1 + +# Included from xlocale.h +_XLOCALE_H = 1 +def __isleap(year): return \ + +__BIT_TYPES_DEFINED__ = 1 + +# Included from endian.h +_ENDIAN_H = 1 +__LITTLE_ENDIAN = 1234 +__BIG_ENDIAN = 4321 +__PDP_ENDIAN = 3412 + +# Included from bits/endian.h +__BYTE_ORDER = __LITTLE_ENDIAN +__FLOAT_WORD_ORDER = __BYTE_ORDER +LITTLE_ENDIAN = __LITTLE_ENDIAN +BIG_ENDIAN = __BIG_ENDIAN +PDP_ENDIAN = __PDP_ENDIAN +BYTE_ORDER = __BYTE_ORDER + +# Included from bits/byteswap.h +_BITS_BYTESWAP_H = 1 +def __bswap_constant_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_constant_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_constant_64(x): return \ + +def __bswap_64(x): return \ + +def htobe16(x): return __bswap_16 (x) + +def htole16(x): return (x) + +def be16toh(x): return __bswap_16 (x) + +def le16toh(x): return (x) + +def htobe32(x): return __bswap_32 (x) + +def htole32(x): return (x) + +def be32toh(x): return __bswap_32 (x) + +def le32toh(x): return (x) + +def htobe64(x): return __bswap_64 (x) + +def htole64(x): return (x) + +def be64toh(x): return __bswap_64 (x) + +def le64toh(x): return (x) + +def htobe16(x): return (x) + +def htole16(x): return __bswap_16 (x) + +def be16toh(x): return (x) + +def le16toh(x): return __bswap_16 (x) + +def htobe32(x): return (x) + +def htole32(x): return __bswap_32 (x) + +def be32toh(x): return (x) + +def le32toh(x): return __bswap_32 (x) + +def htobe64(x): return (x) + +def htole64(x): return __bswap_64 (x) + +def be64toh(x): return (x) + +def le64toh(x): return __bswap_64 (x) + + +# Included from sys/select.h +_SYS_SELECT_H = 1 + +# Included from bits/select.h +def __FD_ZERO(fdsp): return \ + +def __FD_ZERO(set): return \ + + +# Included from bits/sigset.h +_SIGSET_H_types = 1 +_SIGSET_H_fns = 1 +def __sigword(sig): return (((sig) - 1) >> 5) + +def __sigemptyset(set): return \ + +def __sigfillset(set): return \ + +def __sigisemptyset(set): return \ + +def __FDELT(d): return ((d) / __NFDBITS) + +FD_SETSIZE = __FD_SETSIZE +def FD_ZERO(fdsetp): return __FD_ZERO (fdsetp) + + +# Included from sys/sysmacros.h +_SYS_SYSMACROS_H = 1 +def minor(dev): return ((int)((dev) & (-65281))) + +def gnu_dev_major(dev): return major (dev) + +def gnu_dev_minor(dev): return minor (dev) + + +# Included from bits/pthreadtypes.h +_BITS_PTHREADTYPES_H = 1 + +# Included from bits/sched.h +SCHED_OTHER = 2 +SCHED_FIFO = 1 +SCHED_RR = 3 +CSIGNAL = 0x000000ff +CLONE_VM = 0x00000100 +CLONE_FS = 0x00000200 +CLONE_FILES = 0x00000400 +CLONE_SIGHAND = 0x00000800 +CLONE_PTRACE = 0x00002000 +CLONE_VFORK = 0x00004000 +CLONE_SYSVSEM = 0x00040000 +__defined_schedparam = 1 +__CPU_SETSIZE = 128 +def __CPUELT(cpu): return ((cpu) / __NCPUBITS) + +def __CPU_ALLOC_SIZE(count): return \ + +def __CPU_ALLOC(count): return __sched_cpualloc (count) + +def __CPU_FREE(cpuset): return __sched_cpufree (cpuset) + --- /dev/null +++ b/Lib/plat-gnukfreebsd8/DLFCN.py @@ -0,0 +1,118 @@ +# Generated by h2py from /usr/include/dlfcn.h +_DLFCN_H = 1 + +# Included from features.h +_FEATURES_H = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_ISOC99_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 200809 +_XOPEN_SOURCE = 700 +_XOPEN_SOURCE_EXTENDED = 1 +_LARGEFILE64_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_ATFILE_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +__USE_ISOC99 = 1 +__USE_ISOC95 = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +_POSIX_C_SOURCE = 199506 +_POSIX_C_SOURCE = 200112 +_POSIX_C_SOURCE = 200809 +__USE_POSIX_IMPLICITLY = 1 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_POSIX199309 = 1 +__USE_POSIX199506 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN2K8 = 1 +_ATFILE_SOURCE = 1 +__USE_XOPEN = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_UNIX98 = 1 +_LARGEFILE_SOURCE = 1 +__USE_XOPEN2K8 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_FILE_OFFSET64 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_ATFILE = 1 +__USE_GNU = 1 +__USE_REENTRANT = 1 +__USE_FORTIFY_LEVEL = 2 +__USE_FORTIFY_LEVEL = 1 +__USE_FORTIFY_LEVEL = 0 + +# Included from bits/predefs.h +__STDC_IEC_559__ = 1 +__STDC_IEC_559_COMPLEX__ = 1 +__STDC_ISO_10646__ = 200009 +__GNU_LIBRARY__ = 6 +__GLIBC__ = 2 +__GLIBC_MINOR__ = 11 +__GLIBC_HAVE_LONG_LONG = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __NTH(fct): return fct + +def __NTH(fct): return fct + +def __P(args): return args + +def __PMT(args): return args + +def __STRING(x): return #x + +def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) + +def __bos0(ptr): return __builtin_object_size (ptr, 0) + +def __warnattr(msg): return __attribute__((__warning__ (msg))) + +__flexarr = [] +__flexarr = [0] +__flexarr = [] +__flexarr = [1] +def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) + +def __attribute__(xyz): return + +def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) + +def __attribute_format_arg__(x): return + + +# Included from bits/wordsize.h +__WORDSIZE = 32 +__LDBL_COMPAT = 1 +def __LDBL_REDIR_DECL(name): return \ + +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_EXTERN_INLINES = 1 +__USE_EXTERN_INLINES_IN_LIBC = 1 + +# Included from gnu/stubs.h + +# Included from bits/dlfcn.h +RTLD_LAZY = 0x00001 +RTLD_NOW = 0x00002 +RTLD_BINDING_MASK = 0x3 +RTLD_NOLOAD = 0x00004 +RTLD_DEEPBIND = 0x00008 +RTLD_GLOBAL = 0x00100 +RTLD_LOCAL = 0 +RTLD_NODELETE = 0x01000 +LM_ID_BASE = 0 +LM_ID_NEWLM = -1 --- /dev/null +++ b/Lib/plat-gnukfreebsd8/IN.py @@ -0,0 +1,809 @@ +# Generated by h2py from /usr/include/netinet/in.h +_NETINET_IN_H = 1 + +# Included from features.h +_FEATURES_H = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_ISOC99_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 200809 +_XOPEN_SOURCE = 700 +_XOPEN_SOURCE_EXTENDED = 1 +_LARGEFILE64_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_ATFILE_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +__USE_ISOC99 = 1 +__USE_ISOC95 = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +_POSIX_C_SOURCE = 199506 +_POSIX_C_SOURCE = 200112 +_POSIX_C_SOURCE = 200809 +__USE_POSIX_IMPLICITLY = 1 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_POSIX199309 = 1 +__USE_POSIX199506 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN2K8 = 1 +_ATFILE_SOURCE = 1 +__USE_XOPEN = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_UNIX98 = 1 +_LARGEFILE_SOURCE = 1 +__USE_XOPEN2K8 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_FILE_OFFSET64 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_ATFILE = 1 +__USE_GNU = 1 +__USE_REENTRANT = 1 +__USE_FORTIFY_LEVEL = 2 +__USE_FORTIFY_LEVEL = 1 +__USE_FORTIFY_LEVEL = 0 + +# Included from bits/predefs.h +__STDC_IEC_559__ = 1 +__STDC_IEC_559_COMPLEX__ = 1 +__STDC_ISO_10646__ = 200009 +__GNU_LIBRARY__ = 6 +__GLIBC__ = 2 +__GLIBC_MINOR__ = 11 +__GLIBC_HAVE_LONG_LONG = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __NTH(fct): return fct + +def __NTH(fct): return fct + +def __P(args): return args + +def __PMT(args): return args + +def __STRING(x): return #x + +def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) + +def __bos0(ptr): return __builtin_object_size (ptr, 0) + +def __warnattr(msg): return __attribute__((__warning__ (msg))) + +__flexarr = [] +__flexarr = [0] +__flexarr = [] +__flexarr = [1] +def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) + +def __attribute__(xyz): return + +def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) + +def __attribute_format_arg__(x): return + + +# Included from bits/wordsize.h +__WORDSIZE = 32 +__LDBL_COMPAT = 1 +def __LDBL_REDIR_DECL(name): return \ + +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_EXTERN_INLINES = 1 +__USE_EXTERN_INLINES_IN_LIBC = 1 + +# Included from gnu/stubs.h + +# Included from stdint.h +_STDINT_H = 1 + +# Included from bits/wchar.h +_BITS_WCHAR_H = 1 +__WCHAR_MAX = (2147483647) +__WCHAR_MIN = (-__WCHAR_MAX - 1) +def __INT64_C(c): return c ## L + +def __UINT64_C(c): return c ## UL + +def __INT64_C(c): return c ## LL + +def __UINT64_C(c): return c ## ULL + +INT8_MIN = (-128) +INT16_MIN = (-32767-1) +INT32_MIN = (-2147483647-1) +INT64_MIN = (-__INT64_C(9223372036854775807)-1) +INT8_MAX = (127) +INT16_MAX = (32767) +INT32_MAX = (2147483647) +INT64_MAX = (__INT64_C(9223372036854775807)) +UINT8_MAX = (255) +UINT16_MAX = (65535) +UINT64_MAX = (__UINT64_C(18446744073709551615)) +INT_LEAST8_MIN = (-128) +INT_LEAST16_MIN = (-32767-1) +INT_LEAST32_MIN = (-2147483647-1) +INT_LEAST64_MIN = (-__INT64_C(9223372036854775807)-1) +INT_LEAST8_MAX = (127) +INT_LEAST16_MAX = (32767) +INT_LEAST32_MAX = (2147483647) +INT_LEAST64_MAX = (__INT64_C(9223372036854775807)) +UINT_LEAST8_MAX = (255) +UINT_LEAST16_MAX = (65535) +UINT_LEAST64_MAX = (__UINT64_C(18446744073709551615)) +INT_FAST8_MIN = (-128) +INT_FAST16_MIN = (-9223372036854775807-1) +INT_FAST32_MIN = (-9223372036854775807-1) +INT_FAST16_MIN = (-2147483647-1) +INT_FAST32_MIN = (-2147483647-1) +INT_FAST64_MIN = (-__INT64_C(9223372036854775807)-1) +INT_FAST8_MAX = (127) +INT_FAST16_MAX = (9223372036854775807) +INT_FAST32_MAX = (9223372036854775807) +INT_FAST16_MAX = (2147483647) +INT_FAST32_MAX = (2147483647) +INT_FAST64_MAX = (__INT64_C(9223372036854775807)) +UINT_FAST8_MAX = (255) +UINT_FAST64_MAX = (__UINT64_C(18446744073709551615)) +INTPTR_MIN = (-9223372036854775807-1) +INTPTR_MAX = (9223372036854775807) +INTPTR_MIN = (-2147483647-1) +INTPTR_MAX = (2147483647) +INTMAX_MIN = (-__INT64_C(9223372036854775807)-1) +INTMAX_MAX = (__INT64_C(9223372036854775807)) +UINTMAX_MAX = (__UINT64_C(18446744073709551615)) +PTRDIFF_MIN = (-9223372036854775807-1) +PTRDIFF_MAX = (9223372036854775807) +PTRDIFF_MIN = (-2147483647-1) +PTRDIFF_MAX = (2147483647) +SIG_ATOMIC_MIN = (-2147483647-1) +SIG_ATOMIC_MAX = (2147483647) +WCHAR_MIN = __WCHAR_MIN +WCHAR_MAX = __WCHAR_MAX +def INT8_C(c): return c + +def INT16_C(c): return c + +def INT32_C(c): return c + +def INT64_C(c): return c ## L + +def INT64_C(c): return c ## LL + +def UINT8_C(c): return c + +def UINT16_C(c): return c + +def UINT32_C(c): return c ## U + +def UINT64_C(c): return c ## UL + +def UINT64_C(c): return c ## ULL + +def INTMAX_C(c): return c ## L + +def UINTMAX_C(c): return c ## UL + +def INTMAX_C(c): return c ## LL + +def UINTMAX_C(c): return c ## ULL + + +# Included from sys/socket.h +_SYS_SOCKET_H = 1 + +# Included from sys/uio.h +_SYS_UIO_H = 1 +from TYPES import * + +# Included from bits/uio.h +_BITS_UIO_H = 1 +from TYPES import * +UIO_MAXIOV = 1024 + +# Included from bits/sigset.h +_SIGSET_H_types = 1 +_SIGSET_H_fns = 1 +def __sigword(sig): return (((sig) - 1) >> 5) + +def __sigemptyset(set): return \ + +def __sigfillset(set): return \ + +def __sigisemptyset(set): return \ + + +# Included from bits/socket.h +__BITS_SOCKET_H = 1 + +# Included from limits.h +_LIBC_LIMITS_H_ = 1 +MB_LEN_MAX = 16 +_LIMITS_H = 1 +CHAR_BIT = 8 +SCHAR_MIN = (-128) +SCHAR_MAX = 127 +UCHAR_MAX = 255 +CHAR_MIN = 0 +CHAR_MAX = UCHAR_MAX +CHAR_MIN = SCHAR_MIN +CHAR_MAX = SCHAR_MAX +SHRT_MIN = (-32768) +SHRT_MAX = 32767 +USHRT_MAX = 65535 +INT_MAX = 2147483647 +LONG_MAX = 9223372036854775807 +LONG_MAX = 2147483647 +LONG_MIN = (-LONG_MAX - 1) + +# Included from bits/posix1_lim.h +_BITS_POSIX1_LIM_H = 1 +_POSIX_AIO_LISTIO_MAX = 2 +_POSIX_AIO_MAX = 1 +_POSIX_ARG_MAX = 4096 +_POSIX_CHILD_MAX = 25 +_POSIX_CHILD_MAX = 6 +_POSIX_DELAYTIMER_MAX = 32 +_POSIX_HOST_NAME_MAX = 255 +_POSIX_LINK_MAX = 8 +_POSIX_LOGIN_NAME_MAX = 9 +_POSIX_MAX_CANON = 255 +_POSIX_MAX_INPUT = 255 +_POSIX_MQ_OPEN_MAX = 8 +_POSIX_MQ_PRIO_MAX = 32 +_POSIX_NAME_MAX = 14 +_POSIX_NGROUPS_MAX = 8 +_POSIX_NGROUPS_MAX = 0 +_POSIX_OPEN_MAX = 20 +_POSIX_OPEN_MAX = 16 +_POSIX_FD_SETSIZE = _POSIX_OPEN_MAX +_POSIX_PATH_MAX = 256 +_POSIX_PIPE_BUF = 512 +_POSIX_RE_DUP_MAX = 255 +_POSIX_RTSIG_MAX = 8 +_POSIX_SEM_NSEMS_MAX = 256 +_POSIX_SEM_VALUE_MAX = 32767 +_POSIX_SIGQUEUE_MAX = 32 +_POSIX_SSIZE_MAX = 32767 +_POSIX_STREAM_MAX = 8 +_POSIX_SYMLINK_MAX = 255 +_POSIX_SYMLOOP_MAX = 8 +_POSIX_TIMER_MAX = 32 +_POSIX_TTY_NAME_MAX = 9 +_POSIX_TZNAME_MAX = 6 +_POSIX_QLIMIT = 1 +_POSIX_HIWAT = _POSIX_PIPE_BUF +_POSIX_UIO_MAXIOV = 16 +_POSIX_CLOCKRES_MIN = 20000000 + +# Included from bits/local_lim.h + +# Included from sys/syslimits.h +ARG_MAX = 262144 +CHILD_MAX = 40 +LINK_MAX = 32767 +MAX_CANON = 255 +MAX_INPUT = 255 +NAME_MAX = 255 +NGROUPS_MAX = 1023 +OPEN_MAX = 64 +PATH_MAX = 1024 +PIPE_BUF = 512 +IOV_MAX = 1024 +_POSIX_THREAD_KEYS_MAX = 128 +PTHREAD_KEYS_MAX = 1024 +_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 +PTHREAD_DESTRUCTOR_ITERATIONS = _POSIX_THREAD_DESTRUCTOR_ITERATIONS +_POSIX_THREAD_THREADS_MAX = 64 +PTHREAD_THREADS_MAX = 1024 +AIO_PRIO_DELTA_MAX = 20 +PTHREAD_STACK_MIN = 16384 +TIMER_MAX = 256 +DELAYTIMER_MAX = 2147483647 +SSIZE_MAX = LONG_MAX +NGROUPS_MAX = 8 + +# Included from bits/posix2_lim.h +_BITS_POSIX2_LIM_H = 1 +_POSIX2_BC_BASE_MAX = 99 +_POSIX2_BC_DIM_MAX = 2048 +_POSIX2_BC_SCALE_MAX = 99 +_POSIX2_BC_STRING_MAX = 1000 +_POSIX2_COLL_WEIGHTS_MAX = 2 +_POSIX2_EXPR_NEST_MAX = 32 +_POSIX2_LINE_MAX = 2048 +_POSIX2_RE_DUP_MAX = 255 +_POSIX2_CHARCLASS_NAME_MAX = 14 +BC_BASE_MAX = _POSIX2_BC_BASE_MAX +BC_DIM_MAX = _POSIX2_BC_DIM_MAX +BC_SCALE_MAX = _POSIX2_BC_SCALE_MAX +BC_STRING_MAX = _POSIX2_BC_STRING_MAX +COLL_WEIGHTS_MAX = 255 +EXPR_NEST_MAX = _POSIX2_EXPR_NEST_MAX +LINE_MAX = _POSIX2_LINE_MAX +CHARCLASS_NAME_MAX = 2048 +RE_DUP_MAX = (0x7fff) + +# Included from bits/xopen_lim.h +_XOPEN_LIM_H = 1 + +# Included from bits/stdio_lim.h +L_tmpnam = 20 +TMP_MAX = 238328 +FILENAME_MAX = 1024 +L_ctermid = 9 +L_cuserid = 9 +FOPEN_MAX = 64 +IOV_MAX = 1024 +_XOPEN_IOV_MAX = _POSIX_UIO_MAXIOV +NL_ARGMAX = _POSIX_ARG_MAX +NL_LANGMAX = _POSIX2_LINE_MAX +NL_MSGMAX = INT_MAX +NL_NMAX = INT_MAX +NL_SETMAX = INT_MAX +NL_TEXTMAX = INT_MAX +NZERO = 20 +WORD_BIT = 16 +WORD_BIT = 32 +WORD_BIT = 64 +WORD_BIT = 16 +WORD_BIT = 32 +WORD_BIT = 64 +WORD_BIT = 32 +LONG_BIT = 32 +LONG_BIT = 64 +LONG_BIT = 32 +LONG_BIT = 64 +LONG_BIT = 64 +LONG_BIT = 32 + +# Included from bits/types.h +_BITS_TYPES_H = 1 +__S32_TYPE = int +__SWORD_TYPE = int +__SLONG32_TYPE = int + +# Included from bits/typesizes.h +_BITS_TYPESIZES_H = 1 +__PID_T_TYPE = __S32_TYPE +__CLOCK_T_TYPE = __S32_TYPE +__SWBLK_T_TYPE = __S32_TYPE +__CLOCKID_T_TYPE = __S32_TYPE +__TIMER_T_TYPE = __S32_TYPE +__SSIZE_T_TYPE = __SWORD_TYPE +__FD_SETSIZE = 1024 +PF_UNSPEC = 0 +PF_LOCAL = 1 +PF_UNIX = PF_LOCAL +PF_FILE = PF_LOCAL +PF_INET = 2 +PF_IMPLINK = 3 +PF_PUP = 4 +PF_CHAOS = 5 +PF_NS = 6 +PF_ISO = 7 +PF_OSI = PF_ISO +PF_ECMA = 8 +PF_DATAKIT = 9 +PF_CCITT = 10 +PF_SNA = 11 +PF_DECnet = 12 +PF_DLI = 13 +PF_LAT = 14 +PF_HYLINK = 15 +PF_APPLETALK = 16 +PF_ROUTE = 17 +PF_LINK = 18 +PF_XTP = 19 +PF_COIP = 20 +PF_CNT = 21 +PF_RTIP = 22 +PF_IPX = 23 +PF_SIP = 24 +PF_PIP = 25 +PF_ISDN = 26 +PF_KEY = 27 +PF_INET6 = 28 +PF_NATM = 29 +PF_ATM = 30 +PF_HDRCMPLT = 31 +PF_NETGRAPH = 32 +PF_MAX = 33 +AF_UNSPEC = PF_UNSPEC +AF_LOCAL = PF_LOCAL +AF_UNIX = PF_UNIX +AF_FILE = PF_FILE +AF_INET = PF_INET +AF_IMPLINK = PF_IMPLINK +AF_PUP = PF_PUP +AF_CHAOS = PF_CHAOS +AF_NS = PF_NS +AF_ISO = PF_ISO +AF_OSI = PF_OSI +AF_ECMA = PF_ECMA +AF_DATAKIT = PF_DATAKIT +AF_CCITT = PF_CCITT +AF_SNA = PF_SNA +AF_DECnet = PF_DECnet +AF_DLI = PF_DLI +AF_LAT = PF_LAT +AF_HYLINK = PF_HYLINK +AF_APPLETALK = PF_APPLETALK +AF_ROUTE = PF_ROUTE +AF_LINK = PF_LINK +pseudo_AF_XTP = PF_XTP +AF_COIP = PF_COIP +AF_CNT = PF_CNT +pseudo_AF_RTIP = PF_RTIP +AF_IPX = PF_IPX +AF_SIP = PF_SIP +pseudo_AF_PIP = PF_PIP +AF_ISDN = PF_ISDN +AF_E164 = AF_ISDN +pseudo_AF_KEY = PF_KEY +AF_INET6 = PF_INET6 +AF_NATM = PF_NATM +AF_ATM = PF_ATM +pseudo_AF_HDRCMPLT = PF_HDRCMPLT +AF_NETGRAPH = PF_NETGRAPH +AF_MAX = PF_MAX +SOMAXCONN = 128 + +# Included from bits/sockaddr.h +_BITS_SOCKADDR_H = 1 +def __SOCKADDR_COMMON(sa_prefix): return \ + +_HAVE_SA_LEN = 1 +_SS_SIZE = 128 +def CMSG_FIRSTHDR(mhdr): return \ + +CMGROUP_MAX = 16 +SOL_SOCKET = 0xffff +LOCAL_PEERCRED = 0x001 +LOCAL_CREDS = 0x002 +LOCAL_CONNWAIT = 0x004 + +# Included from bits/socket2.h +def IN_CLASSA(a): return ((((in_addr_t)(a)) & (-2147483648)) == 0) + +IN_CLASSA_NET = (-16777216) +IN_CLASSA_NSHIFT = 24 +IN_CLASSA_HOST = ((-1) & ~IN_CLASSA_NET) +IN_CLASSA_MAX = 128 +def IN_CLASSB(a): return ((((in_addr_t)(a)) & (-1073741824)) == (-2147483648)) + +IN_CLASSB_NET = (-65536) +IN_CLASSB_NSHIFT = 16 +IN_CLASSB_HOST = ((-1) & ~IN_CLASSB_NET) +IN_CLASSB_MAX = 65536 +def IN_CLASSC(a): return ((((in_addr_t)(a)) & (-536870912)) == (-1073741824)) + +IN_CLASSC_NET = (-256) +IN_CLASSC_NSHIFT = 8 +IN_CLASSC_HOST = ((-1) & ~IN_CLASSC_NET) +def IN_CLASSD(a): return ((((in_addr_t)(a)) & (-268435456)) == (-536870912)) + +def IN_MULTICAST(a): return IN_CLASSD(a) + +def IN_EXPERIMENTAL(a): return ((((in_addr_t)(a)) & (-536870912)) == (-536870912)) + +def IN_BADCLASS(a): return ((((in_addr_t)(a)) & (-268435456)) == (-268435456)) + +IN_LOOPBACKNET = 127 +INET_ADDRSTRLEN = 16 +INET6_ADDRSTRLEN = 46 + +# Included from bits/in.h +IMPLINK_IP = 155 +IMPLINK_LOWEXPER = 156 +IMPLINK_HIGHEXPER = 158 +IPPROTO_DIVERT = 258 +SOL_IP = 0 +IP_OPTIONS = 1 +IP_HDRINCL = 2 +IP_TOS = 3 +IP_TTL = 4 +IP_RECVOPTS = 5 +IP_RECVRETOPTS = 6 +IP_RECVDSTADDR = 7 +IP_SENDSRCADDR = IP_RECVDSTADDR +IP_RETOPTS = 8 +IP_MULTICAST_IF = 9 +IP_MULTICAST_TTL = 10 +IP_MULTICAST_LOOP = 11 +IP_ADD_MEMBERSHIP = 12 +IP_DROP_MEMBERSHIP = 13 +IP_MULTICAST_VIF = 14 +IP_RSVP_ON = 15 +IP_RSVP_OFF = 16 +IP_RSVP_VIF_ON = 17 +IP_RSVP_VIF_OFF = 18 +IP_PORTRANGE = 19 +IP_RECVIF = 20 +IP_IPSEC_POLICY = 21 +IP_FAITH = 22 +IP_ONESBCAST = 23 +IP_NONLOCALOK = 24 +IP_FW_TABLE_ADD = 40 +IP_FW_TABLE_DEL = 41 +IP_FW_TABLE_FLUSH = 42 +IP_FW_TABLE_GETSIZE = 43 +IP_FW_TABLE_LIST = 44 +IP_FW_ADD = 50 +IP_FW_DEL = 51 +IP_FW_FLUSH = 52 +IP_FW_ZERO = 53 +IP_FW_GET = 54 +IP_FW_RESETLOG = 55 +IP_FW_NAT_CFG = 56 +IP_FW_NAT_DEL = 57 +IP_FW_NAT_GET_CONFIG = 58 +IP_FW_NAT_GET_LOG = 59 +IP_DUMMYNET_CONFIGURE = 60 +IP_DUMMYNET_DEL = 61 +IP_DUMMYNET_FLUSH = 62 +IP_DUMMYNET_GET = 64 +IP_RECVTTL = 65 +IP_MINTTL = 66 +IP_DONTFRAG = 67 +IP_ADD_SOURCE_MEMBERSHIP = 70 +IP_DROP_SOURCE_MEMBERSHIP = 71 +IP_BLOCK_SOURCE = 72 +IP_UNBLOCK_SOURCE = 73 +IP_MSFILTER = 74 +MCAST_JOIN_GROUP = 80 +MCAST_LEAVE_GROUP = 81 +MCAST_JOIN_SOURCE_GROUP = 82 +MCAST_LEAVE_SOURCE_GROUP = 83 +MCAST_BLOCK_SOURCE = 84 +MCAST_UNBLOCK_SOURCE = 85 +IP_DEFAULT_MULTICAST_TTL = 1 +IP_DEFAULT_MULTICAST_LOOP = 1 +IP_MIN_MEMBERSHIPS = 31 +IP_MAX_MEMBERSHIPS = 4095 +IP_MAX_SOURCE_FILTER = 1024 +MCAST_UNDEFINED = 0 +MCAST_INCLUDE = 1 +MCAST_EXCLUDE = 2 +IP_PORTRANGE_DEFAULT = 0 +IP_PORTRANGE_HIGH = 1 +IP_PORTRANGE_LOW = 2 +IPCTL_FORWARDING = 1 +IPCTL_SENDREDIRECTS = 2 +IPCTL_DEFTTL = 3 +IPCTL_DEFMTU = 4 +IPCTL_RTEXPIRE = 5 +IPCTL_RTMINEXPIRE = 6 +IPCTL_RTMAXCACHE = 7 +IPCTL_SOURCEROUTE = 8 +IPCTL_DIRECTEDBROADCAST = 9 +IPCTL_INTRQMAXLEN = 10 +IPCTL_INTRQDROPS = 11 +IPCTL_STATS = 12 +IPCTL_ACCEPTSOURCEROUTE = 13 +IPCTL_FASTFORWARDING = 14 +IPCTL_KEEPFAITH = 15 +IPCTL_GIF_TTL = 16 +IPCTL_MAXID = 17 +IPV6_SOCKOPT_RESERVED1 = 3 +IPV6_UNICAST_HOPS = 4 +IPV6_MULTICAST_IF = 9 +IPV6_MULTICAST_HOPS = 10 +IPV6_MULTICAST_LOOP = 11 +IPV6_JOIN_GROUP = 12 +IPV6_LEAVE_GROUP = 13 +IPV6_PORTRANGE = 14 +ICMP6_FILTER = 18 +IPV6_CHECKSUM = 26 +IPV6_V6ONLY = 27 +IPV6_IPSEC_POLICY = 28 +IPV6_FAITH = 29 +IPV6_FW_ADD = 30 +IPV6_FW_DEL = 31 +IPV6_FW_FLUSH = 32 +IPV6_FW_ZERO = 33 +IPV6_FW_GET = 34 +IPV6_RTHDRDSTOPTS = 35 +IPV6_RECVPKTINFO = 36 +IPV6_RECVHOPLIMIT = 37 +IPV6_RECVRTHDR = 38 +IPV6_RECVHOPOPTS = 39 +IPV6_RECVDSTOPTS = 40 +IPV6_USE_MIN_MTU = 42 +IPV6_RECVPATHMTU = 43 +IPV6_PATHMTU = 44 +IPV6_PKTINFO = 46 +IPV6_HOPLIMIT = 47 +IPV6_NEXTHOP = 48 +IPV6_HOPOPTS = 49 +IPV6_DSTOPTS = 50 +IPV6_RTHDR = 51 +IPV6_RECVTCLASS = 57 +IPV6_AUTOFLOWLABEL = 59 +IPV6_TCLASS = 61 +IPV6_DONTFRAG = 62 +IPV6_PREFER_TEMPADDR = 63 +IPV6_ADD_MEMBERSHIP = IPV6_JOIN_GROUP +IPV6_DROP_MEMBERSHIP = IPV6_LEAVE_GROUP +IPV6_RXHOPOPTS = IPV6_HOPOPTS +IPV6_RXDSTOPTS = IPV6_DSTOPTS +SOL_IPV6 = 41 +SOL_ICMPV6 = 58 +IPV6_DEFAULT_MULTICAST_HOPS = 1 +IPV6_DEFAULT_MULTICAST_LOOP = 1 +IPV6_PORTRANGE_DEFAULT = 0 +IPV6_PORTRANGE_HIGH = 1 +IPV6_PORTRANGE_LOW = 2 +IPV6_RTHDR_LOOSE = 0 +IPV6_RTHDR_STRICT = 1 +IPV6_RTHDR_TYPE_0 = 0 +IPV6CTL_FORWARDING = 1 +IPV6CTL_SENDREDIRECTS = 2 +IPV6CTL_DEFHLIM = 3 +IPV6CTL_FORWSRCRT = 5 +IPV6CTL_STATS = 6 +IPV6CTL_MRTSTATS = 7 +IPV6CTL_MRTPROTO = 8 +IPV6CTL_MAXFRAGPACKETS = 9 +IPV6CTL_SOURCECHECK = 10 +IPV6CTL_SOURCECHECK_LOGINT = 11 +IPV6CTL_ACCEPT_RTADV = 12 +IPV6CTL_KEEPFAITH = 13 +IPV6CTL_LOG_INTERVAL = 14 +IPV6CTL_HDRNESTLIMIT = 15 +IPV6CTL_DAD_COUNT = 16 +IPV6CTL_AUTO_FLOWLABEL = 17 +IPV6CTL_DEFMCASTHLIM = 18 +IPV6CTL_GIF_HLIM = 19 +IPV6CTL_KAME_VERSION = 20 +IPV6CTL_USE_DEPRECATED = 21 +IPV6CTL_RR_PRUNE = 22 +IPV6CTL_V6ONLY = 24 +IPV6CTL_RTEXPIRE = 25 +IPV6CTL_RTMINEXPIRE = 26 +IPV6CTL_RTMAXCACHE = 27 +IPV6CTL_USETEMPADDR = 32 +IPV6CTL_TEMPPLTIME = 33 +IPV6CTL_TEMPVLTIME = 34 +IPV6CTL_AUTO_LINKLOCAL = 35 +IPV6CTL_RIP6STATS = 36 +IPV6CTL_PREFER_TEMPADDR = 37 +IPV6CTL_ADDRCTLPOLICY = 38 +IPV6CTL_USE_DEFAULTZONE = 39 +IPV6CTL_MAXFRAGS = 41 +IPV6CTL_MCAST_PMTU = 44 +IPV6CTL_STEALTH = 45 +ICMPV6CTL_ND6_ONLINKNSRFC4861 = 47 +IPV6CTL_MAXID = 48 + +# Included from endian.h +_ENDIAN_H = 1 +__LITTLE_ENDIAN = 1234 +__BIG_ENDIAN = 4321 +__PDP_ENDIAN = 3412 + +# Included from bits/endian.h +__BYTE_ORDER = __LITTLE_ENDIAN +__FLOAT_WORD_ORDER = __BYTE_ORDER +LITTLE_ENDIAN = __LITTLE_ENDIAN +BIG_ENDIAN = __BIG_ENDIAN +PDP_ENDIAN = __PDP_ENDIAN +BYTE_ORDER = __BYTE_ORDER + +# Included from bits/byteswap.h +_BITS_BYTESWAP_H = 1 +def __bswap_constant_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_constant_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_constant_64(x): return \ + +def __bswap_64(x): return \ + +def htobe16(x): return __bswap_16 (x) + +def htole16(x): return (x) + +def be16toh(x): return __bswap_16 (x) + +def le16toh(x): return (x) + +def htobe32(x): return __bswap_32 (x) + +def htole32(x): return (x) + +def be32toh(x): return __bswap_32 (x) + +def le32toh(x): return (x) + +def htobe64(x): return __bswap_64 (x) + +def htole64(x): return (x) + +def be64toh(x): return __bswap_64 (x) + +def le64toh(x): return (x) + +def htobe16(x): return (x) + +def htole16(x): return __bswap_16 (x) + +def be16toh(x): return (x) + +def le16toh(x): return __bswap_16 (x) + +def htobe32(x): return (x) + +def htole32(x): return __bswap_32 (x) + +def be32toh(x): return (x) + +def le32toh(x): return __bswap_32 (x) + +def htobe64(x): return (x) + +def htole64(x): return __bswap_64 (x) + +def be64toh(x): return (x) + +def le64toh(x): return __bswap_64 (x) + +def ntohl(x): return (x) + +def ntohs(x): return (x) + +def htonl(x): return (x) + +def htons(x): return (x) + +def ntohl(x): return __bswap_32 (x) + +def ntohs(x): return __bswap_16 (x) + +def htonl(x): return __bswap_32 (x) + +def htons(x): return __bswap_16 (x) + +def IN6_IS_ADDR_UNSPECIFIED(a): return \ + +def IN6_IS_ADDR_LOOPBACK(a): return \ + +def IN6_IS_ADDR_LINKLOCAL(a): return \ + +def IN6_IS_ADDR_SITELOCAL(a): return \ + +def IN6_IS_ADDR_V4MAPPED(a): return \ + +def IN6_IS_ADDR_V4COMPAT(a): return \ + +def IN6_IS_ADDR_MC_NODELOCAL(a): return \ + +def IN6_IS_ADDR_MC_LINKLOCAL(a): return \ + +def IN6_IS_ADDR_MC_SITELOCAL(a): return \ + +def IN6_IS_ADDR_MC_ORGLOCAL(a): return \ + +def IN6_IS_ADDR_MC_GLOBAL(a): return \ + --- /dev/null +++ b/Lib/plat-gnukfreebsd8/TYPES.py @@ -0,0 +1,303 @@ +# Generated by h2py from /usr/include/sys/types.h +_SYS_TYPES_H = 1 + +# Included from features.h +_FEATURES_H = 1 +__USE_ANSI = 1 +__FAVOR_BSD = 1 +_ISOC99_SOURCE = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 200809 +_XOPEN_SOURCE = 700 +_XOPEN_SOURCE_EXTENDED = 1 +_LARGEFILE64_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +_ATFILE_SOURCE = 1 +_BSD_SOURCE = 1 +_SVID_SOURCE = 1 +__USE_ISOC99 = 1 +__USE_ISOC95 = 1 +_POSIX_SOURCE = 1 +_POSIX_C_SOURCE = 2 +_POSIX_C_SOURCE = 199506 +_POSIX_C_SOURCE = 200112 +_POSIX_C_SOURCE = 200809 +__USE_POSIX_IMPLICITLY = 1 +__USE_POSIX = 1 +__USE_POSIX2 = 1 +__USE_POSIX199309 = 1 +__USE_POSIX199506 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN2K8 = 1 +_ATFILE_SOURCE = 1 +__USE_XOPEN = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_UNIX98 = 1 +_LARGEFILE_SOURCE = 1 +__USE_XOPEN2K8 = 1 +__USE_XOPEN2K = 1 +__USE_ISOC99 = 1 +__USE_XOPEN_EXTENDED = 1 +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_FILE_OFFSET64 = 1 +__USE_MISC = 1 +__USE_BSD = 1 +__USE_SVID = 1 +__USE_ATFILE = 1 +__USE_GNU = 1 +__USE_REENTRANT = 1 +__USE_FORTIFY_LEVEL = 2 +__USE_FORTIFY_LEVEL = 1 +__USE_FORTIFY_LEVEL = 0 + +# Included from bits/predefs.h +__STDC_IEC_559__ = 1 +__STDC_IEC_559_COMPLEX__ = 1 +__STDC_ISO_10646__ = 200009 +__GNU_LIBRARY__ = 6 +__GLIBC__ = 2 +__GLIBC_MINOR__ = 11 +__GLIBC_HAVE_LONG_LONG = 1 + +# Included from sys/cdefs.h +_SYS_CDEFS_H = 1 +def __NTH(fct): return fct + +def __NTH(fct): return fct + +def __P(args): return args + +def __PMT(args): return args + +def __STRING(x): return #x + +def __bos(ptr): return __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) + +def __bos0(ptr): return __builtin_object_size (ptr, 0) + +def __warnattr(msg): return __attribute__((__warning__ (msg))) + +__flexarr = [] +__flexarr = [0] +__flexarr = [] +__flexarr = [1] +def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname) + +def __attribute__(xyz): return + +def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x))) + +def __attribute_format_arg__(x): return + + +# Included from bits/wordsize.h +__WORDSIZE = 32 +__LDBL_COMPAT = 1 +def __LDBL_REDIR_DECL(name): return \ + +__USE_LARGEFILE = 1 +__USE_LARGEFILE64 = 1 +__USE_EXTERN_INLINES = 1 +__USE_EXTERN_INLINES_IN_LIBC = 1 + +# Included from gnu/stubs.h + +# Included from bits/types.h +_BITS_TYPES_H = 1 +__S32_TYPE = int +__SWORD_TYPE = int +__SLONG32_TYPE = int + +# Included from bits/typesizes.h +_BITS_TYPESIZES_H = 1 +__PID_T_TYPE = __S32_TYPE +__CLOCK_T_TYPE = __S32_TYPE +__SWBLK_T_TYPE = __S32_TYPE +__CLOCKID_T_TYPE = __S32_TYPE +__TIMER_T_TYPE = __S32_TYPE +__SSIZE_T_TYPE = __SWORD_TYPE +__FD_SETSIZE = 1024 + +# Included from time.h +_TIME_H = 1 + +# Included from bits/time.h +_BITS_TIME_H = 1 +CLOCKS_PER_SEC = 1000000 +CLK_TCK = 128 +CLOCK_REALTIME = 0 +CLOCK_PROCESS_CPUTIME_ID = 2 +CLOCK_THREAD_CPUTIME_ID = 3 +CLOCK_MONOTONIC = 4 +CLOCK_VIRTUAL = 1 +CLOCK_PROF = 2 +CLOCK_UPTIME = 5 +CLOCK_UPTIME_PRECISE = 7 +CLOCK_UPTIME_FAST = 8 +CLOCK_REALTIME_PRECISE = 9 +CLOCK_REALTIME_FAST = 10 +CLOCK_MONOTONIC_PRECISE = 11 +CLOCK_MONOTONIC_FAST = 12 +CLOCK_SECOND = 13 +TIMER_RELTIME = 0 +TIMER_ABSTIME = 1 +_STRUCT_TIMEVAL = 1 +CLK_TCK = CLOCKS_PER_SEC +__clock_t_defined = 1 +__time_t_defined = 1 +__clockid_t_defined = 1 +__timer_t_defined = 1 +__timespec_defined = 1 + +# Included from xlocale.h +_XLOCALE_H = 1 +def __isleap(year): return \ + +__BIT_TYPES_DEFINED__ = 1 + +# Included from endian.h +_ENDIAN_H = 1 +__LITTLE_ENDIAN = 1234 +__BIG_ENDIAN = 4321 +__PDP_ENDIAN = 3412 + +# Included from bits/endian.h +__BYTE_ORDER = __LITTLE_ENDIAN +__FLOAT_WORD_ORDER = __BYTE_ORDER +LITTLE_ENDIAN = __LITTLE_ENDIAN +BIG_ENDIAN = __BIG_ENDIAN +PDP_ENDIAN = __PDP_ENDIAN +BYTE_ORDER = __BYTE_ORDER + +# Included from bits/byteswap.h +_BITS_BYTESWAP_H = 1 +def __bswap_constant_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_16(x): return \ + +def __bswap_constant_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_32(x): return \ + +def __bswap_constant_64(x): return \ + +def __bswap_64(x): return \ + +def htobe16(x): return __bswap_16 (x) + +def htole16(x): return (x) + +def be16toh(x): return __bswap_16 (x) + +def le16toh(x): return (x) + +def htobe32(x): return __bswap_32 (x) + +def htole32(x): return (x) + +def be32toh(x): return __bswap_32 (x) + +def le32toh(x): return (x) + +def htobe64(x): return __bswap_64 (x) + +def htole64(x): return (x) + +def be64toh(x): return __bswap_64 (x) + +def le64toh(x): return (x) + +def htobe16(x): return (x) + +def htole16(x): return __bswap_16 (x) + +def be16toh(x): return (x) + +def le16toh(x): return __bswap_16 (x) + +def htobe32(x): return (x) + +def htole32(x): return __bswap_32 (x) + +def be32toh(x): return (x) + +def le32toh(x): return __bswap_32 (x) + +def htobe64(x): return (x) + +def htole64(x): return __bswap_64 (x) + +def be64toh(x): return (x) + +def le64toh(x): return __bswap_64 (x) + + +# Included from sys/select.h +_SYS_SELECT_H = 1 + +# Included from bits/select.h +def __FD_ZERO(fdsp): return \ + +def __FD_ZERO(set): return \ + + +# Included from bits/sigset.h +_SIGSET_H_types = 1 +_SIGSET_H_fns = 1 +def __sigword(sig): return (((sig) - 1) >> 5) + +def __sigemptyset(set): return \ + +def __sigfillset(set): return \ + +def __sigisemptyset(set): return \ + +def __FDELT(d): return ((d) / __NFDBITS) + +FD_SETSIZE = __FD_SETSIZE +def FD_ZERO(fdsetp): return __FD_ZERO (fdsetp) + + +# Included from sys/sysmacros.h +_SYS_SYSMACROS_H = 1 +def minor(dev): return ((int)((dev) & (-65281))) + +def gnu_dev_major(dev): return major (dev) + +def gnu_dev_minor(dev): return minor (dev) + + +# Included from bits/pthreadtypes.h +_BITS_PTHREADTYPES_H = 1 + +# Included from bits/sched.h +SCHED_OTHER = 2 +SCHED_FIFO = 1 +SCHED_RR = 3 +CSIGNAL = 0x000000ff +CLONE_VM = 0x00000100 +CLONE_FS = 0x00000200 +CLONE_FILES = 0x00000400 +CLONE_SIGHAND = 0x00000800 +CLONE_PTRACE = 0x00002000 +CLONE_VFORK = 0x00004000 +CLONE_SYSVSEM = 0x00040000 +__defined_schedparam = 1 +__CPU_SETSIZE = 128 +def __CPUELT(cpu): return ((cpu) / __NCPUBITS) + +def __CPU_ALLOC_SIZE(count): return \ + +def __CPU_ALLOC(count): return __sched_cpualloc (count) + +def __CPU_FREE(cpuset): return __sched_cpufree (cpuset) +