Page 5 of 6 FirstFirst 123456 LastLast
Results 101 to 125 of 150
  1. #101
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* siginfo_t, sigevent and constants. Stub version.
    Copyright (C) 1997, 1998, 2000, 2001 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 _SIGNAL_H && !defined __need_siginfo_t \
    && !defined __need_sigevent_t
    # error "Never include this file directly. Use <signal.h> instead"
    #endif

    #if (!defined __have_sigval_t \
    && (defined _SIGNAL_H || defined __need_siginfo_t \
    || defined __need_sigevent_t))
    # define __have_sigval_t 1

    /* Type for data associated with a signal. */
    typedef union sigval
    {
    int sival_int;
    void *sival_ptr;
    } sigval_t;
    #endif

    #if (!defined __have_siginfo_t \
    && (defined _SIGNAL_H || defined __need_siginfo_t))
    # define __have_siginfo_t 1

    typedef struct siginfo
    {
    int si_signo; /* Signal number. */
    int si_errno; /* If non-zero, an errno value associated with
    this signal, as defined in <errno.h>. */
    int si_code; /* Signal code. */
    __pid_t si_pid; /* Sending process ID. */
    __uid_t si_uid; /* Real user ID of sending process. */
    void *si_addr; /* Address of faulting instruction. */
    int si_status; /* Exit value or signal. */
    long int si_band; /* Band event for SIGPOLL. */
    union sigval si_value; /* Signal value. */
    } siginfo_t;


    /* Values for `si_code'. Positive values are reserved for kernel-generated
    signals. */
    enum
    {
    SI_ASYNCIO = -4, /* Sent by AIO completion. */
    # define SI_ASYNCIO SI_ASYNCIO
    SI_MESGQ, /* Sent by real time mesq state change. */
    # define SI_MESGQ SI_MESGQ
    SI_TIMER, /* Sent by timer expiration. */
    # define SI_TIMER SI_TIMER
    SI_QUEUE, /* Sent by sigqueue. */
    # define SI_QUEUE SI_QUEUE
    SI_USER /* Sent by kill, sigsend, raise. */
    # define SI_USER SI_USER
    };


    /* `si_code' values for SIGILL signal. */
    enum
    {
    ILL_ILLOPC = 1, /* Illegal opcode. */
    # define ILL_ILLOPC ILL_ILLOPC
    ILL_ILLOPN, /* Illegal operand. */
    # define ILL_ILLOPN ILL_ILLOPN
    ILL_ILLADR, /* Illegal addressing mode. */
    # define ILL_ILLADR ILL_ILLADR
    ILL_ILLTRP, /* Illegal trap. */
    # define ILL_ILLTRP ILL_ILLTRP
    ILL_PRVOPC, /* Privileged opcode. */
    # define ILL_PRVOPC ILL_PRVOPC
    ILL_PRVREG, /* Privileged register. */
    # define ILL_PRVREG ILL_PRVREG
    ILL_COPROC, /* Coprocessor error. */
    # define ILL_COPROC ILL_COPROC
    ILL_BADSTK /* Internal stack error. */
    # define ILL_BADSTK ILL_BADSTK
    };

    /* `si_code' values for SIGFPE signal. */
    enum
    {
    FPE_INTDIV = 1, /* Integer divide by zero. */
    # define FPE_INTDIV FPE_INTDIV
    FPE_INTOVF, /* Integer overflow. */
    # define FPE_INTOVF FPE_INTOVF
    FPE_FLTDIV, /* Floating point divide by zero. */
    # define FPE_FLTDIV FPE_FLTDIV
    FPE_FLTOVF, /* Floating point overflow. */
    # define FPE_FLTOVF FPE_FLTOVF
    FPE_FLTUND, /* Floating point underflow. */
    # define FPE_FLTUND FPE_FLTUND
    FPE_FLTRES, /* Floating point inexact result. */
    # define FPE_FLTRES FPE_FLTRES
    FPE_FLTINV, /* Floating point invalid operation. */
    # define FPE_FLTINV FPE_FLTINV
    FPE_FLTSUB /* Subscript out of range. */
    # define FPE_FLTSUB FPE_FLTSUB
    };

    /* `si_code' values for SIGSEGV signal. */
    enum
    {
    SEGV_MAPERR = 1, /* Address not mapped to object. */
    # define SEGV_MAPERR SEGV_MAPERR
    SEGV_ACCERR /* Invalid permissions for mapped object. */
    # define SEGV_ACCERR SEGV_ACCERR
    };

    /* `si_code' values for SIGBUS signal. */
    enum
    {
    BUS_ADRALN = 1, /* Invalid address alignment. */
    # define BUS_ADRALN BUS_ADRALN
    BUS_ADRERR, /* Non-existant physical address. */
    # define BUS_ADRERR BUS_ADRERR
    BUS_OBJERR /* Object specific hardware error. */
    # define BUS_OBJERR BUS_OBJERR
    };

    /* `si_code' values for SIGTRAP signal. */
    enum
    {
    TRAP_BRKPT = 1, /* Process breakpoint. */
    # define TRAP_BRKPT TRAP_BRKPT
    TRAP_TRACE /* Process trace trap. */
    # define TRAP_TRACE TRAP_TRACE
    };

    /* `si_code' values for SIGCHLD signal. */
    enum
    {
    CLD_EXITED = 1, /* Child has exited. */
    # define CLD_EXITED CLD_EXITED
    CLD_KILLED, /* Child was killed. */
    # define CLD_KILLED CLD_KILLED
    CLD_DUMPED, /* Child terminated abnormally. */
    # define CLD_DUMPED CLD_DUMPED
    CLD_TRAPPED, /* Traced child has trapped. */
    # define CLD_TRAPPED CLD_TRAPPED
    CLD_STOPPED, /* Child has stopped. */
    # define CLD_STOPPED CLD_STOPPED
    CLD_CONTINUED /* Stopped child has continued. */
    # define CLD_CONTINUED CLD_CONTINUED
    };

    /* `si_code' values for SIGPOLL signal. */
    enum
    {
    POLL_IN = 1, /* Data input available. */
    # define POLL_IN POLL_IN
    POLL_OUT, /* Output buffers available. */
    # define POLL_OUT POLL_OUT
    POLL_MSG, /* Input message available. */
    # define POLL_MSG POLL_MSG
    POLL_ERR, /* I/O error. */
    # define POLL_ERR POLL_ERR
    POLL_PRI, /* High priority input available. */
    # define POLL_PRI POLL_PRI
    POLL_HUP /* Device disconnected. */
    # define POLL_HUP POLL_HUP
    };

    # undef __need_siginfo_t
    #endif /* !have siginfo_t && (have _SIGNAL_H || need siginfo_t). */


    #if (defined _SIGNAL_H || defined __need_sigevent_t) \
    && !defined __have_sigevent_t
    # define __have_sigevent_t 1

    /* Structure to transport application-defined values with signals. */
    # define SIGEV_MAX_SIZE 64
    # define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE / sizeof (int)) - 3)

    typedef struct sigevent
    {
    sigval_t sigev_value;
    int sigev_signo;
    int sigev_notify;
    void (*sigev_notify_function) (sigval_t); /* Function to start. */
    void *sigev_notify_attributes; /* Really pthread_attr_t.*/
    } sigevent_t;

    /* `sigev_notify' values. */
    enum
    {
    SIGEV_SIGNAL = 0, /* Notify via signal. */
    # define SIGEV_SIGNAL SIGEV_SIGNAL
    SIGEV_NONE, /* Other notification: meaningless. */
    # define SIGEV_NONE SIGEV_NONE
    SIGEV_THREAD /* Deliver via thread creation. */
    # define SIGEV_THREAD SIGEV_THREAD
    };

    #endif /* have _SIGNAL_H. */

  2. #102
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Signal number constants. 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/>. */

    #ifdef _SIGNAL_H

    /* Fake signal functions. */

    #define SIG_ERR ((__sighandler_t) -1) /* Error return. */
    #define SIG_DFL ((__sighandler_t) 0) /* Default action. */
    #define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */

    #ifdef __USE_UNIX98
    # define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
    #endif

    /* We define here all the signal names listed in POSIX (1003.1-2008).
    Signals in the 1-15 range are defined with their historical numbers.
    For other signals specified by POSIX, we use the BSD numbers. */

    /* ISO C99 signals. */
    #define SIGINT 2 /* Interactive attention signal. */
    #define SIGILL 4 /* Illegal instruction. */
    #define SIGABRT 6 /* Abnormal termination. */
    #define SIGFPE 8 /* Erroneous arithmetic operation. */
    #define SIGSEGV 11 /* Invalid access to storage. */
    #define SIGTERM 15 /* Termination request. */

    /* Historical signals specified by POSIX. */
    #define SIGHUP 1 /* Hangup. */
    #define SIGQUIT 3 /* Quit. */
    #define SIGTRAP 5 /* Trace/breakpoint trap. */
    #define SIGKILL 9 /* Killed. */
    #define SIGBUS 10 /* Bus error. */
    #define SIGSYS 12 /* Bad system call. */
    #define SIGPIPE 13 /* Broken pipe. */
    #define SIGALRM 14 /* Alarm clock. */

    /* New(er) POSIX signals (1003.1-2008). */
    #define SIGURG 16 /* High bandwidth data is available at a socket. */
    #define SIGSTOP 17 /* Stopped (signal). */
    #define SIGTSTP 18 /* Stopped. */
    #define SIGCONT 19 /* Continued. */
    #define SIGCHLD 20 /* Child terminated or stopped. */
    #define SIGTTIN 21 /* Background read from control terminal. */
    #define SIGTTOU 22 /* Background write to control terminal. */
    #define SIGPOLL 23 /* Pollable event occurred (System V). */
    #define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
    #define SIGXCPU 24 /* CPU time limit exceeded. */
    #define SIGXFSZ 25 /* File size limit exceeded. */
    #define SIGVTALRM 26 /* Virtual timer expired. */
    #define SIGPROF 27 /* Profiling timer expired. */
    #define SIGUSR1 30 /* User-defined signal 1. */
    #define SIGUSR2 31 /* User-defined signal 2. */

    #define _NSIG 32

    /* Archaic names for compatibility. */
    #define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP11 */
    #define SIGCLD SIGCHLD /* Old System V name */

    #endif /* <signal.h> included. */

  3. #103
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* __sig_atomic_t, __sigset_t, and related definitions. Generic/BSD version.
    Copyright (C) 1991, 1992, 1994, 1996, 1997, 2007, 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 _SIGSET_H_types
    #define _SIGSET_H_types 1

    typedef int __sig_atomic_t;

    /* A `sigset_t' has a bit for each signal. */
    typedef unsigned long int __sigset_t;

    #endif


    /* We only want to define these functions if <signal.h> was actually
    included; otherwise we were included just to define the types. Since we
    are namespace-clean, it wouldn't hurt to define extra macros. But
    trouble can be caused by functions being defined (e.g., any global
    register vars declared later will cause compilation errors). */

    #if !defined _SIGSET_H_fns && defined _SIGNAL_H
    #define _SIGSET_H_fns 1

    #ifndef _EXTERN_INLINE
    # define _EXTERN_INLINE __extern_inline
    #endif

    /* Return a mask that includes SIG only. The cast to `sigset_t' avoids
    overflow if `sigset_t' is wider than `int'. */
    #define __sigmask(sig) (((__sigset_t) 1) << ((sig) - 1))

    #define __sigemptyset(set) ((*(set) = (__sigset_t) 0), 0)
    #define __sigfillset(set) ((*(set) = ~(__sigset_t) 0), 0)

    #ifdef _GNU_SOURCE
    # define __sigisemptyset(set) (*(set) == (__sigset_t) 0)
    # define __sigandset(dest, left, right) \
    ((*(dest) = (*(left) & *(right))), 0)
    # define __sigorset(dest, left, right) \
    ((*(dest) = (*(left) | *(right))), 0)
    #endif

    /* These functions needn't check for a bogus signal number -- error
    checking is done in the non __ versions. */

    extern int __sigismember (const __sigset_t *, int);
    extern int __sigaddset (__sigset_t *, int);
    extern int __sigdelset (__sigset_t *, int);

    #ifdef __USE_EXTERN_INLINES
    # define __SIGSETFN(NAME, BODY, CONST) \
    _EXTERN_INLINE int \
    NAME (CONST __sigset_t *__set, int __sig) \
    { \
    __sigset_t __mask = __sigmask (__sig); \
    return BODY; \
    }

    __SIGSETFN (__sigismember, (*__set & __mask) ? 1 : 0, const)
    __SIGSETFN (__sigaddset, ((*__set |= __mask), 0), )
    __SIGSETFN (__sigdelset, ((*__set &= ~__mask), 0), )

    # undef __SIGSETFN
    #endif


    #endif /* ! _SIGSET_H_fns. */

  4. #104
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* sigstack, sigaltstack definitions.
    Copyright (C) 1998, 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 _SIGNAL_H
    # error "Never include this file directly. Use <signal.h> instead"
    #endif


    /* Structure describing a signal stack (obsolete). */
    struct sigstack
    {
    __ptr_t ss_sp; /* Signal stack pointer. */
    int ss_onstack; /* Nonzero if executing on this stack. */
    };


    /* Alternate, preferred interface. */
    typedef struct sigaltstack
    {
    __ptr_t ss_sp;
    size_t ss_size;
    int ss_flags;
    } stack_t;


    /* Possible values for `ss_flags.'. */
    enum
    {
    SS_ONSTACK = 0x0001,
    #define SS_ONSTACK SS_ONSTACK
    SS_DISABLE = 0x0004
    #define SS_DISABLE SS_DISABLE
    };

    /* Minumum stack size for a signal handler. */
    #define MINSIGSTKSZ 8192

    /* System default stack size. */
    #define SIGSTKSZ (MINSIGSTKSZ + 32768)

  5. #105
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Signal handling function for threaded programs. Generic version.
    Copyright (C) 2000, 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_SIGTHREAD_H
    #define _BITS_SIGTHREAD_H 1

    #if !defined _SIGNAL_H && !defined _PTHREAD_H
    # error "Never include this file directly. Use <pthread.h> instead"
    #endif

    /* Modify the signal mask for the calling thread. The arguments have the
    same meaning as for sigprocmask; in fact, this and sigprocmask might be
    the same function. We declare this the same on all platforms, since it
    doesn't use any thread-related types. */
    extern int pthread_sigmask (int __how, const __sigset_t *__newmask,
    __sigset_t *__oldmask) __THROW;


    #endif /* bits/sigthread.h */

  6. #106
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Definition of `struct sockaddr_*' common members. Generic/4.2 BSD version.
    Copyright (C) 1995,1996,1997,1998,2000,2001 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/>. */

    /*
    * Never include this file directly; use <sys/socket.h> instead.
    */

    #ifndef _BITS_SOCKADDR_H
    #define _BITS_SOCKADDR_H 1


    /* POSIX.1g specifies this type name for the `sa_family' member. */
    typedef unsigned short int sa_family_t;

    /* This macro is used to declare the initial common members
    of the data types used for socket addresses, `struct sockaddr',
    `struct sockaddr_in', `struct sockaddr_un', etc. */

    #define __SOCKADDR_COMMON(sa_prefix) \
    sa_family_t sa_prefix##family

    #define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int))

    #endif /* bits/sockaddr.h */

  7. #107
    Alleged Michigander ChumpDumper's Avatar
    My Team
    San Antonio Spurs
    Join Date
    May 2003
    Post Count
    154,416
    SA210 owned by Avante.

    SBM stuck in a love triangle.

  8. #108
    Boring = 4 Rings SA210's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Oct 2005
    Post Count
    14,286
    hey look, I'm still lying, and following SA210 around, I can NOT quit him. Why am I so angry!! I hate that he knows Obama is a terrorist! Why am I so obese?!!!
    Thanks for being a stalker and bumping my thread guys. Feel free to keep bumping

    74,610

  9. #109
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* System-specific socket constants and types. Generic/4.3 BSD version.
    Copyright (C) 1991,92,1994-1999,2000,2001 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_SOCKET_H
    #define __BITS_SOCKET_H 1

    #if !defined _SYS_SOCKET_H && !defined _NETINET_IN_H
    # error "Never include <bits/socket.h> directly; use <sys/socket.h> instead."
    #endif

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

    #define __need_size_t
    #include <stddef.h>

    /* Type for length arguments in socket calls. */
    #ifndef __socklen_t_defined
    typedef __socklen_t socklen_t;
    # define __socklen_t_defined
    #endif


    /* Types of sockets. */
    enum __socket_type
    {
    SOCK_STREAM = 1, /* Sequenced, reliable, connection-based
    byte streams. */
    #define SOCK_STREAM SOCK_STREAM
    SOCK_DGRAM = 2, /* Connectionless, unreliable datagrams
    of fixed maximum length. */
    #define SOCK_DGRAM SOCK_DGRAM
    SOCK_RAW = 3, /* Raw protocol interface. */
    #define SOCK_RAW SOCK_RAW
    SOCK_RDM = 4, /* Reliably-delivered messages. */
    #define SOCK_RDM SOCK_RDM
    SOCK_SEQPACKET = 5 /* Sequenced, reliable, connection-based,
    datagrams of fixed maximum length. */
    #define SOCK_SEQPACKET SOCK_SEQPACKET
    };

    /* Protocol families. */
    #define PF_UNSPEC 0 /* Unspecified. */
    #define PF_LOCAL 1 /* Local to host (pipes and file-domain). */
    #define PF_UNIX PF_LOCAL /* Old BSD name for PF_LOCAL. */
    #define PF_FILE PF_LOCAL /* POSIX name for PF_LOCAL. */
    #define PF_INET 2 /* IP protocol family. */
    #define PF_IMPLINK 3 /* ARPAnet IMP protocol. */
    #define PF_PUP 4 /* PUP protocols. */
    #define PF_CHAOS 5 /* MIT Chaos protocols. */
    #define PF_NS 6 /* Xerox NS protocols. */
    #define PF_ISO 7 /* ISO protocols. */
    #define PF_OSI PF_ISO
    #define PF_ECMA 8 /* ECMA protocols. */
    #define PF_DATAKIT 9 /* AT&T Datakit protocols. */
    #define PF_CCITT 10 /* CCITT protocols (X.25 et al). */
    #define PF_SNA 11 /* IBM SNA protocol. */
    #define PF_DECnet 12 /* DECnet protocols. */
    #define PF_DLI 13 /* Direct data link interface. */
    #define PF_LAT 14 /* DEC Local Area Transport protocol. */
    #define PF_HYLINK 15 /* NSC Hyperchannel protocol. */
    #define PF_APPLETALK 16 /* Don't use this. */
    #define PF_ROUTE 17 /* Internal Routing Protocol. */
    #define PF_LINK 18 /* Link layer interface. */
    #define PF_XTP 19 /* eXpress Transfer Protocol (no AF). */
    #define PF_COIP 20 /* Connection-oriented IP, aka ST II. */
    #define PF_CNT 21 /* Computer Network Technology. */
    #define PF_RTIP 22 /* Help Identify RTIP packets. **/
    #define PF_IPX 23 /* Novell Internet Protocol. */
    #define PF_SIP 24 /* Simple Internet Protocol. */
    #define PF_PIP 25 /* Help Identify PIP packets. */
    #define PF_INET6 26 /* IP version 6. */
    #define PF_MAX 27

    /* Address families. */
    #define AF_UNSPEC PF_UNSPEC
    #define AF_LOCAL PF_LOCAL
    #define AF_UNIX PF_UNIX
    #define AF_FILE PF_FILE
    #define AF_INET PF_INET
    #define AF_IMPLINK PF_IMPLINK
    #define AF_PUP PF_PUP
    #define AF_CHAOS PF_CHAOS
    #define AF_NS PF_NS
    #define AF_ISO PF_ISO
    #define AF_OSI PF_OSI
    #define AF_ECMA PF_ECMA
    #define AF_DATAKIT PF_DATAKIT
    #define AF_CCITT PF_CCITT
    #define AF_SNA PF_SNA
    #define AF_DECnet PF_DECnet
    #define AF_DLI PF_DLI
    #define AF_LAT PF_LAT
    #define AF_HYLINK PF_HYLINK
    #define AF_APPLETALK PF_APPLETALK
    #define AF_ROUTE PF_ROUTE
    #define AF_LINK PF_LINK
    #define pseudo_AF_XTP PF_XTP
    #define AF_COIP PF_COIP
    #define AF_CNT PF_CNT
    #define pseudo_AF_RTIP PF_RTIP
    #define AF_IPX PF_IPX
    #define AF_SIP PF_SIP
    #define pseudo_AF_PIP PF_PIP
    #define AF_INET6 PF_INET6
    #define AF_MAX PF_MAX


    /* Get the definition of the macro to define the common sockaddr members. */
    #include <bits/sockaddr.h>

    /* Structure describing a generic socket address. */
    struct sockaddr
    {
    __SOCKADDR_COMMON (sa_); /* Common data: address family and length. */
    char sa_data[14]; /* Address data. */
    };


    /* Structure large enough to hold any socket address (with the historical
    exception of AF_UNIX). We reserve 128 bytes. */
    #if ULONG_MAX > 0xffffffff
    # define __ss_aligntype __uint64_t
    #else
    # define __ss_aligntype __uint32_t
    #endif
    #define _SS_SIZE 128
    #define _SS_PADSIZE (_SS_SIZE - (2 * sizeof (__ss_aligntype)))

    struct sockaddr_storage
    {
    __SOCKADDR_COMMON (ss_); /* Address family, etc. */
    __ss_aligntype __ss_align; /* Force desired alignment. */
    char __ss_padding[_SS_PADSIZE];
    };


    /* Bits in the FLAGS argument to `send', `recv', et al. */
    enum
    {
    MSG_OOB = 0x01, /* Process out-of-band data. */
    #define MSG_OOB MSG_OOB
    MSG_PEEK = 0x02, /* Peek at incoming messages. */
    #define MSG_PEEK MSG_PEEK
    MSG_DONTROUTE = 0x04, /* Don't use local routing. */
    #define MSG_DONTROUTE MSG_DONTROUTE
    MSG_EOR = 0x08, /* Data completes record. */
    #define MSG_EOR MSG_EOR
    MSG_TRUNC = 0x10, /* Data discarded before delivery. */
    #define MSG_TRUNC MSG_TRUNC
    MSG_CTRUNC = 0x20, /* Control data lost before delivery. */
    #define MSG_CTRUNC MSG_CTRUNC
    MSG_WAITALL = 0x40, /* Wait for full request or error. */
    #define MSG_WAITALL MSG_WAITALL
    MSG_DONTWAIT = 0x80 /* This message should be nonblocking. */
    #define MSG_DONTWAIT MSG_DONTWAIT
    };


    /* Structure describing messages sent by
    `sendmsg' and received by `recvmsg'. */
    struct msghdr
    {
    __ptr_t msg_name; /* Address to send to/receive from. */
    socklen_t msg_namelen; /* Length of address data. */

    struct iovec *msg_iov; /* Vector of data to send/receive into. */
    int msg_iovlen; /* Number of elements in the vector. */

    __ptr_t msg_accrights; /* Access rights information. */
    socklen_t msg_accrightslen; /* Length of access rights information. */

    int msg_flags; /* Flags in received message. */
    };


    /* Protocol number used to manipulate socket-level options
    with `getsockopt' and `setsockopt'. */
    #define SOL_SOCKET 0xffff

    /* Socket-level options for `getsockopt' and `setsockopt'. */
    enum
    {
    SO_DEBUG = 0x0001, /* Record debugging information. */
    #define SO_DEBUG SO_DEBUG
    SO_ACCEPTCONN = 0x0002, /* Accept connections on socket. */
    #define SO_ACCEPTCONN SO_ACCEPTCONN
    SO_REUSEADDR = 0x0004, /* Allow reuse of local addresses. */
    #define SO_REUSEADDR SO_REUSEADDR
    SO_KEEPALIVE = 0x0008, /* Keep connections alive and send
    SIGPIPE when they die. */
    #define SO_KEEPALIVE SO_KEEPALIVE
    SO_DONTROUTE = 0x0010, /* Don't do local routing. */
    #define SO_DONTROUTE SO_DONTROUTE
    SO_BROADCAST = 0x0020, /* Allow transmission of
    broadcast messages. */
    #define SO_BROADCAST SO_BROADCAST
    SO_USELOOPBACK = 0x0040, /* Use the software loopback to avoid
    hardware use when possible. */
    #define SO_USELOOPBACK SO_USELOOPBACK
    SO_LINGER = 0x0080, /* Block on close of a reliable
    socket to transmit pending data. */
    #define SO_LINGER SO_LINGER
    SO_OOBINLINE = 0x0100, /* Receive out-of-band data in-band. */
    #define SO_OOBINLINE SO_OOBINLINE
    SO_REUSEPORT = 0x0200, /* Allow local address and port reuse. */
    #define SO_REUSEPORT SO_REUSEPORT
    SO_SNDBUF = 0x1001, /* Send buffer size. */
    #define SO_SNDBUF SO_SNDBUF
    SO_RCVBUF = 0x1002, /* Receive buffer. */
    #define SO_RCVBUF SO_RCVBUF
    SO_SNDLOWAT = 0x1003, /* Send low-water mark. */
    #define SO_SNDLOWAT SO_SNDLOWAT
    SO_RCVLOWAT = 0x1004, /* Receive low-water mark. */
    #define SO_RCVLOWAT SO_RCVLOWAT
    SO_SNDTIMEO = 0x1005, /* Send timeout. */
    #define SO_SNDTIMEO SO_SNDTIMEO
    SO_RCVTIMEO = 0x1006, /* Receive timeout. */
    #define SO_RCVTIMEO SO_RCVTIMEO
    SO_ERROR = 0x1007, /* Get and clear error status. */
    #define SO_ERROR SO_ERROR
    SO_STYLE = 0x1008, /* Get socket connection style. */
    #define SO_STYLE SO_STYLE
    SO_TYPE = SO_STYLE /* Compatible name for SO_STYLE. */
    #define SO_TYPE SO_TYPE
    };

    /* Structure used to manipulate the SO_LINGER option. */
    struct linger
    {
    int l_onoff; /* Nonzero to linger on close. */
    int l_linger; /* Time to linger. */
    };

    #endif /* bits/socket.h */

  10. #110
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1992-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 _SYS_STAT_H && !defined _FCNTL_H
    # error "Never include <bits/stat.h> directly; use <sys/stat.h> instead."
    #endif

    #ifndef _BITS_STAT_H
    #define _BITS_STAT_H 1

    /* This structure needs to be defined in accordance with the
    implementation of __stat, __fstat, and __lstat. */

    #include <bits/types.h>

    /* Structure describing file characteristics. */
    struct stat
    {
    /* These are the members that POSIX.1 requires. */

    __mode_t st_mode; /* File mode. */
    #ifndef __USE_FILE_OFFSET64
    __ino_t st_ino; /* File serial number. */
    #else
    __ino64_t st_ino; /* File serial number. */
    #endif
    __dev_t st_dev; /* Device containing the file. */
    __nlink_t st_nlink; /* Link count. */

    __uid_t st_uid; /* User ID of the file's owner. */
    __gid_t st_gid; /* Group ID of the file's group. */
    #ifndef __USE_FILE_OFFSET64
    __off_t st_size; /* Size of file, in bytes. */
    #else
    __off64_t st_size; /* Size of file, in bytes. */
    #endif

    __time_t st_atime; /* Time of last access. */
    __time_t st_mtime; /* Time of last modification. */
    __time_t st_ctime; /* Time of last status change. */

    /* This should be defined if there is a `st_blksize' member. */
    #undef _STATBUF_ST_BLKSIZE
    };

    /* Encoding of the file mode. These are the standard Unix values,
    but POSIX.1 does not specify what values should be used. */

    #define __S_IFMT 0170000 /* These bits determine file type. */

    /* File types. */
    #define __S_IFDIR 0040000 /* Directory. */
    #define __S_IFCHR 0020000 /* Character device. */
    #define __S_IFBLK 0060000 /* Block device. */
    #define __S_IFREG 0100000 /* Regular file. */
    #define __S_IFIFO 0010000 /* FIFO. */

    /* POSIX.1b objects. */
    #define __S_TYPEISMQ(buf) 0
    #define __S_TYPEISSEM(buf) 0
    #define __S_TYPEISSHM(buf) 0

    /* Protection bits. */

    #define __S_ISUID 04000 /* Set user ID on execution. */
    #define __S_ISGID 02000 /* Set group ID on execution. */
    #define __S_IREAD 0400 /* Read by owner. */
    #define __S_IWRITE 0200 /* Write by owner. */
    #define __S_IEXEC 0100 /* Execute by owner. */

    #ifdef __USE_LARGEFILE64
    struct stat64
    {
    __mode_t st_mode; /* File mode. */
    __ino64_t st_ino; /* File serial number. */
    __dev_t st_dev; /* Device. */
    __nlink_t st_nlink; /* Link count. */

    __uid_t st_uid; /* User ID of the file's owner. */
    __gid_t st_gid; /* Group ID of the file's group.*/
    __off64_t st_size; /* Size of file, in bytes. */

    __time_t st_atime; /* Time of last access. */
    __time_t st_mtime; /* Time of last modification. */
    __time_t st_ctime; /* Time of last status change. */
    };
    #endif

    #endif /* bits/stat.h */

  11. #111
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Definition of `struct statfs', information about a filesystem.
    Copyright (C) 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/>. */

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

    #include <bits/types.h>

    /* GNU Hurd NOTE: The size of this structure (16 ints) is known in
    <hurd/hurd_types.defs>, since it is used in the `file_statfs' RPC. MiG
    does not cope at all well with the passed C structure not being of the
    expected size. There are some filler words at the end to allow for
    future expansion. To increase the size of the structure used in the RPC
    and retain binary compatibility, we would need to assign a new message
    number. */

    struct statfs
    {
    unsigned int f_type;
    unsigned int f_bsize;
    #ifndef __USE_FILE_OFFSET64
    __fsblkcnt_t f_blocks;
    __fsblkcnt_t f_bfree;
    __fsblkcnt_t f_bavail;
    __fsblkcnt_t f_files;
    __fsblkcnt_t f_ffree;
    #else
    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsblkcnt64_t f_files;
    __fsblkcnt64_t f_ffree;
    #endif
    __fsid_t f_fsid;
    unsigned int f_namelen;
    unsigned int f_spare[6];
    };

    #ifdef __USE_LARGEFILE64
    struct statfs64
    {
    unsigned int f_type;
    unsigned int f_bsize;
    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsblkcnt64_t f_files;
    __fsblkcnt64_t f_ffree;
    __fsid_t f_fsid;
    unsigned int f_namelen;
    unsigned int f_spare[6];
    };
    #endif

  12. #112
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Definition of `struct statvfs', information about a filesystem.
    Copyright (C) 1998 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_STATVFS_H
    # error "Never include <bits/statvfs.h> directly; use <sys/statvfs.h> instead."
    #endif

    #include <bits/types.h>

    /* GNU Hurd NOTE: The size of this structure (16 ints) is known in
    <hurd/hurd_types.defs>, since it is used in the `file_statfs' RPC. MiG
    does not cope at all well with the passed C structure not being of the
    expected size. There are some filler words at the end to allow for
    future expansion. To increase the size of the structure used in the RPC
    and retain binary compatibility, we would need to assign a new message
    number. */

    struct statvfs
    {
    unsigned long int f_bsize;
    unsigned long int f_frsize;
    #ifndef __USE_FILE_OFFSET64
    __fsblkcnt_t f_blocks;
    __fsblkcnt_t f_bfree;
    __fsblkcnt_t f_bavail;
    __fsfilcnt_t f_files;
    __fsfilcnt_t f_ffree;
    __fsfilcnt_t f_favail;
    #else
    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsfilcnt64_t f_files;
    __fsfilcnt64_t f_ffree;
    __fsfilcnt64_t f_favail;
    #endif
    __fsid_t f_fsid;
    unsigned long int f_flag;
    unsigned long int f_namemax;
    unsigned int f_spare[6];
    };

    #ifdef __USE_LARGEFILE64
    struct statvfs64
    {
    unsigned long int f_bsize;
    unsigned long int f_frsize;
    __fsblkcnt64_t f_blocks;
    __fsblkcnt64_t f_bfree;
    __fsblkcnt64_t f_bavail;
    __fsfilcnt64_t f_files;
    __fsfilcnt64_t f_ffree;
    __fsfilcnt64_t f_favail;
    __fsid_t f_fsid;
    unsigned long int f_flag;
    unsigned long int f_namemax;
    unsigned int f_spare[6];
    };
    #endif

    /* Definitions for the flag in `f_flag'. */
    enum
    {
    ST_RDONLY = 1,
    #define ST_RDONLY ST_RDONLY
    ST_NOSUID = 2
    #define ST_NOSUID ST_NOSUID
    };

  13. #113
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Thread package specific definitions of stream lock type. Generic version.
    Copyright (C) 2000, 2001, 2002, 2003 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_STDIO_LOCK_H
    #define _BITS_STDIO_LOCK_H 1

    #include <bits/libc-lock.h>

    __libc_lock_define_recursive (typedef, _IO_lock_t)

    /* We need recursive (counting) mutexes. */
    #ifdef _LIBC_LOCK_RECURSIVE_INITIALIZER
    # define _IO_lock_initializer _LIBC_LOCK_RECURSIVE_INITIALIZER
    #elif _IO_MTSAFE_IO
    #error libio needs recursive mutexes for _IO_MTSAFE_IO
    #endif

    #define _IO_lock_init(_name) __libc_lock_init_recursive (_name)
    #define _IO_lock_fini(_name) __libc_lock_fini_recursive (_name)
    #define _IO_lock_lock(_name) __libc_lock_lock_recursive (_name)
    #define _IO_lock_trylock(_name) __libc_lock_trylock_recursive (_name)
    #define _IO_lock_unlock(_name) __libc_lock_unlock_recursive (_name)


    #define _IO_cleanup_region_start(_fct, _fp) \
    __libc_cleanup_region_start (((_fp)->_flags & _IO_USER_LOCK) == 0, _fct, _fp)
    #define _IO_cleanup_region_start_noarg(_fct) \
    __libc_cleanup_region_start (1, _fct, NULL)
    #define _IO_cleanup_region_end(_doit) \
    __libc_cleanup_region_end (_doit)

    #if defined _LIBC && !defined NOT_IN_libc
    # define _IO_acquire_lock(_fp) \
    _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp)); \
    _IO_flockfile (_fp)

    # define _IO_release_lock(_fp) \
    _IO_funlockfile (_fp); \
    _IO_cleanup_region_end (0)
    #endif

    #endif /* bits/stdio-lock.h */

  14. #114
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* This file should provide inline versions of string functions.

    Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.

    This file should define __STRING_INLINES if functions are actually defined
    as inlines. */

    #ifndef _BITS_STRING_H
    #define _BITS_STRING_H 1


    #endif /* bits/string.h */

  15. #115
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1998, 1999, 2000, 2002 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 _STROPTS_H
    # error "Never include <bits/stropts.h> directly; use <stropts.h> instead."
    #endif

    #ifndef _BITS_STROPTS_H
    #define _BITS_STROPTS_H 1

    #include <bits/types.h>

    /* Macros used as `request' argument to `ioctl'. */
    #define __SID ('S' << 8)

    #define I_NREAD (__SID | 1) /* Counts the number of data bytes in the data
    block in the first message. */
    #define I_PUSH (__SID | 2) /* Push STREAMS module onto top of the current
    STREAM, just below the STREAM head. */
    #define I_POP (__SID | 3) /* Remove STREAMS module from just below the
    STREAM head. */
    #define I_LOOK (__SID | 4) /* Retrieve the name of the module just below
    the STREAM head and place it in a character
    string. */
    #define I_FLUSH (__SID | 5) /* Flush all input and/or output. */
    #define I_SRDOPT (__SID | 6) /* Sets the read mode. */
    #define I_GRDOPT (__SID | 7) /* Returns the current read mode setting. */
    #define I_STR (__SID | 8) /* Construct an internal STREAMS `ioctl'
    message and send that message downstream. */
    #define I_SETSIG (__SID | 9) /* Inform the STREAM head that the process
    wants the SIGPOLL signal issued. */
    #define I_GETSIG (__SID |10) /* Return the events for which the calling
    process is currently registered to be sent
    a SIGPOLL signal. */
    #define I_FIND (__SID |11) /* Compares the names of all modules currently
    present in the STREAM to the name pointed to
    by `arg'. */
    #define I_LINK (__SID |12) /* Connect two STREAMs. */
    #define I_UNLINK (__SID |13) /* Disconnects the two STREAMs. */
    #define I_PEEK (__SID |15) /* Allows a process to retrieve the information
    in the first message on the STREAM head read
    queue without taking the message off the
    queue. */
    #define I_FDINSERT (__SID |16) /* Create a message from the specified
    buffer(s), adds information about another
    STREAM, and send the message downstream. */
    #define I_SENDFD (__SID |17) /* Requests the STREAM associated with `fildes'
    to send a message, containing a file
    pointer, to the STREAM head at the other end
    of a STREAMS pipe. */
    #define I_RECVFD (__SID |14) /* Non-EFT definition. */
    #define I_SWROPT (__SID |19) /* Set the write mode. */
    #define I_GWROPT (__SID |20) /* Return the current write mode setting. */
    #define I_LIST (__SID |21) /* List all the module names on the STREAM, up
    to and including the topmost driver name. */
    #define I_PLINK (__SID |22) /* Connect two STREAMs with a persistent
    link. */
    #define I_PUNLINK (__SID |23) /* Disconnect the two STREAMs that were
    connected with a persistent link. */
    #define I_FLUSHBAND (__SID |28) /* Flush only band specified. */
    #define I_CKBAND (__SID |29) /* Check if the message of a given priority
    band exists on the STREAM head read
    queue. */
    #define I_GETBAND (__SID |30) /* Return the priority band of the first
    message on the STREAM head read queue. */
    #define I_ATMARK (__SID |31) /* See if the current message on the STREAM
    head read queue is "marked" by some module
    downstream. */
    #define I_SETCLTIME (__SID |32) /* Set the time the STREAM head will delay when
    a STREAM is closing and there is data on
    the write queues. */
    #define I_GETCLTIME (__SID |33) /* Get current value for closing timeout. */
    #define I_CANPUT (__SID |34) /* Check if a certain band is writable. */


    /* Used in `I_LOOK' request. */
    #define FMNAMESZ 8 /* compatibility w/UnixWare/Solaris. */

    /* Flush options. */
    #define FLUSHR 0x01 /* Flush read queues. */
    #define FLUSHW 0x02 /* Flush write queues. */
    #define FLUSHRW 0x03 /* Flush read and write queues. */
    #ifdef __USE_GNU
    # define FLUSHBAND 0x04 /* Flush only specified band. */
    #endif

    /* Possible arguments for `I_SETSIG'. */
    #define S_INPUT 0x0001 /* A message, other than a high-priority
    message, has arrived. */
    #define S_HIPRI 0x0002 /* A high-priority message is present. */
    #define S_OUTPUT 0x0004 /* The write queue for normal data is no longer
    full. */
    #define S_MSG 0x0008 /* A STREAMS signal message that contains the
    SIGPOLL signal reaches the front of the
    STREAM head read queue. */
    #define S_ERROR 0x0010 /* Notification of an error condition. */
    #define S_HANGUP 0x0020 /* Notification of a hangup. */
    #define S_RDNORM 0x0040 /* A normal message has arrived. */
    #define S_WRNORM S_OUTPUT
    #define S_RDBAND 0x0080 /* A message with a non-zero priority has
    arrived. */
    #define S_WRBAND 0x0100 /* The write queue for a non-zero priority
    band is no longer full. */
    #define S_BANDURG 0x0200 /* When used in conjunction with S_RDBAND,
    SIGURG is generated instead of SIGPOLL when
    a priority message reaches the front of the
    STREAM head read queue. */

    /* Option for `I_PEEK'. */
    #define RS_HIPRI 0x01 /* Only look for high-priority messages. */

    /* Options for `I_SRDOPT'. */
    #define RNORM 0x0000 /* Byte-STREAM mode, the default. */
    #define RMSGD 0x0001 /* Message-discard mode. */
    #define RMSGN 0x0002 /* Message-nondiscard mode. */
    #define RPROTDAT 0x0004 /* Deliver the control part of a message as
    data. */
    #define RPROTDIS 0x0008 /* Discard the control part of a message,
    delivering any data part. */
    #define RPROTNORM 0x0010 /* Fail `read' with EBADMSG if a message
    containing a control part is at the front
    of the STREAM head read queue. */
    #ifdef __USE_GNU
    # define RPROTMASK 0x001C /* The RPROT bits */
    #endif

    /* Possible mode for `I_SWROPT'. */
    #define SNDZERO 0x001 /* Send a zero-length message downstream when a
    `write' of 0 bytes occurs. */
    #ifdef __USE_GNU
    # define SNDPIPE 0x002 /* Send SIGPIPE on write and putmsg if
    sd_werror is set. */
    #endif

    /* Arguments for `I_ATMARK'. */
    #define ANYMARK 0x01 /* Check if the message is marked. */
    #define LASTMARK 0x02 /* Check if the message is the last one marked
    on the queue. */

    /* Argument for `I_UNLINK'. */
    #ifdef __USE_GNU
    # define MUXID_ALL (-1) /* Unlink all STREAMs linked to the STREAM
    associated with `fildes'. */
    #endif


    /* Macros for `getmsg', `getpmsg', `putmsg' and `putpmsg'. */
    #define MSG_HIPRI 0x01 /* Send/receive high priority message. */
    #define MSG_ANY 0x02 /* Receive any message. */
    #define MSG_BAND 0x04 /* Receive message from specified band. */

    /* Values returned by getmsg and getpmsg */
    #define MORECTL 1 /* More control information is left in
    message. */
    #define MOREDATA 2 /* More data is left in message. */


    /* Structure used for the I_FLUSHBAND ioctl on streams. */
    struct bandinfo
    {
    unsigned char bi_pri;
    int bi_flag;
    };

    struct strbuf
    {
    int maxlen; /* Maximum buffer length. */
    int len; /* Length of data. */
    char *buf; /* Pointer to buffer. */
    };

    struct strpeek
    {
    struct strbuf ctlbuf;
    struct strbuf databuf;
    t_uscalar_t flags; /* UnixWare/Solaris compatibility. */
    };

    struct strfdinsert
    {
    struct strbuf ctlbuf;
    struct strbuf databuf;
    t_uscalar_t flags; /* UnixWare/Solaris compatibility. */
    int fildes;
    int offset;
    };

    struct strioctl
    {
    int ic_cmd;
    int ic_timout;
    int ic_len;
    char *ic_dp;
    };

    struct strrecvfd
    {
    int fd;
    uid_t uid;
    gid_t gid;
    char __fill[8]; /* UnixWare/Solaris compatibility */
    };


    struct str_mlist
    {
    char l_name[FMNAMESZ + 1];
    };

    struct str_list
    {
    int sl_nmods;
    struct str_mlist *sl_modlist;
    };

    #endif /* bits/stropts.h */

  16. #116
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Declare sys_errlist and sys_nerr, or don't. Don't version.
    Copyright (C) 2002 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 _STDIO_H
    # error "Never include <bits/sys_errlist.h> directly; use <stdio.h> instead."
    #endif

    /* sys_errlist and sys_nerr are deprecated. Use strerror instead. */

  17. #117
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* <bits/syslog-path.h> -- _PATH_LOG definition
    Copyright (C) 2006 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_SYSLOG_H
    # error "Never include this file directly. Use <sys/syslog.h> instead"
    #endif

    #ifndef _BITS_SYSLOG_PATH_H
    #define _BITS_SYSLOG_PATH_H 1

    #define _PATH_LOG "/dev/log"

    #endif /* bits/syslog-path.h */

  18. #118
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* termios type and macro definitions. 4.4 BSD/generic GNU version.
    Copyright (C) 1993,94,96,97,99,2001 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 _TERMIOS_H
    # error "Never include <bits/termios.h> directly; use <termios.h> instead."
    #endif

    /* These macros are also defined in some <bits/ioctls.h> files (with
    numerically identical values), but this serves to shut up cpp's
    complaining. */
    #if defined __USE_MISC || defined __USE_XOPEN

    # ifdef NL0
    # undef NL0
    # endif
    # ifdef NL1
    # undef NL1
    # endif
    # ifdef TAB0
    # undef TAB0
    # endif
    # ifdef TAB1
    # undef TAB1
    # endif
    # ifdef TAB2
    # undef TAB2
    # endif
    # ifdef CR0
    # undef CR0
    # endif
    # ifdef CR1
    # undef CR1
    # endif
    # ifdef CR2
    # undef CR2
    # endif
    # ifdef CR3
    # undef CR3
    # endif
    # ifdef FF0
    # undef FF0
    # endif
    # ifdef FF1
    # undef FF1
    # endif
    # ifdef BS0
    # undef BS0
    # endif
    # ifdef BS1
    # undef BS1
    # endif

    #endif /* __USE_MISC || __USE_XOPEN */

    #ifdef __USE_BSD

    # ifdef MDMBUF
    # undef MDMBUF
    # endif
    # ifdef FLUSHO
    # undef FLUSHO
    # endif
    # ifdef PENDIN
    # undef PENDIN
    # endif

    #endif /* __USE_BSD */

    #ifdef ECHO
    # undef ECHO
    #endif
    #ifdef TOSTOP
    # undef TOSTOP
    #endif
    #ifdef NOFLSH
    # undef NOFLSH
    #endif


    /* These definitions match those used by the 4.4 BSD kernel.
    If the operating system has termios system calls or ioctls that
    correctly implement the POSIX.1 behavior, there should be a
    system-dependent version of this file that defines `struct termios',
    `tcflag_t', `cc_t', `speed_t' and the `TC*' constants appropriately. */

    /* Type of terminal control flag masks. */
    typedef unsigned long int tcflag_t;

    /* Type of control characters. */
    typedef unsigned char cc_t;

    /* Type of baud rate specifiers. */
    typedef long int speed_t;

    /* Terminal control structure. */
    struct termios
    {
    /* Input modes. */
    tcflag_t c_iflag;
    #define IGNBRK (1 << 0) /* Ignore break condition. */
    #define BRKINT (1 << 1) /* Signal interrupt on break. */
    #define IGNPAR (1 << 2) /* Ignore characters with parity errors. */
    #define PARMRK (1 << 3) /* Mark parity and framing errors. */
    #define INPCK (1 << 4) /* Enable input parity check. */
    #define ISTRIP (1 << 5) /* Strip 8th bit off characters. */
    #define INLCR (1 << 6) /* Map NL to CR on input. */
    #define IGNCR (1 << 7) /* Ignore CR. */
    #define ICRNL (1 << 8) /* Map CR to NL on input. */
    #define IXON (1 << 9) /* Enable start/stop output control. */
    #define IXOFF (1 << 10) /* Enable start/stop input control. */
    #if defined __USE_BSD || defined __USE_UNIX98
    # define IXANY (1 << 11) /* Any character will restart after stop. */
    #endif
    #ifdef __USE_BSD
    # define IMAXBEL (1 << 13) /* Ring bell when input queue is full. */
    #endif
    #ifdef __USE_GNU
    # define IUCLC (1 << 14) /* Translate upper case input to lower case. */
    #endif

    /* Output modes. */
    tcflag_t c_oflag;
    #define OPOST (1 << 0) /* Perform output processing. */
    #if defined __USE_BSD || defined __USE_XOPEN
    # define ONLCR (1 << 1) /* Map NL to CR-NL on output. */
    #endif
    #ifdef __USE_BSD
    # define OXTABS TAB3 /* Expand tabs to spaces. */
    # define ONOEOT (1 << 3) /* Discard EOT (^D) on output. */
    #endif
    #if defined __USE_BSD || defined __USE_XOPEN
    # define OCRNL (1 << 4) /* Map CR to NL. */
    # define ONOCR (1 << 5) /* Discard CR's when on column 0. */
    # define ONLRET (1 << 6) /* Move to column 0 on NL. */
    #endif
    #if defined __USE_MISC || defined __USE_XOPEN
    # define NLDLY (3 << 8) /* NL delay. */
    # define NL0 (0 << 8) /* NL type 0. */
    # define NL1 (1 << 8) /* NL type 1. */
    # define TABDLY (3 << 10) /* TAB delay. */
    # define TAB0 (0 << 10) /* TAB delay type 0. */
    # define TAB1 (1 << 10) /* TAB delay type 1. */
    # define TAB2 (2 << 10) /* TAB delay type 2. */
    # define TAB3 (1 << 2) /* Expand tabs to spaces. */
    # define CRDLY (3 << 12) /* CR delay. */
    # define CR0 (0 << 12) /* CR delay type 0. */
    # define CR1 (1 << 12) /* CR delay type 1. */
    # define CR2 (2 << 12) /* CR delay type 2. */
    # define CR3 (3 << 12) /* CR delay type 3. */
    # define FFDLY (1 << 14) /* FF delay. */
    # define FF0 (0 << 14) /* FF delay type 0. */
    # define FF1 (1 << 14) /* FF delay type 1. */
    # define BSDLY (1 << 15) /* BS delay. */
    # define BS0 (0 << 15) /* BS delay type 0. */
    # define BS1 (1 << 15) /* BS delay type 1. */
    # define VTDLY (1 << 16) /* VT delay. */
    # define VT0 (0 << 16) /* VT delay type 0. */
    # define VT1 (1 << 16) /* VT delay type 1. */
    #endif /* __USE_MISC || __USE_XOPEN */
    #ifdef __USE_GNU
    # define OLCUC (1 << 17) /* Translate lower case output to upper case */
    #endif
    #ifdef __USE_XOPEN
    # define OFILL (1 << 18) /* Send fill characters for delays. */
    #endif

    /* Control modes. */
    tcflag_t c_cflag;
    #ifdef __USE_BSD
    # define CIGNORE (1 << 0) /* Ignore these control flags. */
    #endif
    #define CSIZE (CS5|CS6|CS7|CS8) /* Number of bits per byte (mask). */
    #define CS5 0 /* 5 bits per byte. */
    #define CS6 (1 << 8) /* 6 bits per byte. */
    #define CS7 (1 << 9) /* 7 bits per byte. */
    #define CS8 (CS6|CS7) /* 8 bits per byte. */
    #define CSTOPB (1 << 10) /* Two stop bits instead of one. */
    #define CREAD (1 << 11) /* Enable receiver. */
    #define PARENB (1 << 12) /* Parity enable. */
    #define PARODD (1 << 13) /* Odd parity instead of even. */
    #define HUPCL (1 << 14) /* Hang up on last close. */
    #define CLOCAL (1 << 15) /* Ignore modem status lines. */
    #ifdef __USE_BSD
    # define CRTSCTS (1 << 16) /* RTS/CTS flow control. */
    # define CRTS_IFLOW CRTSCTS /* Compatibility. */
    # define CCTS_OFLOW CRTSCTS /* Compatibility. */
    # define CDTRCTS (1 << 17) /* DTR/CTS flow control. */
    # define MDMBUF (1 << 20) /* DTR/DCD flow control. */
    # define CHWFLOW (MDMBUF|CRTSCTS|CDTRCTS) /* All types of flow control. */
    #endif

    /* Local modes. */
    tcflag_t c_lflag;
    #ifdef __USE_BSD
    # define ECHOKE (1 << 0) /* Visual erase for KILL. */
    #endif
    #define _ECHOE (1 << 1) /* Visual erase for ERASE. */
    #define ECHOE _ECHOE
    #define _ECHOK (1 << 2) /* Echo NL after KILL. */
    #define ECHOK _ECHOK
    #define _ECHO (1 << 3) /* Enable echo. */
    #define ECHO _ECHO
    #define _ECHONL (1 << 4) /* Echo NL even if ECHO is off. */
    #define ECHONL _ECHONL
    #ifdef __USE_BSD
    # define ECHOPRT (1 << 5) /* Hardcopy visual erase. */
    # define ECHOCTL (1 << 6) /* Echo control characters as ^X. */
    #endif
    #define _ISIG (1 << 7) /* Enable signals. */
    #define ISIG _ISIG
    #define _ICANON (1 << 8) /* Do erase and kill processing. */
    #define ICANON _ICANON
    #ifdef __USE_BSD
    # define ALTWERASE (1 << 9) /* Alternate WERASE algorithm. */
    #endif
    #define _IEXTEN (1 << 10) /* Enable DISCARD and LNEXT. */
    #define IEXTEN _IEXTEN
    #define EXTPROC (1 << 11) /* External processing. */
    #define _TOSTOP (1 << 22) /* Send SIGTTOU for background output. */
    #define TOSTOP _TOSTOP
    #ifdef __USE_BSD
    # define FLUSHO (1 << 23) /* Output being flushed (state). */
    # define NOKERNINFO (1 << 25) /* Disable VSTATUS. */
    # define PENDIN (1 << 29) /* Retype pending input (state). */
    #endif
    #define _NOFLSH (1 << 31) /* Disable flush after interrupt. */
    #define NOFLSH _NOFLSH

    /* Control characters. */
    #define VEOF 0 /* End-of-file character [ICANON]. */
    #define VEOL 1 /* End-of-line character [ICANON]. */
    #ifdef __USE_BSD
    # define VEOL2 2 /* Second EOL character [ICANON]. */
    #endif
    #define VERASE 3 /* Erase character [ICANON]. */
    #ifdef __USE_BSD
    # define VWERASE 4 /* Word-erase character [ICANON]. */
    #endif
    #define VKILL 5 /* Kill-line character [ICANON]. */
    #ifdef __USE_BSD
    # define VREPRINT 6 /* Reprint-line character [ICANON]. */
    #endif
    #define VINTR 8 /* Interrupt character [ISIG]. */
    #define VQUIT 9 /* Quit character [ISIG]. */
    #define VSUSP 10 /* Suspend character [ISIG]. */
    #ifdef __USE_BSD
    # define VDSUSP 11 /* Delayed suspend character [ISIG]. */
    #endif
    #define VSTART 12 /* Start (X-ON) character [IXON, IXOFF]. */
    #define VSTOP 13 /* Stop (X-OFF) character [IXON, IXOFF]. */
    #ifdef __USE_BSD
    # define VLNEXT 14 /* Literal-next character [IEXTEN]. */
    # define VDISCARD 15 /* Discard character [IEXTEN]. */
    #endif
    #define VMIN 16 /* Minimum number of bytes read at once [!ICANON]. */
    #define VTIME 17 /* Time-out value (tenths of a second) [!ICANON]. */
    #ifdef __USE_BSD
    # define VSTATUS 18 /* Status character [ICANON]. */
    #endif
    #define NCCS 20 /* Value duplicated in <hurd/tioctl.defs>. */
    cc_t c_cc[NCCS];

    /* Input and output baud rates. */
    speed_t __ispeed, __ospeed;
    #define B0 0 /* Hang up. */
    #define B50 50 /* 50 baud. */
    #define B75 75 /* 75 baud. */
    #define B110 110 /* 110 baud. */
    #define B134 134 /* 134.5 baud. */
    #define B150 150 /* 150 baud. */
    #define B200 200 /* 200 baud. */
    #define B300 300 /* 300 baud. */
    #define B600 600 /* 600 baud. */
    #define B1200 1200 /* 1200 baud. */
    #define B1800 1800 /* 1800 baud. */
    #define B2400 2400 /* 2400 baud. */
    #define B4800 4800 /* 4800 baud. */
    #define B9600 9600 /* 9600 baud. */
    #define B7200 7200 /* 7200 baud. */
    #define B14400 14400 /* 14400 baud. */
    #define B19200 19200 /* 19200 baud. */
    #define B28800 28800 /* 28800 baud. */
    #define B38400 38400 /* 38400 baud. */
    #ifdef __USE_MISC
    # define EXTA 19200
    # define EXTB 38400
    #endif
    #define B57600 57600
    #define B76800 76800
    #define B115200 115200
    #define B230400 230400
    #define B460800 460800
    #define B500000 500000
    #define B576000 576000
    #define B921600 921600
    #define B1000000 1000000
    #define B1152000 1152000
    #define B1500000 1500000
    #define B2000000 2000000
    #define B2500000 2500000
    #define B3000000 3000000
    #define B3500000 3500000
    #define B4000000 4000000
    };

    #define _IOT_termios /* Hurd ioctl type field. */ \
    _IOT (_IOTS (tcflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)

    /* Values for the OPTIONAL_ACTIONS argument to `tcsetattr'. */
    #define TCSANOW 0 /* Change immediately. */
    #define TCSADRAIN 1 /* Change when pending output is written. */
    #define TCSAFLUSH 2 /* Flush pending input before changing. */
    #ifdef __USE_BSD
    # define TCSASOFT 0x10 /* Flag: Don't alter hardware state. */
    #endif

    /* Values for the QUEUE_SELECTOR argument to `tcflush'. */
    #define TCIFLUSH 1 /* Discard data received but not yet read. */
    #define TCOFLUSH 2 /* Discard data written but not yet sent. */
    #define TCIOFLUSH 3 /* Discard all pending data. */

    /* Values for the ACTION argument to `tcflow'. */
    #define TCOOFF 1 /* Suspend output. */
    #define TCOON 2 /* Restart suspended output. */
    #define TCIOFF 3 /* Send a STOP character. */
    #define TCION 4 /* Send a START character. */

  19. #119
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* System-dependent timing definitions. Generic version.
    Copyright (C) 1996,1997,1999-2002,2003,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/>. */

    /*
    * Never include this file directly; use <time.h> instead.
    */

    #ifndef __need_timeval
    # ifndef _BITS_TIME_H
    # define _BITS_TIME_H 1

    /* ISO/IEC 9899:1990 7.12.1: <time.h>
    The macro `CLOCKS_PER_SEC' is the number per second of the value
    returned by the `clock' function. */
    /* CAE XSH, Issue 4, Version 2: <time.h>
    The value of CLOCKS_PER_SEC is required to be 1 million on all
    XSI-conformant systems. */
    # define CLOCKS_PER_SEC 1000000l

    # if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
    /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system. */
    # include <bits/types.h>
    extern long int __sysconf (int);
    # define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */
    # endif

    # ifdef __USE_POSIX199309
    /* Identifier for system-wide realtime clock. */
    # define CLOCK_REALTIME 0
    /* Monotonic system-wide clock. */
    # define CLOCK_MONOTONIC 1
    /* High-resolution timer from the CPU. */
    # define CLOCK_PROCESS_CPUTIME_ID 2
    /* Thread-specific CPU-time clock. */
    # define CLOCK_THREAD_CPUTIME_ID 3
    /* Monotonic system-wide clock, not adjusted for frequency scaling. */
    # define CLOCK_MONOTONIC_RAW 4
    /* Identifier for system-wide realtime clock, updated only on ticks. */
    # define CLOCK_REALTIME_COARSE 5
    /* Monotonic system-wide clock, updated only on ticks. */
    # define CLOCK_MONOTONIC_COARSE 6

    /* Flag to indicate time is absolute. */
    # define TIMER_ABSTIME 1
    # endif

    # endif /* bits/time.h */
    #endif

    #ifdef __need_timeval
    # undef __need_timeval
    # ifndef _STRUCT_TIMEVAL
    # define _STRUCT_TIMEVAL 1
    # include <bits/types.h>

    /* A time value that is accurate to the nearest
    microsecond but also has a range of years. */
    struct timeval
    {
    __time_t tv_sec; /* Seconds. */
    __suseconds_t tv_usec; /* Microseconds. */
    };
    # endif /* struct timeval */
    #endif /* need timeval */

  20. #120
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* bits/types.h -- definitions of __*_t types underlying *_t types.
    Copyright (C) 2002-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/>. */

    /*
    * Never include this file directly; use <sys/types.h> instead.
    */

    #ifndef _BITS_TYPES_H
    #define _BITS_TYPES_H 1

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

    /* Convenience types. */
    typedef unsigned char __u_char;
    typedef unsigned short int __u_short;
    typedef unsigned int __u_int;
    typedef unsigned long int __u_long;

    /* Fixed-size types, underlying types depend on word size and compiler. */
    typedef signed char __int8_t;
    typedef unsigned char __uint8_t;
    typedef signed short int __int16_t;
    typedef unsigned short int __uint16_t;
    typedef signed int __int32_t;
    typedef unsigned int __uint32_t;
    #if __WORDSIZE == 64
    typedef signed long int __int64_t;
    typedef unsigned long int __uint64_t;
    #elif defined __GLIBC_HAVE_LONG_LONG
    __extension__ typedef signed long long int __int64_t;
    __extension__ typedef unsigned long long int __uint64_t;
    #endif

    /* quad_t is also 64 bits. */
    #if __WORDSIZE == 64
    typedef long int __quad_t;
    typedef unsigned long int __u_quad_t;
    #elif defined __GLIBC_HAVE_LONG_LONG
    __extension__ typedef long long int __quad_t;
    __extension__ typedef unsigned long long int __u_quad_t;
    #else
    typedef struct
    {
    long __val[2];
    } __quad_t;
    typedef struct
    {
    __u_long __val[2];
    } __u_quad_t;
    #endif


    /* The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
    macros for each of the OS types we define below. The definitions
    of those macros must use the following macros for underlying types.
    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
    variants of each of the following integer types on this machine.

    16 -- "natural" 16-bit type (always short)
    32 -- "natural" 32-bit type (always int)
    64 -- "natural" 64-bit type (long or long long)
    LONG32 -- 32-bit type, traditionally long
    QUAD -- 64-bit type, always long long
    WORD -- natural type of __WORDSIZE bits (int or long)
    LONGWORD -- type of __WORDSIZE bits, traditionally long

    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
    conventional uses of `long' or `long long' type modifiers match the
    types we define, even when a less-adorned type would be the same size.
    This matters for (somewhat) portably writing printf/scanf formats for
    these types, where using the appropriate l or ll format modifiers can
    make the typedefs and the formats match up across all GNU platforms. If
    we used `long' when it's 64 bits where `long long' is expected, then the
    compiler would warn about the formats not matching the argument types,
    and the programmer changing them to shut up the compiler would break the
    program's portability.

    Here we assume what is presently the case in all the GCC configurations
    we support: long long is always 64 bits, long is always word/address size,
    and int is always 32 bits. */

    #define __S16_TYPE short int
    #define __U16_TYPE unsigned short int
    #define __S32_TYPE int
    #define __U32_TYPE unsigned int
    #define __SLONGWORD_TYPE long int
    #define __ULONGWORD_TYPE unsigned long int
    #if __WORDSIZE == 32
    # define __SQUAD_TYPE __quad_t
    # define __UQUAD_TYPE __u_quad_t
    # define __SWORD_TYPE int
    # define __UWORD_TYPE unsigned int
    # define __SLONG32_TYPE long int
    # define __ULONG32_TYPE unsigned long int
    # define __S64_TYPE __quad_t
    # define __U64_TYPE __u_quad_t
    /* We want __extension__ before typedef's that use nonstandard base types
    such as `long long' in C89 mode. */
    # define __STD_TYPE __extension__ typedef
    #elif __WORDSIZE == 64
    # define __SQUAD_TYPE long int
    # define __UQUAD_TYPE unsigned long int
    # define __SWORD_TYPE long int
    # define __UWORD_TYPE unsigned long int
    # define __SLONG32_TYPE int
    # define __ULONG32_TYPE unsigned int
    # define __S64_TYPE long int
    # define __U64_TYPE unsigned long int
    /* No need to mark the typedef with __extension__. */
    # define __STD_TYPE typedef
    #else
    # error
    #endif
    #include <bits/typesizes.h> /* Defines __*_T_TYPE macros. */


    __STD_TYPE __DEV_T_TYPE __dev_t; /* Type of device numbers. */
    __STD_TYPE __UID_T_TYPE __uid_t; /* Type of user identifications. */
    __STD_TYPE __GID_T_TYPE __gid_t; /* Type of group identifications. */
    __STD_TYPE __INO_T_TYPE __ino_t; /* Type of file serial numbers. */
    __STD_TYPE __INO64_T_TYPE __ino64_t; /* Type of file serial numbers (LFS).*/
    __STD_TYPE __MODE_T_TYPE __mode_t; /* Type of file attribute bitmasks. */
    __STD_TYPE __NLINK_T_TYPE __nlink_t; /* Type of file link counts. */
    __STD_TYPE __OFF_T_TYPE __off_t; /* Type of file sizes and offsets. */
    __STD_TYPE __OFF64_T_TYPE __off64_t; /* Type of file sizes and offsets (LFS). */
    __STD_TYPE __PID_T_TYPE __pid_t; /* Type of process identifications. */
    __STD_TYPE __FSID_T_TYPE __fsid_t; /* Type of file system IDs. */
    __STD_TYPE __CLOCK_T_TYPE __clock_t; /* Type of CPU usage counts. */
    __STD_TYPE __RLIM_T_TYPE __rlim_t; /* Type for resource measurement. */
    __STD_TYPE __RLIM64_T_TYPE __rlim64_t; /* Type for resource measurement (LFS). */
    __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */
    __STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
    __STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */
    __STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */

    __STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */
    __STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */

    /* Clock ID used in clock and timer functions. */
    __STD_TYPE __CLOCKID_T_TYPE __clockid_t;

    /* Timer ID returned by `timer_create'. */
    __STD_TYPE __TIMER_T_TYPE __timer_t;

    /* Type to represent block size. */
    __STD_TYPE __BLKSIZE_T_TYPE __blksize_t;

    /* Types from the Large File Support interface. */

    /* Type to count number of disk blocks. */
    __STD_TYPE __BLKCNT_T_TYPE __blkcnt_t;
    __STD_TYPE __BLKCNT64_T_TYPE __blkcnt64_t;

    /* Type to count file system blocks. */
    __STD_TYPE __FSBLKCNT_T_TYPE __fsblkcnt_t;
    __STD_TYPE __FSBLKCNT64_T_TYPE __fsblkcnt64_t;

    /* Type to count file system nodes. */
    __STD_TYPE __FSFILCNT_T_TYPE __fsfilcnt_t;
    __STD_TYPE __FSFILCNT64_T_TYPE __fsfilcnt64_t;

    /* Type of miscellaneous file system fields. */
    __STD_TYPE __FSWORD_T_TYPE __fsword_t;

    __STD_TYPE __SSIZE_T_TYPE __ssize_t; /* Type of a byte count, or error. */

    /* Signed long type used in system calls. */
    __STD_TYPE __SYSCALL_SLONG_TYPE __syscall_slong_t;
    /* Unsigned long type used in system calls. */
    __STD_TYPE __SYSCALL_ULONG_TYPE __syscall_ulong_t;

    /* These few don't really vary by system, they always correspond
    to one of the other defined types. */
    typedef __off64_t __loff_t; /* Type of file sizes and offsets (LFS). */
    typedef __quad_t *__qaddr_t;
    typedef char *__caddr_t;

    /* Duplicates info from stdint.h but this is used in unistd.h. */
    __STD_TYPE __SWORD_TYPE __intptr_t;

    /* Duplicate info from sys/socket.h. */
    __STD_TYPE __U32_TYPE __socklen_t;


    #undef __STD_TYPE

    #endif /* bits/types.h */

  21. #121
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* bits/typesizes.h -- underlying types for *_t. Generic version.
    Copyright (C) 2002-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_TYPES_H
    # error "Never include <bits/typesizes.h> directly; use <sys/types.h> instead."
    #endif

    #ifndef _BITS_TYPESIZES_H
    #define _BITS_TYPESIZES_H 1

    /* See <bits/types.h> for the meaning of these macros. This file exists so
    that <bits/types.h> need not vary across different GNU platforms. */

    #define __DEV_T_TYPE __UQUAD_TYPE
    #define __UID_T_TYPE __U32_TYPE
    #define __GID_T_TYPE __U32_TYPE
    #define __INO_T_TYPE __ULONGWORD_TYPE
    #define __INO64_T_TYPE __UQUAD_TYPE
    #define __MODE_T_TYPE __U32_TYPE
    #define __NLINK_T_TYPE __UWORD_TYPE
    #define __OFF_T_TYPE __SLONGWORD_TYPE
    #define __OFF64_T_TYPE __SQUAD_TYPE
    #define __PID_T_TYPE __S32_TYPE
    #define __RLIM_T_TYPE __ULONGWORD_TYPE
    #define __RLIM64_T_TYPE __UQUAD_TYPE
    #define __BLKCNT_T_TYPE __SLONGWORD_TYPE
    #define __BLKCNT64_T_TYPE __SQUAD_TYPE
    #define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
    #define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
    #define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
    #define __FSFILCNT64_T_TYPE __UQUAD_TYPE
    #define __FSWORD_T_TYPE __SWORD_TYPE
    #define __ID_T_TYPE __U32_TYPE
    #define __CLOCK_T_TYPE __SLONGWORD_TYPE
    #define __TIME_T_TYPE __SLONGWORD_TYPE
    #define __USECONDS_T_TYPE __U32_TYPE
    #define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
    #define __DADDR_T_TYPE __S32_TYPE
    #define __KEY_T_TYPE __S32_TYPE
    #define __CLOCKID_T_TYPE __S32_TYPE
    #define __TIMER_T_TYPE void *
    #define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
    #define __FSID_T_TYPE struct { int __val[2]; }
    #define __SSIZE_T_TYPE __SWORD_TYPE
    #define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
    #define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE

    #ifdef __LP64__
    /* Tell the libc code that off_t and off64_t are actually the same type
    for all ABI purposes, even if possibly expressed as different base types
    for C type-checking purposes. */
    # define __OFF_T_MATCHES_OFF64_T 1

    /* Same for ino_t and ino64_t. */
    # define __INO_T_MATCHES_INO64_T 1
    #endif

    /* Number of descriptors that can fit in an `fd_set'. */
    #define __FD_SETSIZE 1024


    #endif /* bits/typesizes.h */

  22. #122
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 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/>. */

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


    /* `struct iovec' -- Structure describing a section of memory. */

    struct iovec
    {
    /* Starting address. */
    __ptr_t iov_base;
    /* Length in bytes. */
    size_t iov_len;
    };

  23. #123
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 1997, 2002 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_USTAT_H
    # error "Never include <bits/ustat.h> directly; use <sys/ustat.h> instead."
    #endif

    #include <sys/types.h>

    struct ustat
    {
    __daddr_t f_tfree; /* Number of free blocks. */
    __ino_t f_tinode; /* Number of free inodes. */
    char f_fname[6];
    char f_fpack[6];
    };

  24. #124
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* The `struct utmp' type, describing entries in the utmp file. Generic/BSDish
    Copyright (C) 1993, 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/>. */

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

    #include <paths.h>
    #include <time.h>


    #define UT_NAMESIZE 8
    #define UT_LINESIZE 8
    #define UT_HOSTSIZE 16


    struct lastlog
    {
    time_t ll_time;
    char ll_line[UT_LINESIZE];
    char ll_host[UT_HOSTSIZE];
    };

    struct utmp
    {
    char ut_line[UT_LINESIZE];
    char ut_user[UT_NAMESIZE];
    #define ut_name ut_user
    char ut_host[UT_HOSTSIZE];
    long int ut_time;
    };


    #define _HAVE_UT_HOST 1 /* We have the ut_host field. */

  25. #125
    俺はまんこが大好きなんだよ baseline bum's Avatar
    My Team
    San Antonio Spurs
    Join Date
    Mar 2003
    Post Count
    97,881
    /* Copyright (C) 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/>. */

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

    /* The size of the character arrays used to hold the information
    in a `struct utsname'. Enlarge this as necessary. */
    #define _UTSNAME_LENGTH 1024

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
  •