Page 3 of 6 FirstFirst 123456 LastLast
Results 51 to 75 of 150
  1. #51
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Test assert().
    *
    * This is hairier than you'd think, involving games with
    * stdio and signals.
    *
    */

    #include <signal.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <setjmp.h>

    jmp_buf rec;
    char buf[160];

    static void
    sigabrt (int unused)
    {
    longjmp (rec, 1); /* recover control */
    }

    #undef NDEBUG
    #include <assert.h>
    static void
    assert1 (void)
    {
    assert (1 == 2);
    }

    static void
    assert2 (void)
    {
    assert (1 == 1);
    }


    #define NDEBUG
    #include <assert.h>
    static void
    assert3 (void)
    {
    assert (2 == 3);
    }

    int
    main (void)
    {

    volatile int failed = 1;

    fclose (stderr);
    stderr = tmpfile ();
    if(!stderr)
    abort ();

    signal (SIGABRT, sigabrt);

    if (!setjmp (rec))
    assert1 ();
    else
    failed = 0; /* should happen */

    if (!setjmp (rec))
    assert2 ();
    else
    failed = 1; /* should not happen */

    if (!setjmp (rec))
    assert3 ();
    else
    failed = 1; /* should not happen */

    rewind (stderr);
    fgets (buf, 160, stderr);
    if (!strstr (buf, "1 == 2"))
    failed = 1;

    fgets (buf, 160, stderr);
    if (strstr (buf, "1 == 1"))
    failed = 1;

    fgets (buf, 160, stderr);
    if (strstr (buf, "2 == 3"))
    failed = 1;

    return failed;
    }

  2. #52
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Test assert_perror().
    *
    * This is hairier than you'd think, involving games with
    * stdio and signals.
    *
    */

    #include <signal.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <setjmp.h>

    jmp_buf rec;
    char buf[160];

    static void
    sigabrt (int unused)
    {
    longjmp (rec, 1); /* recover control */
    }

    #undef NDEBUG
    #include <assert.h>
    static void
    assert1 (void)
    {
    assert_perror (1);
    }

    static void
    assert2 (void)
    {
    assert_perror (0);
    }

    #define NDEBUG
    #include <assert.h>
    static void
    assert3 (void)
    {
    assert_perror (2);
    }

    int
    main(void)
    {
    volatile int failed = 1; /* safety in presence of longjmp() */

    fclose (stderr);
    stderr = tmpfile ();
    if (!stderr)
    abort ();

    signal (SIGABRT, sigabrt);

    if (!setjmp (rec))
    assert1 ();
    else
    failed = 0; /* should happen */

    if (!setjmp (rec))
    assert2 ();
    else
    failed = 1; /* should not happen */

    if (!setjmp (rec))
    assert3 ();
    else
    failed = 1; /* should not happen */

    rewind (stderr);
    fgets (buf, 160, stderr);
    if (!strstr(buf, strerror (1)))
    failed = 1;

    fgets (buf, 160, stderr);
    if (strstr (buf, strerror (0)))
    failed = 1;

    fgets (buf, 160, stderr);
    if (strstr (buf, strerror (2)))
    failed = 1;

    return failed;
    }

  3. #53
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    libc {
    GLIBC_2.0 {
    # functions used in inline functions or macros
    __assert_fail; __assert_perror_fail;
    }
    GLIBC_2.2 {
    # just for standard compliance
    __assert;
    }
    }

  4. #54
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <[email protected]>, 2003.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _BITS_ATOMIC_H
    #define _BITS_ATOMIC_H 1

    /* We have by default no support for atomic operations. So define
    them non-atomic. If this is a problem somebody will have to come
    up with real definitions. */

    /* The only basic operation needed is compare and exchange. */
    #define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \
    ({ __typeof (mem) __gmemp = (mem); \
    __typeof (*mem) __gret = *__gmemp; \
    __typeof (*mem) __gnewval = (newval); \
    \
    if (__gret == (oldval)) \
    *__gmemp = __gnewval; \
    __gret; })

    #define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \
    ({ __typeof (mem) __gmemp = (mem); \
    __typeof (*mem) __gnewval = (newval); \
    \
    *__gmemp == (oldval) ? (*__gmemp = __gnewval, 0) : 1; })

    #endif /* bits/atomic.h */

  5. #55
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Macros to swap the order of bytes in integer values.
    Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H
    # error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
    #endif

    #ifndef _BITS_BYTESWAP_H
    #define _BITS_BYTESWAP_H 1

    #include <features.h>
    #include <bits/types.h>

    /* Swap bytes in 16 bit value. */
    #define __bswap_constant_16(x) \
    ((unsigned short int)((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8)))

    /* Get __bswap_16. */
    #include <bits/byteswap-16.h>

    /* Swap bytes in 32 bit value. */
    #define __bswap_constant_32(x) \
    ((((x) & 0xff000000u) >> 24) | (((x) & 0x00ff0000u) >> 8) | \
    (((x) & 0x0000ff00u) << 8) | (((x) & 0x000000ffu) << 24))

    #ifdef __GNUC__
    # if __GNUC_PREREQ (4, 3)
    static __inline unsigned int
    __bswap_32 (unsigned int __bsx)
    {
    return __builtin_bswap32 (__bsx);
    }
    # else
    # define __bswap_32(x) \
    (__extension__ \
    ({ register unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
    # endif
    #else
    static __inline unsigned int
    __bswap_32 (unsigned int __bsx)
    {
    return __bswap_constant_32 (__bsx);
    }
    #endif

    /* Swap bytes in 64 bit value. */
    #if __GNUC_PREREQ (2, 0)
    # define __bswap_constant_64(x) \
    (__extension__ ((((x) & 0xff00000000000000ull) >> 56) \
    | (((x) & 0x00ff000000000000ull) >> 40) \
    | (((x) & 0x0000ff0000000000ull) >> 24) \
    | (((x) & 0x000000ff00000000ull) >> 8) \
    | (((x) & 0x00000000ff000000ull) << 8) \
    | (((x) & 0x0000000000ff0000ull) << 24) \
    | (((x) & 0x000000000000ff00ull) << 40) \
    | (((x) & 0x00000000000000ffull) << 56)))

    # if __GNUC_PREREQ (4, 3)
    static __inline __uint64_t
    __bswap_64 (__uint64_t __bsx)
    {
    return __builtin_bswap64 (__bsx);
    }
    # else
    # define __bswap_64(x) \
    (__extension__ \
    ({ union { __extension__ __uint64_t __ll; \
    unsigned int __l[2]; } __w, __r; \
    if (__builtin_constant_p (x)) \
    __r.__ll = __bswap_constant_64 (x); \
    else \
    { \
    __w.__ll = (x); \
    __r.__l[0] = __bswap_32 (__w.__l[1]); \
    __r.__l[1] = __bswap_32 (__w.__l[0]); \
    } \
    __r.__ll; }))
    # endif
    #elif __GLIBC_HAVE_LONG_LONG
    # define __bswap_constant_64(x) \
    ((((x) & 0xff00000000000000ull) >> 56) \
    | (((x) & 0x00ff000000000000ull) >> 40) \
    | (((x) & 0x0000ff0000000000ull) >> 24) \
    | (((x) & 0x000000ff00000000ull) >> 8) \
    | (((x) & 0x00000000ff000000ull) << 8) \
    | (((x) & 0x0000000000ff0000ull) << 24) \
    | (((x) & 0x000000000000ff00ull) << 40) \
    | (((x) & 0x00000000000000ffull) << 56))

    static __inline __uint64_t
    __bswap_64 (__uint64_t __bsx)
    {
    return __bswap_constant_64 (__bsx);
    }
    #endif

    #endif /* _BITS_BYTESWAP_H */

  6. #56
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Macros to swap the order of bytes in 16-bit integer values.
    Copyright (C) 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _BITS_BYTESWAP_H
    # error "Never use <bits/byteswap-16.h> directly; include <byteswap.h> instead."
    #endif

    #ifdef __GNUC__
    # define __bswap_16(x) \
    (__extension__ \
    ({ unsigned short int __bsx = (unsigned short int) (x); \
    __bswap_constant_16 (__bsx); }))
    #else
    static __inline unsigned short int
    __bswap_16 (unsigned short int __bsx)
    {
    return __bswap_constant_16 (__bsx);
    }
    #endif

  7. #57
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
    Copyright (C) 1993,1995-1998,2000,2001,2003,2004,2007,2009,2010
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _UNISTD_H
    # error "Never use <bits/confname.h> directly; include <unistd.h> instead."
    #endif

    /* Values for the NAME argument to `pathconf' and `fpathconf'. */
    enum
    {
    _PC_LINK_MAX,
    #define _PC_LINK_MAX _PC_LINK_MAX
    _PC_MAX_CANON,
    #define _PC_MAX_CANON _PC_MAX_CANON
    _PC_MAX_INPUT,
    #define _PC_MAX_INPUT _PC_MAX_INPUT
    _PC_NAME_MAX,
    #define _PC_NAME_MAX _PC_NAME_MAX
    _PC_PATH_MAX,
    #define _PC_PATH_MAX _PC_PATH_MAX
    _PC_PIPE_BUF,
    #define _PC_PIPE_BUF _PC_PIPE_BUF
    _PC_CHOWN_RESTRICTED,
    #define _PC_CHOWN_RESTRICTED _PC_CHOWN_RESTRICTED
    _PC_NO_TRUNC,
    #define _PC_NO_TRUNC _PC_NO_TRUNC
    _PC_VDISABLE,
    #define _PC_VDISABLE _PC_VDISABLE
    _PC_SYNC_IO,
    #define _PC_SYNC_IO _PC_SYNC_IO
    _PC_ASYNC_IO,
    #define _PC_ASYNC_IO _PC_ASYNC_IO
    _PC_PRIO_IO,
    #define _PC_PRIO_IO _PC_PRIO_IO
    _PC_SOCK_MAXBUF,
    #define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF
    _PC_FILESIZEBITS,
    #define _PC_FILESIZEBITS _PC_FILESIZEBITS
    _PC_REC_INCR_XFER_SIZE,
    #define _PC_REC_INCR_XFER_SIZE _PC_REC_INCR_XFER_SIZE
    _PC_REC_MAX_XFER_SIZE,
    #define _PC_REC_MAX_XFER_SIZE _PC_REC_MAX_XFER_SIZE
    _PC_REC_MIN_XFER_SIZE,
    #define _PC_REC_MIN_XFER_SIZE _PC_REC_MIN_XFER_SIZE
    _PC_REC_XFER_ALIGN,
    #define _PC_REC_XFER_ALIGN _PC_REC_XFER_ALIGN
    _PC_ALLOC_SIZE_MIN,
    #define _PC_ALLOC_SIZE_MIN _PC_ALLOC_SIZE_MIN
    _PC_SYMLINK_MAX,
    #define _PC_SYMLINK_MAX _PC_SYMLINK_MAX
    _PC_2_SYMLINKS
    #define _PC_2_SYMLINKS _PC_2_SYMLINKS
    };

    /* Values for the argument to `sysconf'. */
    enum
    {
    _SC_ARG_MAX,
    #define _SC_ARG_MAX _SC_ARG_MAX
    _SC_CHILD_MAX,
    #define _SC_CHILD_MAX _SC_CHILD_MAX
    _SC_CLK_TCK,
    #define _SC_CLK_TCK _SC_CLK_TCK
    _SC_NGROUPS_MAX,
    #define _SC_NGROUPS_MAX _SC_NGROUPS_MAX
    _SC_OPEN_MAX,
    #define _SC_OPEN_MAX _SC_OPEN_MAX
    _SC_STREAM_MAX,
    #define _SC_STREAM_MAX _SC_STREAM_MAX
    _SC_TZNAME_MAX,
    #define _SC_TZNAME_MAX _SC_TZNAME_MAX
    _SC_JOB_CONTROL,
    #define _SC_JOB_CONTROL _SC_JOB_CONTROL
    _SC_SAVED_IDS,
    #define _SC_SAVED_IDS _SC_SAVED_IDS
    _SC_REALTIME_SIGNALS,
    #define _SC_REALTIME_SIGNALS _SC_REALTIME_SIGNALS
    _SC_PRIORITY_SCHEDULING,
    #define _SC_PRIORITY_SCHEDULING _SC_PRIORITY_SCHEDULING
    _SC_TIMERS,
    #define _SC_TIMERS _SC_TIMERS
    _SC_ASYNCHRONOUS_IO,
    #define _SC_ASYNCHRONOUS_IO _SC_ASYNCHRONOUS_IO
    _SC_PRIORITIZED_IO,
    #define _SC_PRIORITIZED_IO _SC_PRIORITIZED_IO
    _SC_SYNCHRONIZED_IO,
    #define _SC_SYNCHRONIZED_IO _SC_SYNCHRONIZED_IO
    _SC_FSYNC,
    #define _SC_FSYNC _SC_FSYNC
    _SC_MAPPED_FILES,
    #define _SC_MAPPED_FILES _SC_MAPPED_FILES
    _SC_MEMLOCK,
    #define _SC_MEMLOCK _SC_MEMLOCK
    _SC_MEMLOCK_RANGE,
    #define _SC_MEMLOCK_RANGE _SC_MEMLOCK_RANGE
    _SC_MEMORY_PROTECTION,
    #define _SC_MEMORY_PROTECTION _SC_MEMORY_PROTECTION
    _SC_MESSAGE_PASSING,
    #define _SC_MESSAGE_PASSING _SC_MESSAGE_PASSING
    _SC_SEMAPHORES,
    #define _SC_SEMAPHORES _SC_SEMAPHORES
    _SC_SHARED_MEMORY_OBJECTS,
    #define _SC_SHARED_MEMORY_OBJECTS _SC_SHARED_MEMORY_OBJECTS
    _SC_AIO_LISTIO_MAX,
    #define _SC_AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX
    _SC_AIO_MAX,
    #define _SC_AIO_MAX _SC_AIO_MAX
    _SC_AIO_PRIO_DELTA_MAX,
    #define _SC_AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX
    _SC_DELAYTIMER_MAX,
    #define _SC_DELAYTIMER_MAX _SC_DELAYTIMER_MAX
    _SC_MQ_OPEN_MAX,
    #define _SC_MQ_OPEN_MAX _SC_MQ_OPEN_MAX
    _SC_MQ_PRIO_MAX,
    #define _SC_MQ_PRIO_MAX _SC_MQ_PRIO_MAX
    _SC_VERSION,
    #define _SC_VERSION _SC_VERSION
    _SC_PAGESIZE,
    #define _SC_PAGESIZE _SC_PAGESIZE
    #define _SC_PAGE_SIZE _SC_PAGESIZE
    _SC_RTSIG_MAX,
    #define _SC_RTSIG_MAX _SC_RTSIG_MAX
    _SC_SEM_NSEMS_MAX,
    #define _SC_SEM_NSEMS_MAX _SC_SEM_NSEMS_MAX
    _SC_SEM_VALUE_MAX,
    #define _SC_SEM_VALUE_MAX _SC_SEM_VALUE_MAX
    _SC_SIGQUEUE_MAX,
    #define _SC_SIGQUEUE_MAX _SC_SIGQUEUE_MAX
    _SC_TIMER_MAX,
    #define _SC_TIMER_MAX _SC_TIMER_MAX

    /* Values for the argument to `sysconf'
    corresponding to _POSIX2_* symbols. */
    _SC_BC_BASE_MAX,
    #define _SC_BC_BASE_MAX _SC_BC_BASE_MAX
    _SC_BC_DIM_MAX,
    #define _SC_BC_DIM_MAX _SC_BC_DIM_MAX
    _SC_BC_SCALE_MAX,
    #define _SC_BC_SCALE_MAX _SC_BC_SCALE_MAX
    _SC_BC_STRING_MAX,
    #define _SC_BC_STRING_MAX _SC_BC_STRING_MAX
    _SC_COLL_WEIGHTS_MAX,
    #define _SC_COLL_WEIGHTS_MAX _SC_COLL_WEIGHTS_MAX
    _SC_EQUIV_CLASS_MAX,
    #define _SC_EQUIV_CLASS_MAX _SC_EQUIV_CLASS_MAX
    _SC_EXPR_NEST_MAX,
    #define _SC_EXPR_NEST_MAX _SC_EXPR_NEST_MAX
    _SC_LINE_MAX,
    #define _SC_LINE_MAX _SC_LINE_MAX
    _SC_RE_DUP_MAX,
    #define _SC_RE_DUP_MAX _SC_RE_DUP_MAX
    _SC_CHARCLASS_NAME_MAX,
    #define _SC_CHARCLASS_NAME_MAX _SC_CHARCLASS_NAME_MAX

    _SC_2_VERSION,
    #define _SC_2_VERSION _SC_2_VERSION
    _SC_2_C_BIND,
    #define _SC_2_C_BIND _SC_2_C_BIND
    _SC_2_C_DEV,
    #define _SC_2_C_DEV _SC_2_C_DEV
    _SC_2_FORT_DEV,
    #define _SC_2_FORT_DEV _SC_2_FORT_DEV
    _SC_2_FORT_RUN,
    #define _SC_2_FORT_RUN _SC_2_FORT_RUN
    _SC_2_SW_DEV,
    #define _SC_2_SW_DEV _SC_2_SW_DEV
    _SC_2_LOCALEDEF,
    #define _SC_2_LOCALEDEF _SC_2_LOCALEDEF

    _SC_PII,
    #define _SC_PII _SC_PII
    _SC_PII_XTI,
    #define _SC_PII_XTI _SC_PII_XTI
    _SC_PII_SOCKET,
    #define _SC_PII_SOCKET _SC_PII_SOCKET
    _SC_PII_INTERNET,
    #define _SC_PII_INTERNET _SC_PII_INTERNET
    _SC_PII_OSI,
    #define _SC_PII_OSI _SC_PII_OSI
    _SC_POLL,
    #define _SC_POLL _SC_POLL
    _SC_SELECT,
    #define _SC_SELECT _SC_SELECT
    _SC_UIO_MAXIOV,
    #define _SC_UIO_MAXIOV _SC_UIO_MAXIOV
    _SC_IOV_MAX = _SC_UIO_MAXIOV,
    #define _SC_IOV_MAX _SC_IOV_MAX
    _SC_PII_INTERNET_STREAM,
    #define _SC_PII_INTERNET_STREAM _SC_PII_INTERNET_STREAM
    _SC_PII_INTERNET_DGRAM,
    #define _SC_PII_INTERNET_DGRAM _SC_PII_INTERNET_DGRAM
    _SC_PII_OSI_COTS,
    #define _SC_PII_OSI_COTS _SC_PII_OSI_COTS
    _SC_PII_OSI_CLTS,
    #define _SC_PII_OSI_CLTS _SC_PII_OSI_CLTS
    _SC_PII_OSI_M,
    #define _SC_PII_OSI_M _SC_PII_OSI_M
    _SC_T_IOV_MAX,
    #define _SC_T_IOV_MAX _SC_T_IOV_MAX

    /* Values according to POSIX 1003.1c (POSIX threads). */
    _SC_THREADS,
    #define _SC_THREADS _SC_THREADS
    _SC_THREAD_SAFE_FUNCTIONS,
    #define _SC_THREAD_SAFE_FUNCTIONS _SC_THREAD_SAFE_FUNCTIONS
    _SC_GETGR_R_SIZE_MAX,
    #define _SC_GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX
    _SC_GETPW_R_SIZE_MAX,
    #define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX
    _SC_LOGIN_NAME_MAX,
    #define _SC_LOGIN_NAME_MAX _SC_LOGIN_NAME_MAX
    _SC_TTY_NAME_MAX,
    #define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX
    _SC_THREAD_DESTRUCTOR_ITERATIONS,
    #define _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_DESTRUCTOR_ITERATIONS
    _SC_THREAD_KEYS_MAX,
    #define _SC_THREAD_KEYS_MAX _SC_THREAD_KEYS_MAX
    _SC_THREAD_STACK_MIN,
    #define _SC_THREAD_STACK_MIN _SC_THREAD_STACK_MIN
    _SC_THREAD_THREADS_MAX,
    #define _SC_THREAD_THREADS_MAX _SC_THREAD_THREADS_MAX
    _SC_THREAD_ATTR_STACKADDR,
    #define _SC_THREAD_ATTR_STACKADDR _SC_THREAD_ATTR_STACKADDR
    _SC_THREAD_ATTR_STACKSIZE,
    #define _SC_THREAD_ATTR_STACKSIZE _SC_THREAD_ATTR_STACKSIZE
    _SC_THREAD_PRIORITY_SCHEDULING,
    #define _SC_THREAD_PRIORITY_SCHEDULING _SC_THREAD_PRIORITY_SCHEDULING
    _SC_THREAD_PRIO_INHERIT,
    #define _SC_THREAD_PRIO_INHERIT _SC_THREAD_PRIO_INHERIT
    _SC_THREAD_PRIO_PROTECT,
    #define _SC_THREAD_PRIO_PROTECT _SC_THREAD_PRIO_PROTECT
    _SC_THREAD_PROCESS_SHARED,
    #define _SC_THREAD_PROCESS_SHARED _SC_THREAD_PROCESS_SHARED

    _SC_NPROCESSORS_CONF,
    #define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF
    _SC_NPROCESSORS_ONLN,
    #define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN
    _SC_PHYS_PAGES,
    #define _SC_PHYS_PAGES _SC_PHYS_PAGES
    _SC_AVPHYS_PAGES,
    #define _SC_AVPHYS_PAGES _SC_AVPHYS_PAGES
    _SC_ATEXIT_MAX,
    #define _SC_ATEXIT_MAX _SC_ATEXIT_MAX
    _SC_PASS_MAX,
    #define _SC_PASS_MAX _SC_PASS_MAX

    _SC_XOPEN_VERSION,
    #define _SC_XOPEN_VERSION _SC_XOPEN_VERSION
    _SC_XOPEN_XCU_VERSION,
    #define _SC_XOPEN_XCU_VERSION _SC_XOPEN_XCU_VERSION
    _SC_XOPEN_UNIX,
    #define _SC_XOPEN_UNIX _SC_XOPEN_UNIX
    _SC_XOPEN_CRYPT,
    #define _SC_XOPEN_CRYPT _SC_XOPEN_CRYPT
    _SC_XOPEN_ENH_I18N,
    #define _SC_XOPEN_ENH_I18N _SC_XOPEN_ENH_I18N
    _SC_XOPEN_SHM,
    #define _SC_XOPEN_SHM _SC_XOPEN_SHM

    _SC_2_CHAR_TERM,
    #define _SC_2_CHAR_TERM _SC_2_CHAR_TERM
    _SC_2_C_VERSION,
    #define _SC_2_C_VERSION _SC_2_C_VERSION
    _SC_2_UPE,
    #define _SC_2_UPE _SC_2_UPE

    _SC_XOPEN_XPG2,
    #define _SC_XOPEN_XPG2 _SC_XOPEN_XPG2
    _SC_XOPEN_XPG3,
    #define _SC_XOPEN_XPG3 _SC_XOPEN_XPG3
    _SC_XOPEN_XPG4,
    #define _SC_XOPEN_XPG4 _SC_XOPEN_XPG4

    _SC_CHAR_BIT,
    #define _SC_CHAR_BIT _SC_CHAR_BIT
    _SC_CHAR_MAX,
    #define _SC_CHAR_MAX _SC_CHAR_MAX
    _SC_CHAR_MIN,
    #define _SC_CHAR_MIN _SC_CHAR_MIN
    _SC_INT_MAX,
    #define _SC_INT_MAX _SC_INT_MAX
    _SC_INT_MIN,
    #define _SC_INT_MIN _SC_INT_MIN
    _SC_LONG_BIT,
    #define _SC_LONG_BIT _SC_LONG_BIT
    _SC_WORD_BIT,
    #define _SC_WORD_BIT _SC_WORD_BIT
    _SC_MB_LEN_MAX,
    #define _SC_MB_LEN_MAX _SC_MB_LEN_MAX
    _SC_NZERO,
    #define _SC_NZERO _SC_NZERO
    _SC_SSIZE_MAX,
    #define _SC_SSIZE_MAX _SC_SSIZE_MAX
    _SC_SCHAR_MAX,
    #define _SC_SCHAR_MAX _SC_SCHAR_MAX
    _SC_SCHAR_MIN,
    #define _SC_SCHAR_MIN _SC_SCHAR_MIN
    _SC_SHRT_MAX,
    #define _SC_SHRT_MAX _SC_SHRT_MAX
    _SC_SHRT_MIN,
    #define _SC_SHRT_MIN _SC_SHRT_MIN
    _SC_UCHAR_MAX,
    #define _SC_UCHAR_MAX _SC_UCHAR_MAX
    _SC_UINT_MAX,
    #define _SC_UINT_MAX _SC_UINT_MAX
    _SC_ULONG_MAX,
    #define _SC_ULONG_MAX _SC_ULONG_MAX
    _SC_USHRT_MAX,
    #define _SC_USHRT_MAX _SC_USHRT_MAX

    _SC_NL_ARGMAX,
    #define _SC_NL_ARGMAX _SC_NL_ARGMAX
    _SC_NL_LANGMAX,
    #define _SC_NL_LANGMAX _SC_NL_LANGMAX
    _SC_NL_MSGMAX,
    #define _SC_NL_MSGMAX _SC_NL_MSGMAX
    _SC_NL_NMAX,
    #define _SC_NL_NMAX _SC_NL_NMAX
    _SC_NL_SETMAX,
    #define _SC_NL_SETMAX _SC_NL_SETMAX
    _SC_NL_TEXTMAX,
    #define _SC_NL_TEXTMAX _SC_NL_TEXTMAX

    _SC_XBS5_ILP32_OFF32,
    #define _SC_XBS5_ILP32_OFF32 _SC_XBS5_ILP32_OFF32
    _SC_XBS5_ILP32_OFFBIG,
    #define _SC_XBS5_ILP32_OFFBIG _SC_XBS5_ILP32_OFFBIG
    _SC_XBS5_LP64_OFF64,
    #define _SC_XBS5_LP64_OFF64 _SC_XBS5_LP64_OFF64
    _SC_XBS5_LPBIG_OFFBIG,
    #define _SC_XBS5_LPBIG_OFFBIG _SC_XBS5_LPBIG_OFFBIG

    _SC_XOPEN_LEGACY,
    #define _SC_XOPEN_LEGACY _SC_XOPEN_LEGACY
    _SC_XOPEN_REALTIME,
    #define _SC_XOPEN_REALTIME _SC_XOPEN_REALTIME
    _SC_XOPEN_REALTIME_THREADS,
    #define _SC_XOPEN_REALTIME_THREADS _SC_XOPEN_REALTIME_THREADS

    _SC_ADVISORY_INFO,
    #define _SC_ADVISORY_INFO _SC_ADVISORY_INFO
    _SC_BARRIERS,
    #define _SC_BARRIERS _SC_BARRIERS
    _SC_BASE,
    #define _SC_BASE _SC_BASE
    _SC_C_LANG_SUPPORT,
    #define _SC_C_LANG_SUPPORT _SC_C_LANG_SUPPORT
    _SC_C_LANG_SUPPORT_R,
    #define _SC_C_LANG_SUPPORT_R _SC_C_LANG_SUPPORT_R
    _SC_CLOCK_SELECTION,
    #define _SC_CLOCK_SELECTION _SC_CLOCK_SELECTION
    _SC_CPUTIME,
    #define _SC_CPUTIME _SC_CPUTIME
    _SC_THREAD_CPUTIME,
    #define _SC_THREAD_CPUTIME _SC_THREAD_CPUTIME
    _SC_DEVICE_IO,
    #define _SC_DEVICE_IO _SC_DEVICE_IO
    _SC_DEVICE_SPECIFIC,
    #define _SC_DEVICE_SPECIFIC _SC_DEVICE_SPECIFIC
    _SC_DEVICE_SPECIFIC_R,
    #define _SC_DEVICE_SPECIFIC_R _SC_DEVICE_SPECIFIC_R
    _SC_FD_MGMT,
    #define _SC_FD_MGMT _SC_FD_MGMT
    _SC_FIFO,
    #define _SC_FIFO _SC_FIFO
    _SC_PIPE,
    #define _SC_PIPE _SC_PIPE
    _SC_FILE_ATTRIBUTES,
    #define _SC_FILE_ATTRIBUTES _SC_FILE_ATTRIBUTES
    _SC_FILE_LOCKING,
    #define _SC_FILE_LOCKING _SC_FILE_LOCKING
    _SC_FILE_SYSTEM,
    #define _SC_FILE_SYSTEM _SC_FILE_SYSTEM
    _SC_MONOTONIC_CLOCK,
    #define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK
    _SC_MULTI_PROCESS,
    #define _SC_MULTI_PROCESS _SC_MULTI_PROCESS
    _SC_SINGLE_PROCESS,
    #define _SC_SINGLE_PROCESS _SC_SINGLE_PROCESS
    _SC_NETWORKING,
    #define _SC_NETWORKING _SC_NETWORKING
    _SC_READER_WRITER_LOCKS,
    #define _SC_READER_WRITER_LOCKS _SC_READER_WRITER_LOCKS
    _SC_SPIN_LOCKS,
    #define _SC_SPIN_LOCKS _SC_SPIN_LOCKS
    _SC_REGEXP,
    #define _SC_REGEXP _SC_REGEXP
    _SC_REGEX_VERSION,
    #define _SC_REGEX_VERSION _SC_REGEX_VERSION
    _SC_S ,
    #define _SC_S _SC_S
    _SC_SIGNALS,
    #define _SC_SIGNALS _SC_SIGNALS
    _SC_SPAWN,
    #define _SC_SPAWN _SC_SPAWN
    _SC_SPORADIC_SERVER,
    #define _SC_SPORADIC_SERVER _SC_SPORADIC_SERVER
    _SC_THREAD_SPORADIC_SERVER,
    #define _SC_THREAD_SPORADIC_SERVER _SC_THREAD_SPORADIC_SERVER
    _SC_SYSTEM_DATABASE,
    #define _SC_SYSTEM_DATABASE _SC_SYSTEM_DATABASE
    _SC_SYSTEM_DATABASE_R,
    #define _SC_SYSTEM_DATABASE_R _SC_SYSTEM_DATABASE_R
    _SC_TIMEOUTS,
    #define _SC_TIMEOUTS _SC_TIMEOUTS
    _SC_TYPED_MEMORY_OBJECTS,
    #define _SC_TYPED_MEMORY_OBJECTS _SC_TYPED_MEMORY_OBJECTS
    _SC_USER_GROUPS,
    #define _SC_USER_GROUPS _SC_USER_GROUPS
    _SC_USER_GROUPS_R,
    #define _SC_USER_GROUPS_R _SC_USER_GROUPS_R
    _SC_2_PBS,
    #define _SC_2_PBS _SC_2_PBS
    _SC_2_PBS_ACCOUNTING,
    #define _SC_2_PBS_ACCOUNTING _SC_2_PBS_ACCOUNTING
    _SC_2_PBS_LOCATE,
    #define _SC_2_PBS_LOCATE _SC_2_PBS_LOCATE
    _SC_2_PBS_MESSAGE,
    #define _SC_2_PBS_MESSAGE _SC_2_PBS_MESSAGE
    _SC_2_PBS_TRACK,
    #define _SC_2_PBS_TRACK _SC_2_PBS_TRACK
    _SC_SYMLOOP_MAX,
    #define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX
    _SC_STREAMS,
    #define _SC_STREAMS _SC_STREAMS
    _SC_2_PBS_CHECKPOINT,
    #define _SC_2_PBS_CHECKPOINT _SC_2_PBS_CHECKPOINT

    _SC_V6_ILP32_OFF32,
    #define _SC_V6_ILP32_OFF32 _SC_V6_ILP32_OFF32
    _SC_V6_ILP32_OFFBIG,

  8. #58
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    #define _SC_V6_ILP32_OFFBIG _SC_V6_ILP32_OFFBIG
    _SC_V6_LP64_OFF64,
    #define _SC_V6_LP64_OFF64 _SC_V6_LP64_OFF64
    _SC_V6_LPBIG_OFFBIG,
    #define _SC_V6_LPBIG_OFFBIG _SC_V6_LPBIG_OFFBIG

    _SC_HOST_NAME_MAX,
    #define _SC_HOST_NAME_MAX _SC_HOST_NAME_MAX
    _SC_TRACE,
    #define _SC_TRACE _SC_TRACE
    _SC_TRACE_EVENT_FILTER,
    #define _SC_TRACE_EVENT_FILTER _SC_TRACE_EVENT_FILTER
    _SC_TRACE_INHERIT,
    #define _SC_TRACE_INHERIT _SC_TRACE_INHERIT
    _SC_TRACE_LOG,
    #define _SC_TRACE_LOG _SC_TRACE_LOG

    _SC_LEVEL1_ICACHE_SIZE,
    #define _SC_LEVEL1_ICACHE_SIZE _SC_LEVEL1_ICACHE_SIZE
    _SC_LEVEL1_ICACHE_ASSOC,
    #define _SC_LEVEL1_ICACHE_ASSOC _SC_LEVEL1_ICACHE_ASSOC
    _SC_LEVEL1_ICACHE_LINESIZE,
    #define _SC_LEVEL1_ICACHE_LINESIZE _SC_LEVEL1_ICACHE_LINESIZE
    _SC_LEVEL1_DCACHE_SIZE,
    #define _SC_LEVEL1_DCACHE_SIZE _SC_LEVEL1_DCACHE_SIZE
    _SC_LEVEL1_DCACHE_ASSOC,
    #define _SC_LEVEL1_DCACHE_ASSOC _SC_LEVEL1_DCACHE_ASSOC
    _SC_LEVEL1_DCACHE_LINESIZE,
    #define _SC_LEVEL1_DCACHE_LINESIZE _SC_LEVEL1_DCACHE_LINESIZE
    _SC_LEVEL2_CACHE_SIZE,
    #define _SC_LEVEL2_CACHE_SIZE _SC_LEVEL2_CACHE_SIZE
    _SC_LEVEL2_CACHE_ASSOC,
    #define _SC_LEVEL2_CACHE_ASSOC _SC_LEVEL2_CACHE_ASSOC
    _SC_LEVEL2_CACHE_LINESIZE,
    #define _SC_LEVEL2_CACHE_LINESIZE _SC_LEVEL2_CACHE_LINESIZE
    _SC_LEVEL3_CACHE_SIZE,
    #define _SC_LEVEL3_CACHE_SIZE _SC_LEVEL3_CACHE_SIZE
    _SC_LEVEL3_CACHE_ASSOC,
    #define _SC_LEVEL3_CACHE_ASSOC _SC_LEVEL3_CACHE_ASSOC
    _SC_LEVEL3_CACHE_LINESIZE,
    #define _SC_LEVEL3_CACHE_LINESIZE _SC_LEVEL3_CACHE_LINESIZE
    _SC_LEVEL4_CACHE_SIZE,
    #define _SC_LEVEL4_CACHE_SIZE _SC_LEVEL4_CACHE_SIZE
    _SC_LEVEL4_CACHE_ASSOC,
    #define _SC_LEVEL4_CACHE_ASSOC _SC_LEVEL4_CACHE_ASSOC
    _SC_LEVEL4_CACHE_LINESIZE,
    #define _SC_LEVEL4_CACHE_LINESIZE _SC_LEVEL4_CACHE_LINESIZE
    /* Leave room here, maybe we need a few more cache levels some day. */

    _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
    #define _SC_IPV6 _SC_IPV6
    _SC_RAW_SOCKETS,
    #define _SC_RAW_SOCKETS _SC_RAW_SOCKETS

    _SC_V7_ILP32_OFF32,
    #define _SC_V7_ILP32_OFF32 _SC_V7_ILP32_OFF32
    _SC_V7_ILP32_OFFBIG,
    #define _SC_V7_ILP32_OFFBIG _SC_V7_ILP32_OFFBIG
    _SC_V7_LP64_OFF64,
    #define _SC_V7_LP64_OFF64 _SC_V7_LP64_OFF64
    _SC_V7_LPBIG_OFFBIG,
    #define _SC_V7_LPBIG_OFFBIG _SC_V7_LPBIG_OFFBIG

    _SC_SS_REPL_MAX,
    #define _SC_SS_REPL_MAX _SC_SS_REPL_MAX

    _SC_TRACE_EVENT_NAME_MAX,
    #define _SC_TRACE_EVENT_NAME_MAX _SC_TRACE_EVENT_NAME_MAX
    _SC_TRACE_NAME_MAX,
    #define _SC_TRACE_NAME_MAX _SC_TRACE_NAME_MAX
    _SC_TRACE_SYS_MAX,
    #define _SC_TRACE_SYS_MAX _SC_TRACE_SYS_MAX
    _SC_TRACE_USER_EVENT_MAX,
    #define _SC_TRACE_USER_EVENT_MAX _SC_TRACE_USER_EVENT_MAX

    _SC_XOPEN_STREAMS,
    #define _SC_XOPEN_STREAMS _SC_XOPEN_STREAMS

    _SC_THREAD_ROBUST_PRIO_INHERIT,
    #define _SC_THREAD_ROBUST_PRIO_INHERIT _SC_THREAD_ROBUST_PRIO_INHERIT
    _SC_THREAD_ROBUST_PRIO_PROTECT
    #define _SC_THREAD_ROBUST_PRIO_PROTECT _SC_THREAD_ROBUST_PRIO_PROTECT
    };

    /* Values for the NAME argument to `confstr'. */
    enum
    {
    _CS_PATH, /* The default search path. */
    #define _CS_PATH _CS_PATH

    _CS_V6_WIDTH_RESTRICTED_ENVS,
    #define _CS_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS
    #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS

    _CS_GNU_LIBC_VERSION,
    #define _CS_GNU_LIBC_VERSION _CS_GNU_LIBC_VERSION
    _CS_GNU_LIBPTHREAD_VERSION,
    #define _CS_GNU_LIBPTHREAD_VERSION _CS_GNU_LIBPTHREAD_VERSION

    _CS_V5_WIDTH_RESTRICTED_ENVS,
    #define _CS_V5_WIDTH_RESTRICTED_ENVS _CS_V5_WIDTH_RESTRICTED_ENVS
    #define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS _CS_V5_WIDTH_RESTRICTED_ENVS

    _CS_V7_WIDTH_RESTRICTED_ENVS,
    #define _CS_V7_WIDTH_RESTRICTED_ENVS _CS_V7_WIDTH_RESTRICTED_ENVS
    #define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS _CS_V7_WIDTH_RESTRICTED_ENVS

    _CS_LFS_CFLAGS = 1000,
    #define _CS_LFS_CFLAGS _CS_LFS_CFLAGS
    _CS_LFS_LDFLAGS,
    #define _CS_LFS_LDFLAGS _CS_LFS_LDFLAGS
    _CS_LFS_LIBS,
    #define _CS_LFS_LIBS _CS_LFS_LIBS
    _CS_LFS_LINTFLAGS,
    #define _CS_LFS_LINTFLAGS _CS_LFS_LINTFLAGS
    _CS_LFS64_CFLAGS,
    #define _CS_LFS64_CFLAGS _CS_LFS64_CFLAGS
    _CS_LFS64_LDFLAGS,
    #define _CS_LFS64_LDFLAGS _CS_LFS64_LDFLAGS
    _CS_LFS64_LIBS,
    #define _CS_LFS64_LIBS _CS_LFS64_LIBS
    _CS_LFS64_LINTFLAGS,
    #define _CS_LFS64_LINTFLAGS _CS_LFS64_LINTFLAGS

    _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
    #define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS
    _CS_XBS5_ILP32_OFF32_LDFLAGS,
    #define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS
    _CS_XBS5_ILP32_OFF32_LIBS,
    #define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS
    _CS_XBS5_ILP32_OFF32_LINTFLAGS,
    #define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS
    _CS_XBS5_ILP32_OFFBIG_CFLAGS,
    #define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS
    _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
    #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS
    _CS_XBS5_ILP32_OFFBIG_LIBS,
    #define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS
    _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
    #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS
    _CS_XBS5_LP64_OFF64_CFLAGS,
    #define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS
    _CS_XBS5_LP64_OFF64_LDFLAGS,
    #define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS
    _CS_XBS5_LP64_OFF64_LIBS,
    #define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS
    _CS_XBS5_LP64_OFF64_LINTFLAGS,
    #define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS
    _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
    #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS
    _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
    #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS
    _CS_XBS5_LPBIG_OFFBIG_LIBS,
    #define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS
    _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
    #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS

    _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
    #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS _CS_POSIX_V6_ILP32_OFF32_CFLAGS
    _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
    #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS _CS_POSIX_V6_ILP32_OFF32_LDFLAGS
    _CS_POSIX_V6_ILP32_OFF32_LIBS,
    #define _CS_POSIX_V6_ILP32_OFF32_LIBS _CS_POSIX_V6_ILP32_OFF32_LIBS
    _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
    #define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS
    _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
    #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS
    _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
    #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS
    _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
    #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS _CS_POSIX_V6_ILP32_OFFBIG_LIBS
    _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
    #define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS
    _CS_POSIX_V6_LP64_OFF64_CFLAGS,
    #define _CS_POSIX_V6_LP64_OFF64_CFLAGS _CS_POSIX_V6_LP64_OFF64_CFLAGS
    _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
    #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS _CS_POSIX_V6_LP64_OFF64_LDFLAGS
    _CS_POSIX_V6_LP64_OFF64_LIBS,
    #define _CS_POSIX_V6_LP64_OFF64_LIBS _CS_POSIX_V6_LP64_OFF64_LIBS
    _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
    #define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS _CS_POSIX_V6_LP64_OFF64_LINTFLAGS
    _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
    #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS
    _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
    #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS
    _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
    #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS _CS_POSIX_V6_LPBIG_OFFBIG_LIBS
    _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS,
    #define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS

    _CS_POSIX_V7_ILP32_OFF32_CFLAGS,
    #define _CS_POSIX_V7_ILP32_OFF32_CFLAGS _CS_POSIX_V7_ILP32_OFF32_CFLAGS
    _CS_POSIX_V7_ILP32_OFF32_LDFLAGS,
    #define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS _CS_POSIX_V7_ILP32_OFF32_LDFLAGS
    _CS_POSIX_V7_ILP32_OFF32_LIBS,
    #define _CS_POSIX_V7_ILP32_OFF32_LIBS _CS_POSIX_V7_ILP32_OFF32_LIBS
    _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS,
    #define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS
    _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS,
    #define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS
    _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS,
    #define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS
    _CS_POSIX_V7_ILP32_OFFBIG_LIBS,
    #define _CS_POSIX_V7_ILP32_OFFBIG_LIBS _CS_POSIX_V7_ILP32_OFFBIG_LIBS
    _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS,
    #define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS
    _CS_POSIX_V7_LP64_OFF64_CFLAGS,
    #define _CS_POSIX_V7_LP64_OFF64_CFLAGS _CS_POSIX_V7_LP64_OFF64_CFLAGS
    _CS_POSIX_V7_LP64_OFF64_LDFLAGS,
    #define _CS_POSIX_V7_LP64_OFF64_LDFLAGS _CS_POSIX_V7_LP64_OFF64_LDFLAGS
    _CS_POSIX_V7_LP64_OFF64_LIBS,
    #define _CS_POSIX_V7_LP64_OFF64_LIBS _CS_POSIX_V7_LP64_OFF64_LIBS
    _CS_POSIX_V7_LP64_OFF64_LINTFLAGS,
    #define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS _CS_POSIX_V7_LP64_OFF64_LINTFLAGS
    _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS,
    #define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS
    _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS,
    #define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS
    _CS_POSIX_V7_LPBIG_OFFBIG_LIBS,
    #define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS _CS_POSIX_V7_LPBIG_OFFBIG_LIBS
    _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS,
    #define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS

    _CS_V6_ENV,
    #define _CS_V6_ENV _CS_V6_ENV
    _CS_V7_ENV
    #define _CS_V7_ENV _CS_V7_ENV
    };

  9. #59
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Directory entry structure `struct dirent'. 4.4BSD/Generic version.
    Copyright (C) 1996-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _DIRENT_H
    # error "Never use <bits/dirent.h> directly; include <dirent.h> instead."
    #endif

    struct dirent
    {
    #ifndef __USE_FILE_OFFSET64
    __ino_t d_ino; /* File serial number. */
    #else
    __ino64_t d_ino;
    #endif
    unsigned short int d_reclen; /* Length of the whole `struct dirent'. */
    unsigned char d_type; /* File type, possibly unknown. */
    unsigned char d_namlen; /* Length of the file name. */

    /* Only this member is in the POSIX standard. */
    char d_name[1]; /* File name (actually longer). */
    };

    #ifdef __USE_LARGEFILE64
    struct dirent64
    {
    __ino64_t d_ino;
    unsigned short int d_reclen;
    unsigned char d_type;
    unsigned char d_namlen;

    char d_name[1];
    };
    #endif

    #define d_fileno d_ino /* Backwards compatibility. */

    #define _DIRENT_HAVE_D_RECLEN 1
    #define _DIRENT_HAVE_D_NAMLEN 1
    #define _DIRENT_HAVE_D_TYPE 1

    #ifdef __INO_T_MATCHES_INO64_T
    /* Inform libc code that these two types are effectively identical. */
    # define _DIRENT_MATCHES_DIRENT64 1
    #endif

  10. #60
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* System dependent definitions for run-time dynamic loading.
    Copyright (C) 1996-2001, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _DLFCN_H
    # error "Never use <bits/dlfcn.h> directly; include <dlfcn.h> instead."
    #endif

    /* The MODE argument to `dlopen' contains one of the following: */
    #define RTLD_LAZY 0x00001 /* Lazy function call binding. */
    #define RTLD_NOW 0x00002 /* Immediate function call binding. */
    #define RTLD_BINDING_MASK 0x3 /* Mask of binding time value. */
    #define RTLD_NOLOAD 0x00004 /* Do not load the object. */
    #define RTLD_DEEPBIND 0x00008 /* Use deep binding. */

    /* If the following bit is set in the MODE argument to `dlopen',
    the symbols of the loaded object and its dependencies are made
    visible as if the object were linked directly into the program. */
    #define RTLD_GLOBAL 0x00100

    /* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
    The implementation does this by default and so we can define the
    value to zero. */
    #define RTLD_LOCAL 0

    /* Do not delete object when closed. */
    #define RTLD_NODELETE 0x01000

    #ifdef __USE_GNU
    /* To support profiling of shared objects it is a good idea to call
    the function found using `dlsym' using the following macro since
    these calls do not use the PLT. But this would mean the dynamic
    loader has no chance to find out when the function is called. The
    macro applies the necessary magic so that profiling is possible.
    Rewrite
    foo = (*fctp) (arg1, arg2);
    into
    foo = DL_CALL_FCT (fctp, (arg1, arg2));
    */
    # define DL_CALL_FCT(fctp, args) \
    (_dl_mcount_wrapper_check ((void *) (fctp)), (*(fctp)) args)

    __BEGIN_DECLS

    /* This function calls the profiling functions. */
    extern void _dl_mcount_wrapper_check (void *__selfpc) __THROW;

    __END_DECLS

    #endif

  11. #61
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* This file specifies the native word size of the machine, which indicates
    the ELF file class used for executables and shared objects on this
    machine. */

    #ifndef _LINK_H
    # error "Never use <bits/elfclass.h> directly; include <link.h> instead."
    #endif

    #include <bits/wordsize.h>

    #define __ELF_NATIVE_CLASS __WORDSIZE

    /* The entries in the .hash table always have a size of 32 bits. */
    typedef uint32_t Elf_Symndx;

  12. #62
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* This file should define __BYTE_ORDER as appropriate for the machine
    in question. See string/endian.h for how to define it.

    If only the stub bits/endian.h applies to a particular configuration,
    bytesex.h is generated by running a program on the host machine.
    So if cross-compiling to a machine with a different byte order,
    the bits/endian.h file for that machine must exist. */

    #ifndef _ENDIAN_H
    # error "Never use <bits/endian.h> directly; include <endian.h> instead."
    #endif

    #error Machine byte order unknown.

  13. #63
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1999, 2001, 2004, 2009 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _UNISTD_H
    # error "Never include this file directly. Use <unistd.h> instead"
    #endif

    #include <bits/wordsize.h>

    /* This header should define the following symbols under the described
    situations. A value `1' means that the model is always supported,
    `-1' means it is never supported. Undefined means it cannot be
    statically decided.

    _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type
    _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type

    _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type
    _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type

    The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG,
    _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32,
    _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were
    used in previous versions of the Unix standard and are available
    only for compatibility.
    */

    #if __WORDSIZE == 64

    /* We can never provide environments with 32-bit wide pointers. */
    # define _POSIX_V7_ILP32_OFF32 -1
    # define _POSIX_V7_ILP32_OFFBIG -1
    # define _POSIX_V6_ILP32_OFF32 -1
    # define _POSIX_V6_ILP32_OFFBIG -1
    # define _XBS5_ILP32_OFF32 -1
    # define _XBS5_ILP32_OFFBIG -1
    /* We also have no use (for now) for an environment with bigger pointers
    and offsets. */
    # define _POSIX_V7_LPBIG_OFFBIG -1
    # define _POSIX_V6_LPBIG_OFFBIG -1
    # define _XBS5_LPBIG_OFFBIG -1

    /* By default we have 64-bit wide `long int', pointers and `off_t'. */
    # define _POSIX_V7_LP64_OFF64 1
    # define _POSIX_V6_LP64_OFF64 1
    # define _XBS5_LP64_OFF64 1

    #else /* __WORDSIZE == 32 */

    /* By default we have 32-bit wide `int', `long int', pointers and `off_t'
    and all platforms support LFS. */
    # define _POSIX_V7_ILP32_OFF32 1
    # define _POSIX_V7_ILP32_OFFBIG 1
    # define _POSIX_V6_ILP32_OFF32 1
    # define _POSIX_V6_ILP32_OFFBIG 1
    # define _XBS5_ILP32_OFF32 1
    # define _XBS5_ILP32_OFFBIG 1

    /* We optionally provide an environment with the above size but an 64-bit
    side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */

    /* We can never provide environments with 64-bit wide pointers. */
    # define _POSIX_V7_LP64_OFF64 -1
    # define _POSIX_V7_LPBIG_OFFBIG -1
    # define _POSIX_V6_LP64_OFF64 -1
    # define _POSIX_V6_LPBIG_OFFBIG -1
    # define _XBS5_LP64_OFF64 -1
    # define _XBS5_LPBIG_OFFBIG -1

    /* CFLAGS. */
    #define __ILP32_OFFBIG_CFLAGS "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

    #endif /* __WORDSIZE == 32 */

  14. #64
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1991, 1994, 1996, 1997 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    /* This file defines the `errno' constants. */

    #if !defined __Emath_defined && (defined _ERRNO_H || defined __need_Emath)
    #undef __need_Emath
    #define __Emath_defined 1

    # define EDOM XXX <--- fill in what is actually needed
    # define EILSEQ XXX <--- fill in what is actually needed
    # define ERANGE XXX <--- fill in what is actually needed
    #endif

    #ifdef _ERRNO_H
    # error "Define here all the missing error messages for the port. These"
    # error "must match the numbers of the kernel."
    # define Exxxx XXX
    ...
    #endif

  15. #65
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* O_*, F_*, FD_* bit values. 4.4BSD/Generic version.
    Copyright (C) 1991-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _FCNTL_H
    #error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
    #endif


    /* File access modes for `open' and `fcntl'. */
    #define O_RDONLY 0 /* Open read-only. */
    #define O_WRONLY 1 /* Open write-only. */
    #define O_RDWR 2 /* Open read/write. */


    /* Bits OR'd into the second argument to open. */
    #define O_CREAT 0x0200 /* Create file if it doesn't exist. */
    #define O_EXCL 0x0800 /* Fail if file already exists. */
    #define O_TRUNC 0x0400 /* Truncate file to zero length. */
    #define O_NOCTTY 0x8000 /* Don't assign a controlling terminal. */
    #define O_ASYNC 0x0040 /* Send SIGIO to owner when data is ready. */
    #define O_FSYNC 0x0080 /* Synchronous writes. */
    #define O_SYNC O_FSYNC
    #ifdef __USE_MISC
    #define O_SHLOCK 0x0010 /* Open with shared file lock. */
    #define O_EXLOCK 0x0020 /* Open with shared exclusive lock. */
    #endif
    #ifdef __USE_XOPEN2K8
    # define O_DIRECTORY 0x00200000 /* Must be a directory. */
    # define O_NOFOLLOW 0x00000100 /* Do not follow links. */
    # define O_CLOEXEC 0x00400000 /* Set close_on_exec. */
    #endif
    #if defined __USE_POSIX199309 || defined __USE_UNIX98
    # define O_DSYNC 0x00010000 /* Synchronize data. */
    # define O_RSYNC 0x00020000 /* Synchronize read operations. */
    #endif

    /* All opens support large file sizes, so there is no flag bit for this. */
    #ifdef __USE_LARGEFILE64
    # define O_LARGEFILE 0
    #endif

    /* File status flags for `open' and `fcntl'. */
    #define O_APPEND 0x0008 /* Writes append to the file. */
    #define O_NONBLOCK 0x0004 /* Non-blocking I/O. */

    #ifdef __USE_BSD
    # define O_NDELAY O_NONBLOCK
    #endif

    #ifdef __USE_BSD
    /* Bits in the file status flags returned by F_GETFL.
    These are all the O_* flags, plus FREAD and FWRITE, which are
    independent bits set by which of O_RDONLY, O_WRONLY, and O_RDWR, was
    given to `open'. */
    # define FREAD 1
    # define FWRITE 2

    /* Traditional BSD names the O_* bits. */
    # define FASYNC O_ASYNC
    # define FFSYNC O_FSYNC
    # define FSYNC O_SYNC
    # define FAPPEND O_APPEND
    # define FNDELAY O_NDELAY
    #endif

    /* Mask for file access modes. This is system-dependent in case
    some system ever wants to define some other flavor of access. */
    #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)

    /* Values for the second argument to `fcntl'. */
    #define F_DUPFD 0 /* Duplicate file descriptor. */
    #define F_GETFD 1 /* Get file descriptor flags. */
    #define F_SETFD 2 /* Set file descriptor flags. */
    #define F_GETFL 3 /* Get file status flags. */
    #define F_SETFL 4 /* Set file status flags. */
    #if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K8
    #define F_GETOWN 5 /* Get owner (receiver of SIGIO). */
    #define F_SETOWN 6 /* Set owner (receiver of SIGIO). */
    #endif
    #define F_GETLK 7 /* Get record locking info. */
    #define F_SETLK 8 /* Set record locking info (non-blocking). */
    #define F_SETLKW 9 /* Set record locking info (blocking). */
    /* Not necessary, we always have 64-bit offsets. */
    #define F_GETLK64 F_GETLK /* Get record locking info. */
    #define F_SETLK64 F_SETLK /* Set record locking info (non-blocking). */
    #define F_SETLKW64 F_SETLKW/* Set record locking info (blocking). */
    #ifdef __USE_XOPEN2K8
    # define F_DUPFD_CLOEXEC 12 /* Duplicate file descriptor with
    close-on-exit set. */
    #endif

    /* File descriptor flags used with F_GETFD and F_SETFD. */
    #define FD_CLOEXEC 1 /* Close on exec. */


    #include <bits/types.h>

    /* The structure describing an advisory lock. This is the type of the third
    argument to `fcntl' for the F_GETLK, F_SETLK, and F_SETLKW requests. */
    struct flock
    {
    __off_t l_start; /* Offset where the lock begins. */
    __off_t l_len; /* Size of the locked area; zero means until EOF. */
    __pid_t l_pid; /* Process holding the lock. */
    short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
    short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
    };

    #ifdef __USE_LARGEFILE64
    /* Note this matches struct flock exactly. */
    struct flock64
    {
    __off_t l_start; /* Offset where the lock begins. */
    __off_t l_len; /* Size of the locked area; zero means until EOF. */
    __pid_t l_pid; /* Process holding the lock. */
    short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */
    short int l_whence; /* Where `l_start' is relative to (like `lseek'). */
    };
    #endif

    /* Values for the `l_type' field of a `struct flock'. */
    #define F_RDLCK 1 /* Read lock. */
    #define F_WRLCK 2 /* Write lock. */
    #define F_UNLCK 3 /* Remove lock. */

    /* Advise to `posix_fadvise'. */
    #ifdef __USE_XOPEN2K
    # define POSIX_FADV_NORMAL 0 /* No further special treatment. */
    # define POSIX_FADV_RANDOM 1 /* Expect random page references. */
    # define POSIX_FADV_SEQUENTIAL 2 /* Expect sequential page references. */
    # define POSIX_FADV_WILLNEED 3 /* Will need these pages. */
    # define POSIX_FADV_DONTNEED 4 /* Don't need these pages. */
    # define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */
    #endif

  16. #66
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1997-2001, 2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _FENV_H
    # error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
    #endif


    /* Here should be the exception be defined:
    FE_INVALID
    FE_DIVBYZERO
    FE_OVERFLOW
    FE_UNDERFLOW
    FE_INEXACT
    We define no macro which signals no exception is supported. */

    #define FE_ALL_EXCEPT 0


    /* Here should the rounding modes be defined:
    FE_TONEAREST
    FE_DOWNWARD
    FE_UPWARD
    FE_TOWARDZERO
    We define no macro which signals no rounding mode is selectable. */


    /* Type representing exception flags. */
    typedef unsigned int fexcept_t;


    /* Type representing floating-point environment. */
    typedef struct
    {
    fexcept_t __excepts;
    /* XXX I don't know what else we should save. */
    }
    fenv_t;

    /* If the default argument is used we use this value. */
    #define FE_DFL_ENV ((const fenv_t *) -1l)

  17. #67
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* This file provides inline versions of floating-pint environment
    handling functions. If there were any. */

    #ifndef __NO_MATH_INLINES

    /* Here is where the code would go. */

    #endif

  18. #68
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Stub `HUGE_VAL' constant.
    Used by <stdlib.h> and <math.h> functions for overflow.
    Copyright (C) 1992, 1996, 1997, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _MATH_H
    # error "Never use <bits/huge_val.h> directly; include <math.h> instead."
    #endif

    #if __GNUC_PREREQ(3,3)
    # define HUGE_VAL (__builtin_huge_val())
    #else
    # define HUGE_VAL 1e37
    #endif

  19. #69
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Stub `HUGE_VALF' constant.
    Used by <stdlib.h> and <math.h> functions for overflow.
    Copyright (C) 1992, 1996, 1997, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _MATH_H
    # error "Never use <bits/huge_valf.h> directly; include <math.h> instead."
    #endif

    #if __GNUC_PREREQ(3,3)
    # define HUGE_VALF (__builtin_huge_valf())
    #else
    # define HUGE_VALF 1e37f
    #endif

  20. #70
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Default `HUGE_VALL' constant.
    Used by <stdlib.h> and <math.h> functions for overflow.
    Copyright (C) 1992, 1996, 1997, 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _MATH_H
    # error "Never use <bits/huge_vall.h> directly; include <math.h> instead."
    #endif

    #if __GNUC_PREREQ(3,3)
    # define HUGE_VALL (__builtin_huge_vall())
    #else
    # define HUGE_VALL ((long double) HUGE_VAL)
    #endif

  21. #71
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    /* Generic version. */

    #ifndef _NETINET_IN_H
    # error "Never use <bits/in.h> directly; include <netinet/in.h> instead."
    #endif

    /* To select the IP level. */
    #define SOL_IP 0

    /* Options for use with `getsockopt' and `setsockopt' at the IP level.
    The first word in the comment at the right is the data type used;
    "bool" means a boolean value stored in an `int'. */
    #define IP_OPTIONS 1 /* ip_opts; IP per-packet options. */
    #define IP_HDRINCL 2 /* int; Header is included with data. */
    #define IP_TOS 3 /* int; IP type of service and precedence. */
    #define IP_TTL 4 /* int; IP time to live. */
    #define IP_RECVOPTS 5 /* bool; Receive all IP options w/datagram. */
    #define IP_RECVRETOPTS 6 /* bool; Receive IP options for response. */
    #define IP_RECVDSTADDR 7 /* bool; Receive IP dst addr w/datagram. */
    #define IP_RETOPTS 8 /* ip_opts; Set/get IP per-packet options. */
    #define IP_MULTICAST_IF 9 /* in_addr; set/get IP multicast i/f */
    #define IP_MULTICAST_TTL 10 /* u_char; set/get IP multicast ttl */
    #define IP_MULTICAST_LOOP 11 /* i_char; set/get IP multicast loopback */
    #define IP_ADD_MEMBERSHIP 12 /* ip_mreq; add an IP group membership */
    #define IP_DROP_MEMBERSHIP 13 /* ip_mreq; drop an IP group membership */

    /* Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS.
    The `ip_dst' field is used for the first-hop gateway when using a
    source route (this gets put into the header proper). */
    struct ip_opts
    {
    struct in_addr ip_dst; /* First hop; zero without source route. */
    char ip_opts[40]; /* Actually variable in size. */
    };

    /* Socket-level values for IPv6. */
    #define SOL_IPV6 41
    #define SOL_ICMPV6 58

    /* IPV6 socket options. */
    #define IPV6_ADDRFORM 1
    #define IPV6_PKTINFO 2
    #define IPV6_HOPOPTS 3
    #define IPV6_DSTOPTS 4
    #define IPV6_RTHDR 5
    #define IPV6_PKTOPTIONS 6
    #define IPV6_CHECKSUM 7
    #define IPV6_HOPLIMIT 8

    #define IPV6_RXINFO IPV6_PKTINFO
    #define IPV6_TXINFO IPV6_PKTINFO
    #define SCM_SRCINFO IPV6_PKTINFO
    #define SCM_SRCRT IPV6_RXSRCRT

    #define IPV6_UNICAST_HOPS 16
    #define IPV6_MULTICAST_IF 17
    #define IPV6_MULTICAST_HOPS 18
    #define IPV6_MULTICAST_LOOP 19
    #define IPV6_JOIN_GROUP 20
    #define IPV6_LEAVE_GROUP 21
    #define IPV6_ROUTER_ALERT 22
    #define IPV6_MTU_DISCOVER 23
    #define IPV6_MTU 24
    #define IPV6_RECVERR 25
    #define IPV6_V6ONLY 26
    #define IPV6_JOIN_ANYCAST 27
    #define IPV6_LEAVE_ANYCAST 28

    /* Obsolete synonyms for the above. */
    #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
    #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
    #define IPV6_RXHOPOPTS IPV6_HOPOPTS
    #define IPV6_RXDSTOPTS IPV6_DSTOPTS

    /* Routing header options for IPv6. */
    #define IPV6_RTHDR_LOOSE 0 /* Hop doesn't need to be neighbour. */
    #define IPV6_RTHDR_STRICT 1 /* Hop must be a neighbour. */

    #define IPV6_RTHDR_TYPE_0 0 /* IPv6 Routing header type 0. */

  22. #72
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Default `INFINITY' constant.
    Copyright (C) 2004 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _MATH_H
    # error "Never use <bits/inf.h> directly; include <math.h> instead."
    #endif

    /* If we don't have real infinity, then we're supposed to produce a float
    value that overflows at translation time, which is required to produce
    a diagnostic. GCC's __builtin_inff produces a quite nice diagnostic
    that tells the user that the target doesn't support infinities. */

    #if __GNUC_PREREQ(3,3)
    # define INFINITY (__builtin_inff())
    #else
    # define INFINITY (1e9999f)
    #endif

  23. #73
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    #ifndef _SYS_IOCTL_H
    # error "Never use <bits/ioctls.h> directly; include <sys/ioctl.h> instead."
    #endif

    /* This space intentionally left blank. */

  24. #74
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Structure types for pre-termios terminal ioctls. Generic Unix version.
    Copyright (C) 1996,1997,2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _SYS_IOCTL_H
    # error "Never use <bits/ioctl-types.h> directly; include <sys/ioctl.h> instead."
    #endif

    #if defined TIOCGETC || defined TIOCSETC
    /* Type of ARG for TIOCGETC and TIOCSETC requests. */
    struct tchars
    {
    char t_intrc; /* Interrupt character. */
    char t_quitc; /* Quit character. */
    char t_startc; /* Start-output character. */
    char t_stopc; /* Stop-output character. */
    char t_eofc; /* End-of-file character. */
    char t_brkc; /* Input delimiter character. */
    };

    #define _IOT_tchars /* Hurd ioctl type field. */ \
    _IOT (_IOTS (char), 6, 0, 0, 0, 0)
    #endif

    #if defined TIOCGLTC || defined TIOCSLTC
    /* Type of ARG for TIOCGLTC and TIOCSLTC requests. */
    struct ltchars
    {
    char t_suspc; /* Suspend character. */
    char t_dsuspc; /* Delayed suspend character. */
    char t_rprntc; /* Reprint-line character. */
    char t_flushc; /* Flush-output character. */
    char t_werasc; /* Word-erase character. */
    char t_lnextc; /* Literal-next character. */
    };

    #define _IOT_ltchars /* Hurd ioctl type field. */ \
    _IOT (_IOTS (char), 6, 0, 0, 0, 0)
    #endif

    /* Type of ARG for TIOCGETP and TIOCSETP requests (and gtty and stty). */
    struct sgttyb
    {
    char sg_ispeed; /* Input speed. */
    char sg_ospeed; /* Output speed. */
    char sg_erase; /* Erase character. */
    char sg_kill; /* Kill character. */
    short int sg_flags; /* Mode flags. */
    };

    #define _IOT_sgttyb /* Hurd ioctl type field. */ \
    _IOT (_IOTS (char), 4, _IOTS (short int), 1, 0, 0)

    #if defined TIOCGWINSZ || defined TIOCSWINSZ
    /* Type of ARG for TIOCGWINSZ and TIOCSWINSZ requests. */
    struct winsize
    {
    unsigned short int ws_row; /* Rows, in characters. */
    unsigned short int ws_col; /* Columns, in characters. */

    /* These are not actually used. */
    unsigned short int ws_xpixel; /* Horizontal pixels. */
    unsigned short int ws_ypixel; /* Vertical pixels. */
    };

    #define _IOT_winsize /* Hurd ioctl type field. */ \
    _IOT (_IOTS (unsigned short int), 4, 0, 0, 0, 0)
    #endif

    #if defined TIOCGSIZE || defined TIOCSSIZE
    /* The BSD-style ioctl constructor macros use `sizeof', which can't be used
    in a preprocessor conditional. Since the commands are always unique
    regardless of the size bits, we can safely define away `sizeof' for the
    purpose of the conditional. */
    # define sizeof(type) 0
    # if defined TIOCGWINSZ && TIOCGSIZE == TIOCGWINSZ
    /* Many systems that have TIOCGWINSZ define TIOCGSIZE for source
    compatibility with Sun; they define `struct ttysize' to have identical
    layout as `struct winsize' and #define TIOCGSIZE to be TIOCGWINSZ
    (likewise TIOCSSIZE and TIOCSWINSZ). */
    struct ttysize
    {
    unsigned short int ts_lines;
    unsigned short int ts_cols;
    unsigned short int ts_xxx;
    unsigned short int ts_yyy;
    };
    #define _IOT_ttysize _IOT_winsize
    # else
    /* Suns use a different layout for `struct ttysize', and TIOCGSIZE and
    TIOCGWINSZ are separate commands that do the same thing with different
    structures (likewise TIOCSSIZE and TIOCSWINSZ). */
    struct ttysize
    {
    int ts_lines, ts_cols; /* Lines and columns, in characters. */
    };
    # endif
    # undef sizeof /* See above. */
    #endif

  25. #75
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>. */

    #ifndef _SYS_IPC_H
    # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
    #endif

    #include <bits/types.h>

    /* Mode bits for `msgget', `semget', and `shmget'. */
    #define IPC_CREAT 01000 /* create key if key does not exist */
    #define IPC_EXCL 02000 /* fail if key exists */
    #define IPC_NOWAIT 04000 /* return error on wait */

    /* Control commands for `msgctl', `semctl', and `shmctl'. */
    #define IPC_RMID 0 /* remove identifier */
    #define IPC_SET 1 /* set `ipc_perm' options */
    #define IPC_STAT 2 /* get `ipc_perm' options */

    /* Special key values. */
    #define IPC_PRIVATE ((key_t) 0) /* private key */


    /* Data structure used to pass permission information to IPC operations. */
    struct ipc_perm
    {
    __uid_t uid; /* owner's user ID */
    __gid_t gid; /* owner's group ID */
    __uid_t cuid; /* creator's user ID */
    __gid_t cgid; /* creator's group ID */
    __mode_t mode; /* read/write permission */
    };

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •