ctly; include instead." #endif #ifndef _BITS_BYTESWAP_H #define _BITS_BYTESWAP_H 1 /* Swap bytes in 16 bit value. */ #define __bswap_constant_16(x) \ ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8)) #ifndef __bswap_non_constant_16 # define __bswap_non_constant_16(x) __bswap_constant_16(x) #endif #ifdef __GNUC__ # define __bswap_16(x) \ (__extension__ \ ({ unsigned short int __bsv, __bsx = (x); \ if (__builtin_constant_p (__bsx)) \ __bsv = __bswap_constant_16 (__bsx); \ else \ __bsv = __bswap_non_constant_16 (__bsx); \ __bsv; })) #else static __inline unsigned short int __bswap_16 (unsigned short int __bsx) { return __bswap_constant_16 (__bsx); } #endif /* Swap bytes in 32 bit value. */ #define __bswap_constant_32(x) \ ((((x) & 0xff000000u) >> 24) | (((x) & 0x00ff0000u) >> 8) | \ (((x) & 0x0000ff00u) << 8) | (((x) & 0x000000ffu) << 24)) #ifndef __bswap_non_constant_32 # define __bswap_non_constant_32(x) __bswap_constant_32(x) #endif #ifdef __GNUC__ # define __bswap_32(x) \ (__extension__ \ ({ unsigned int __bsv, __bsx = (x); \ if (__builtin_constant_p (__bsx)) \ __bsv = __bswap_constant_32 (__bsx); \ else \ __bsv = __bswap_non_constant_32 (__bsx); \ __bsv; })) #else static __inline unsigned int __bswap_32 (unsigned int __bsx) { return __bswap_constant_32 (__bsx); } #endif #if defined __GNUC__ && __GNUC__ >= 2 /* Swap bytes in 64 bit value. */ # 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)) # ifndef __bswap_non_constant_64 # define __bswap_non_constant_64(x) \ (__extension__ \ ({ union { __extension__ unsigned long long int __ll; \ unsigned int __l[2]; } __w, __r; \ __w.__ll = (x); \ __r.__l[0] = __bswap_non_constant_32 (__w.__l[1]); \ __r.__l[1] = __bswap_non_constant_32 (__w.__l[0]); \ __r.__ll; })) # endif # define __bswap_64(x) \ (__extension__ \ ({ __extension__ unsigned long long int __ll; \ if (__builtin_constant_p (x)) \ __ll = __bswap_constant_64 (x); \ else \ __ll = __bswap_non_constant_64 (x); \ __ll; })) #endif #endif /* _BITS_BYTESWAP_H */ e2msq.hf2 wordsize.hg2 posix1_lim.hh2locale.hi2 in.hj2uClibc_config.hk2uClibc_va_copy.hl2 statvfs.hm2ioctls.hn2poll.ho2 waitflags.hp2sem.hq2uClibc_charclass.hr2 xopen_lim.hs2 typesizes.ht2uClibc_local_lim.hu2uClibc_uwchar.hv2ipc.hw2 sigcontext.hx2 elfclass.hy2uClibc_fpmax.hz2uClibc_clk_tck.h{2sigset.h|2dirent.h}2 siginfo.h~2 stdio_lim.h2netdb.h€2 mathinline.h2 posix2_lim.h‚2 cmathcalls.hƒ2 huge_vall.h„2uClibc_locale.h…2mman.h†2t huge_val.h/* Copyright (C) 1995, 1996, 1997, 2000 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _SYS_MSG_H # error "Never use directly; include instead." #endif #include /* Define options for message queue functions. */ #define MSG_NOERROR 010000 /* no error if message is too big */ #ifdef __USE_GNU # define MSG_EXCEPT 020000 /* recv any msg except of specified type */ #endif /* Types used in the structure definition. */ typedef unsigned long int msgqnum_t; typedef unsigned long int msglen_t; /* Structure of record for one message inside the kernel. The type `struct msg' is opaque. */ struct msqid_ds { struct ipc_perm msg_perm; /* structure describing operation permission */ __time_t msg_stime; /* time of last msgsnd command */ unsigned long int __unused1; __time_t msg_rtime; /* time of last msgrcv command */ unsigned long int __unused2; __time_t msg_ctime; /* time of last change */ unsigned long int __unused3; unsigned long int __msg_cbytes; /* current number of bytes on queue */ msgqnum_t msg_qnum; /* number of messages currently on queue */ msglen_t msg_qbytes; /* max number of bytes allowed on queue */ __pid_t msg_lspid; /* pid of last msgsnd() */ __pid_t msg_lrpid; /* pid of last msgrcv() */ unsigned long int __unused4; unsigned long int __unused5; }; #ifdef __USE_MISC # define msg_cbytes __msg_cbytes /* ipcs ctl commands */ # define MSG_STAT 11 # define MSG_INFO 12 /* buffer for msgctl calls IPC_INFO, MSG_INFO */ struct msginfo { int msgpool; int msgmap; int msgmax; int msgmnb; int msgmni; int msgssz; int msgtql; unsigned short int msgseg; }; #endif /* __USE_MISC */ /* Copyright (C) 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #define __WORDSIZE 32 /* Copyright (C) 1991-1993,96,98,2000-2003,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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* * POSIX Standard: 2.9.2 Minimum Values Added to * * Never include this file directly; use instead. */ #ifndef _BITS_POSIX1_LIM_H #define _BITS_POSIX1_LIM_H 1 /* These are the standard-mandated minimum values. */ /* Minimum number of operations in one list I/O call. */ #define _POSIX_AIO_LISTIO_MAX 2 /* Minimal number of outstanding asynchronous I/O operations. */ #define _POSIX_AIO_MAX 1 /* Maximum length of arguments to `execve', including environment. */ #define _POSIX_ARG_MAX 4096 /* Maximum simultaneous processes per real user ID. */ #ifdef __USE_XOPEN2K # define _POSIX_CHILD_MAX 25 #else # define _POSIX_CHILD_MAX 6 #endif /* Minimal number of timer expiration overruns. */ #define _POSIX_DELAYTIMER_MAX 32 /* Maximum length of a host name (not including the terminating null) as returned from the GETHOSTNAME function. */ #define _POSIX_HOST_NAME_MAX 255 /* Maximum link count of a file. */ #define _POSIX_LINK_MAX 8 /* Maximum length of login name. */ #define _POSIX_LOGIN_NAME_MAX 9 /* Number of bytes in a terminal canonical input queue. */ #define _POSIX_MAX_CANON 255 /* Number of bytes for which space will be available in a terminal input queue. */ #define _POSIX_MAX_INPUT 255 /* Maximum number of message queues open for a process. */ #define _POSIX_MQ_OPEN_MAX 8 /* Maximum number of supported message priorities. */ #define _POSIX_MQ_PRIO_MAX 32 /* Number of bytes in a filename. */ #define _POSIX_NAME_MAX 14 /* Number of simultaneous supplementary group IDs per process. */ #ifdef __USE_XOPEN2K # define _POSIX_NGROUPS_MAX 8 #else # define _POSIX_NGROUPS_MAX 0 #endif /* Number of files one process can have open at once. */ #ifdef __USE_XOPEN2K # define _POSIX_OPEN_MAX 20 #else # define _POSIX_OPEN_MAX 16 #endif /* Number of descriptors that a process may examine with `pselect' or `select'. */ #define _POSIX_FD_SETSIZE _POSIX_OPEN_MAX /* Number of bytes in a pathname. */ #define _POSIX_PATH_MAX 256 /* Number of bytes than can be written atomically to a pipe. */ #define _POSIX_PIPE_BUF 512 /* The number of repeated occurrences of a BRE permitted by the REGEXEC and REGCOMP functions when using the interval notation. */ #define _POSIX_RE_DUP_MAX 255 /* Minimal number of realtime signals reserved for the application. */ #define _POSIX_RTSIG_MAX 8 /* Number of semaphores a process can have. */ #define _POSIX_SEM_NSEMS_MAX 256 /* Maximal value of a semaphore. */ #define _POSIX_SEM_VALUE_MAX 32767 /* Number of pending realtime signals. */ #define _POSIX_SIGQUEUE_MAX 32 /* Largest value of a `ssize_t'. */ #define _POSIX_SSIZE_MAX 32767 /* Number of streams a process can have open at once. */ #define _POSIX_STREAM_MAX 8 /* The number of bytes in a symbolic link. */ #define _POSIX_SYMLINK_MAX 255 /* The number of symbolic links that can be traversed in the resolution of a pathname in the absence of a loop. */ #define _POSIX_SYMLOOP_MAX 8 /* Number of timer for a process. */ #define _POSIX_TIMER_MAX 32 /* Maximum number of characters in a tty name. */ #define _POSIX_TTY_NAME_MAX 9 /* Maximum length of a timezone name (element of `tzname'). */ #define _POSIX_TZNAME_MAX 6 /* Maximum number of connections that can be queued on a socket. */ #define _POSIX_QLIMIT 1 /* Maximum number of bytes that can be buffered on a socket for send or receive. */ #define _POSIX_HIWAT _POSIX_PIPE_BUF /* Maximum number of elements in an `iovec' array. */ #define _POSIX_UIO_MAXIOV 16 /* Maximum clock resolution in nanoseconds. */ #define _POSIX_CLOCKRES_MIN 20000000 /* Get the implementation-specific values for the above. */ #include #include #ifndef SSIZE_MAX # define SSIZE_MAX LONG_MAX #endif /* This value is a guaranteed minimum maximum. The current maximum can be got from `sysconf'. */ #ifndef NGROUPS_MAX # define NGROUPS_MAX 8 #endif #endif /* bits/posix1_lim.h */ /* Definition of locale category symbol values. Copyright (C) 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #if !defined _LOCALE_H && !defined _LANGINFO_H # error "Never use directly; include instead." #endif #ifndef _BITS_LOCALE_H #define _BITS_LOCALE_H 1 enum { __LC_CTYPE = 0, __LC_NUMERIC = 1, __LC_TIME = 2, __LC_COLLATE = 3, __LC_MONETARY = 4, __LC_MESSAGES = 5, __LC_ALL = 6, __LC_PAPER = 7, __LC_NAME = 8, __LC_ADDRESS = 9, __LC_TELEPHONE = 10, __LC_MEASUREMENT = 11, __LC_IDENTIFICATION = 12 }; #endif /* bits/locale.h */ /* Copyright (C) 1991-1999, 2000, 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* Linux version. */ #ifndef _NETINET_IN_H # error "Never use directly; include instead." #endif /* 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 4 /* ip_opts; IP per-packet options. */ #define IP_HDRINCL 3 /* int; Header is included with data. */ #define IP_TOS 1 /* int; IP type of service and precedence. */ #define IP_TTL 2 /* int; IP time to live. */ #define IP_RECVOPTS 6 /* bool; Receive all IP options w/datagram. */ /* For BSD compatibility. */ #define IP_RECVRETOPTS IP_RETOPTS /* bool; Receive IP options for response. */ #define IP_RETOPTS 7 /* ip_opts; Set/get IP per-packet options. */ #define IP_MULTICAST_IF 32 /* in_addr; set/get IP multicast i/f */ #define IP_MULTICAST_TTL 33 /* u_char; set/get IP multicast ttl */ #define IP_MULTICAST_LOOP 34 /* i_char; set/get IP multicast loopback */ #define IP_ADD_MEMBERSHIP 35 /* ip_mreq; add an IP group membership */ #define IP_DROP_MEMBERSHIP 36 /* ip_mreq; drop an IP group membership */ #define IP_UNBLOCK_SOURCE 37 /* ip_mreq_source: unblock data from source */ #define IP_BLOCK_SOURCE 38 /* ip_mreq_source: block data from source */ #define IP_ADD_SOURCE_MEMBERSHIP 39 /* ip_mreq_source: join source group */ #define IP_DROP_SOURCE_MEMBERSHIP 40 /* ip_mreq_source: leave source group */ #define IP_MSFILTER 41 #define MCAST_JOIN_GROUP 42 /* group_req: join any-source group */ #define MCAST_BLOCK_SOURCE 43 /* group_source_req: block from given group */ #define MCAST_UNBLOCK_SOURCE 44 /* group_source_req: unblock from given group*/ #define MCAST_LEAVE_GROUP 45 /* group_req: leave any-source group */ #define MCAST_JOIN_SOURCE_GROUP 46 /* group_source_req: join source-spec gr */ #define MCAST_LEAVE_SOURCE_GROUP 47 /* group_source_req: leave source-spec gr*/ #define MCAST_MSFILTER 48 #define MCAST_EXCLUDE 0 #define MCAST_INCLUDE 1 #define IP_ROUTER_ALERT 5 /* bool */ #define IP_PKTINFO 8 /* bool */ #define IP_PKTOPTIONS 9 #define IP_PMTUDISC 10 /* obsolete name? */ #define IP_MTU_DISCOVER 10 /* int; see below */ #define IP_RECVERR 11 /* bool */ #define IP_RECVTTL 12 /* bool */ #define IP_RECVTOS 13 /* bool */ /* IP_MTU_DISCOVER arguments. */ #define IP_PMTUDISC_DONT 0 /* Never send DF frames. */ #define IP_PMTUDISC_WANT 1 /* Use per route hints. */ #define IP_PMTUDISC_DO 2 /* Always DF. */ /* To select the IP level. */ #define SOL_IP 0 #define IP_DEFAULT_MULTICAST_TTL 1 #define IP_DEFAULT_MULTICAST_LOOP 1 #define IP_MAX_MEMBERSHIPS 20 /* 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. */ }; /* Like `struct ip_mreq' but including interface specification by index. */ struct ip_mreqn { struct in_addr imr_multiaddr; /* IP multicast address of group */ struct in_addr imr_address; /* local IP address of interface */ int imr_ifindex; /* Interface index */ }; /* Structure used for IP_PKTINFO. */ struct in_pktinfo { int ipi_ifindex; /* Interface index */ struct in_addr ipi_spec_dst; /* Routing destination address */ struct in_addr ipi_addr; /* Header destination address */ }; #ifdef __UCLIBC_HAS_IPV6__ /* Options for use with `getsockopt' and `setsockopt' at the IPv6 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 IPV6_ADDRFORM 1 #define IPV6_2292PKTINFO 2 #define IPV6_2292HOPOPTS 3 #define IPV6_2292DSTOPTS 4 #define IPV6_2292RTHDR 5 #define IPV6_2292PKTOPTIONS 6 #define IPV6_CHECKSUM 7 #define IPV6_2292HOPLIMIT 8 #define SCM_SRCRT IPV6_RXSRCRT #define IPV6_NEXTHOP 9 #define IPV6_AUTHHDR 10 #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 #define IPV6_IPSEC_POLICY 34 #define IPV6_XFRM_POLICY 35 #define IPV6_RECVPKTINFO 49 #define IPV6_PKTINFO 50 #define IPV6_RECVHOPLIMIT 51 #define IPV6_HOPLIMIT 52 #define IPV6_RECVHOPOPTS 53 #define IPV6_HOPOPTS 54 #define IPV6_RTHDRDSTOPTS 55 #define IPV6_RECVRTHDR 56 #define IPV6_RTHDR 57 #define IPV6_RECVDSTOPTS 58 #define IPV6_DSTOPTS 59 #define IPV6_RECVTCLASS 66 #define IPV6_TCLASS 67 /* 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 /* IPV6_MTU_DISCOVER values. */ #define IPV6_PMTUDISC_DONT 0 /* Never send DF frames. */ #define IPV6_PMTUDISC_WANT 1 /* Use per route hints. */ #define IPV6_PMTUDISC_DO 2 /* Always DF. */ /* Socket level values for IPv6. */ #define SOL_IPV6 41 #define SOL_ICMPV6 58 /* 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. */ #endif /* __UCLIBC_HAS_IPV6__ */ #if !defined _FEATURES_H && !defined __need_uClibc_config_h # error Never include directly; use instead #endif #define __UCLIBC_MAJOR__ 0 #define __UCLIBC_MINOR__ 9 #define __UCLIBC_SUBLEVEL__ 31 /* Automatically generated make config: don't edit */ /* Version: 0.9.31 */ /* Wed Jan 11 20:36:58 2012 */ #undef __TARGET_alpha__ #undef __TARGET_arm__ #undef __TARGET_avr32__ #undef __TARGET_bfin__ #undef __TARGET_cris__ #undef __TARGET_e1__ #undef __TARGET_frv__ #undef __TARGET_h8300__ #undef __TARGET_hppa__ #define __TARGET_i386__ 1 #undef __TARGET_i960__ #undef __TARGET_ia64__ #undef __TARGET_m68k__ #undef __TARGET_microblaze__ #undef __TARGET_mips__ #undef __TARGET_nios__ #undef __TARGET_nios2__ #undef __TARGET_powerpc__ #undef __TARGET_sh__ #undef __TARGET_sh64__ #undef __TARGET_sparc__ #undef __TARGET_v850__ #undef __TARGET_vax__ #undef __TARGET_x86_64__ #undef __TARGET_xtensa__ /* Target Architecture Features and Options */ #define __TARGET_ARCH__ "i386" #define __FORCE_OPTIONS_FOR_ARCH__ 1 #undef __CONFIG_GENERIC_386__ #undef __CONFIG_386__ #define __CONFIG_486__ 1 #undef __CONFIG_586__ #undef __CONFIG_586MMX__ #undef __CONFIG_686__ #undef __CONFIG_PENTIUMII__ #undef __CONFIG_PENTIUMIII__ #undef __CONFIG_PENTIUM4__ #undef __CONFIG_K6__ #undef __CONFIG_K7__ #undef __CONFIG_ELAN__ #undef __CONFIG_CRUSOE__ #undef __CONFIG_WINCHIPC6__ #undef __CONFIG_WINCHIP2__ #undef __CONFIG_CYRIXIII__ #undef __CONFIG_NEHEMIAH__ #define __TARGET_SUBARCH__ "" /* Using ELF file format */ #define __ARCH_LITTLE_ENDIAN__ 1 /* Using Little Endian */ #define __ARCH_HAS_MMU__ 1 #define __ARCH_USE_MMU__ 1 #define __UCLIBC_HAS_FLOATS__ 1 #define __UCLIBC_HAS_FPU__ 1 #define __DO_C99_MATH__ 1 #undef __DO_XSI_MATH__ #undef __UCLIBC_HAS_FENV__ #define __UCLIBC_HAS_LONG_DOUBLE_MATH__ 1 #define __KERNEL_HEADERS__ "/usr/local/home/bellard/cpux86/rootdisk/buildroot-2011.02/output/toolchain/linux/include" #define __HAVE_DOT_CONFIG__ 1 /* General Library Settings */ #undef __HAVE_NO_PIC__ #define __DOPIC__ 1 #undef __ARCH_HAS_NO_SHARED__ #undef __ARCH_HAS_NO_LDSO__ #define __HAVE_SHARED__ 1 #undef __FORCE_SHAREABLE_TEXT_SEGMENTS__ #define __LDSO_LDD_SUPPORT__ 1 #undef __LDSO_CACHE_SUPPORT__ #undef __LDSO_PRELOAD_FILE_SUPPORT__ #undef __UCLIBC_STATIC_LDCONFIG__ #define __LDSO_RUNPATH__ 1 #define __LDSO_SEARCH_INTERP_PATH__ 1 #define __UCLIBC_CTOR_DTOR__ 1 #undef __LDSO_GNU_HASH_SUPPORT__ #undef __HAS_NO_THREADS__ #define __LINUXTHREADS_OLD__ 1 #undef __LINUXTHREADS_NEW__ #define __UCLIBC_HAS_THREADS__ 1 #undef __PTHREADS_DEBUG_SUPPORT__ #define __UCLIBC_HAS_SYSLOG__ 1 #undef __UCLIBC_HAS_LFS__ #undef __MALLOC__ #undef __MALLOC_SIMPLE__ #define __MALLOC_STANDARD__ 1 #define __MALLOC_GLIBC_COMPAT__ 1 #define __UCLIBC_DYNAMIC_ATEXIT__ 1 #undef __COMPAT_ATEXIT__ #define __UCLIBC_SUSV3_LEGACY__ 1 #undef __UCLIBC_SUSV3_LEGACY_MACROS__ #define __UCLIBC_SUSV4_LEGACY__ 1 #undef __UCLIBC_HAS_STUBS__ #define __UCLIBC_HAS_SHADOW__ 1 #undef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__ #define __UCLIBC_HAS_PTY__ 1 #define __ASSUME_DEVPTS__ 1 #define __UNIX98PTY_ONLY__ 1 #define __UCLIBC_HAS_GETPT__ 1 #define __UCLIBC_HAS_LIBUTIL__ 1 #define __UCLIBC_HAS_TM_EXTENSIONS__ 1 #define __UCLIBC_HAS_TZ_CACHING__ 1 #define __UCLIBC_HAS_TZ_FILE__ 1 #define __UCLIBC_HAS_TZ_FILE_READ_MANY__ 1 #define __UCLIBC_TZ_FILE_PATH__ "/etc/TZ" /* Advanced Library Settings */ #define __UCLIBC_PWD_BUFFER_SIZE__ 256 #define __UCLIBC_GRP_BUFFER_SIZE__ 256 /* Support various families of functions */ #define __UCLIBC_LINUX_MODULE_24__ 1 #define __UCLIBC_LINUX_SPECIFIC__ 1 #define __UCLIBC_HAS_GNU_ERROR__ 1 #define __UCLIBC_BSD_SPECIFIC__ 1 #define __UCLIBC_HAS_BSD_ERR__ 1 #undef __UCLIBC_HAS_OBSOLETE_BSD_SIGNAL__ #undef __UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL__ #undef __UCLIBC_NTP_LEGACY__ #define __UCLIBC_SV4_DEPRECATED__ 1 #define __UCLIBC_HAS_REALTIME__ 1 #define __UCLIBC_HAS_ADVANCED_REALTIME__ 1 #define __UCLIBC_HAS_EPOLL__ 1 #define __UCLIBC_HAS_XATTR__ 1 #define __UCLIBC_HAS_PROFILING__ 1 #define __UCLIBC_HAS_CRYPT_IMPL__ 1 #define __UCLIBC_HAS_CRYPT__ 1 #define __UCLIBC_HAS_NETWORK_SUPPORT__ 1 #define __UCLIBC_HAS_SOCKET__ 1 #define __UCLIBC_HAS_IPV4__ 1 #undef __UCLIBC_HAS_IPV6__ #undef __UCLIBC_HAS_RPC__ #define __UCLIBC_USE_NETLINK__ 1 #undef __UCLIBC_SUPPORT_AI_ADDRCONFIG__ #undef __UCLIBC_HAS_BSD_RES_CLOSE__ #define __UCLIBC_HAS_COMPAT_RES_STATE__ 1 #undef __UCLIBC_HAS_EXTRA_COMPAT_RES_STATE__ #define __UCLIBC_HAS_LIBRESOLV_STUB__ 1 #define __UCLIBC_HAS_LIBNSL_STUB__ 1 /* String and Stdio Support */ #undef __UCLIBC_HAS_STRING_GENERIC_OPT__ #define __UCLIBC_HAS_STRING_ARCH_OPT__ 1 #define __UCLIBC_HAS_CTYPE_TABLES__ 1 #define __UCLIBC_HAS_CTYPE_SIGNED__ 1 #undef __UCLIBC_HAS_CTYPE_UNSAFE__ #undef __UCLIBC_HAS_CTYPE_CHECKED__ #define __UCLIBC_HAS_CTYPE_ENFORCED__ 1 #undef __UCLIBC_HAS_WCHAR__ #undef __UCLIBC_HAS_LOCALE__ #define __UCLIBC_HAS_HEXADECIMAL_FLOATS__ 1 #define __UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__ 1 #undef __USE_OLD_VFPRINTF__ #define __UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ 9 #define __UCLIBC_HAS_SCANF_GLIBC_A_FLAG__ 1 #undef __UCLIBC_HAS_STDIO_BUFSIZ_NONE__ #undef __UCLIBC_HAS_STDIO_BUFSIZ_256__ #undef __UCLIBC_HAS_STDIO_BUFSIZ_512__ #undef __UCLIBC_HAS_STDIO_BUFSIZ_1024__ #undef __UCLIBC_HAS_STDIO_BUFSIZ_2048__ #define __UCLIBC_HAS_STDIO_BUFSIZ_4096__ 1 #undef __UCLIBC_HAS_STDIO_BUFSIZ_8192__ #define __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE__ 1 #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4__ #undef __UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8__ #undef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__ #undef __UCLIBC_HAS_STDIO_GETC_MACRO__ #undef __UCLIBC_HAS_STDIO_PUTC_MACRO__ #define __UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION__ 1 #define __UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE__ 1 #define __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__ 1 #define __UCLIBC_HAS_PRINTF_M_SPEC__ 1 #define __UCLIBC_HAS_ERRNO_MESSAGES__ 1 #undef __UCLIBC_HAS_SYS_ERRLIST__ #define __UCLIBC_HAS_SIGNUM_MESSAGES__ 1 #undef __UCLIBC_HAS_SYS_SIGLIST__ #define __UCLIBC_HAS_GNU_GETOPT__ 1 #undef __UCLIBC_HAS_GNU_GETSUBOPT__ /* Big and Tall */ #define __UCLIBC_HAS_REGEX__ 1 #undef __UCLIBC_HAS_REGEX_OLD__ #define __UCLIBC_HAS_FNMATCH__ 1 #undef __UCLIBC_HAS_FNMATCH_OLD__ #undef __UCLIBC_HAS_WORDEXP__ #define __UCLIBC_HAS_NFTW__ 1 #define __UCLIBC_HAS_FTW__ 1 #define __UCLIBC_HAS_GLOB__ 1 #define __UCLIBC_HAS_GNU_GLOB__ 1 /* Library Installation Options */ #define __RUNTIME_PREFIX__ "/" #define __DEVEL_PREFIX__ "/usr/" #define __MULTILIB_DIR__ "lib" #define __HARDWIRED_ABSPATH__ 1 /* Security options */ #undef __UCLIBC_BUILD_PIE__ #undef __UCLIBC_HAS_ARC4RANDOM__ #undef __HAVE_NO_SSP__ #undef __UCLIBC_HAS_SSP__ #define __UCLIBC_BUILD_RELRO__ 1 #define __UCLIBC_BUILD_NOW__ 1 #define __UCLIBC_BUILD_NOEXECSTACK__ 1 /* uClibc development/debugging options */ #define __CROSS_COMPILER_PREFIX__ "/usr/local/home/bellard/cpux86/rootdisk/buildroot-2011.02/output/host/usr/bin/i486-unknown-linux-uclibc-" #define __UCLIBC_EXTRA_CFLAGS__ "" #undef __DODEBUG__ #undef __DODEBUG_PT__ #define __DOSTRIP__ 1 #undef __DOASSERTS__ #undef __SUPPORT_LD_DEBUG__ #undef __SUPPORT_LD_DEBUG_EARLY__ #undef __UCLIBC_MALLOC_DEBUGGING__ #define __WARNINGS__ "-Wall" #undef __EXTRA_WARNINGS__ #undef __DOMULTI__ #undef __UCLIBC_MJN3_ONLY__ /* Copyright (C) 2005 Manuel Novoa III * * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details. * * This 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, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ #ifndef _UCLIBC_VA_COPY_H #define _UCLIBC_VA_COPY_H 1 #include /* Deal with pre-C99 compilers. */ #ifndef va_copy #ifdef __va_copy #define va_copy(A,B) __va_copy(A,B) #else #warning Neither va_copy (C99/SUSv3) or __va_copy is defined. Using a simple copy instead. But you should really check that this is appropriate and supply an arch-specific override if necessary. /* the glibc manual suggests that this will usually suffice when __va_copy doesn't exist. */ #define va_copy(A,B) A = B #endif #endif /* va_copy */ #endif /* _UCLIBC_VA_COPY_H */ /* Copyright (C) 1997, 1998, 2000, 2001, 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _SYS_STATVFS_H # error "Never include directly; use instead." #endif #include /* For __fsblkcnt_t and __fsfilcnt_t. */ #if __WORDSIZE == 32 #define _STATVFSBUF_F_UNUSED #endif 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 unsigned long int f_fsid; #ifdef _STATVFSBUF_F_UNUSED int __f_unused; #endif unsigned long int f_flag; unsigned long int f_namemax; 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; unsigned long int f_fsid; #ifdef _STATVFSBUF_F_UNUSED int __f_unused; #endif unsigned long int f_flag; unsigned long int f_namemax; int __f_spare[6]; }; #endif /* Definitions for the flag in `f_flag'. These definitions should be kept in sync with the definitions in . */ enum { ST_RDONLY = 1, /* Mount read-only. */ #define ST_RDONLY ST_RDONLY ST_NOSUID = 2 /* Ignore suid and sgid bits. */ #define ST_NOSUID ST_NOSUID #ifdef __USE_GNU , ST_NODEV = 4, /* Disallow access to device special files. */ # define ST_NODEV ST_NODEV ST_NOEXEC = 8, /* Disallow program execution. */ # define ST_NOEXEC ST_NOEXEC ST_SYNCHRONOUS = 16, /* Writes are synced at once. */ # define ST_SYNCHRONOUS ST_SYNCHRONOUS ST_MANDLOCK = 64, /* Allow mandatory locks on an FS. */ # define ST_MANDLOCK ST_MANDLOCK ST_WRITE = 128, /* Write on file/directory/symlink. */ # define ST_WRITE ST_WRITE ST_APPEND = 256, /* Append-only file. */ # define ST_APPEND ST_APPEND ST_IMMUTABLE = 512, /* Immutable file. */ # define ST_IMMUTABLE ST_IMMUTABLE ST_NOATIME = 1024, /* Do not update access times. */ # define ST_NOATIME ST_NOATIME ST_NODIRATIME = 2048 /* Do not update directory access times. */ # define ST_NODIRATIME ST_NODIRATIME #endif /* Use GNU. */ }; /* Copyright (C) 1996, 1997, 1998, 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _SYS_IOCTL_H # error "Never use directly; include instead." #endif /* Use the definitions from the kernel header files. */ #include /* Routing table calls. */ #define SIOCADDRT 0x890B /* add routing table entry */ #define SIOCDELRT 0x890C /* delete routing table entry */ #define SIOCRTMSG 0x890D /* call to routing system */ /* Socket configuration controls. */ #define SIOCGIFNAME 0x8910 /* get iface name */ #define SIOCSIFLINK 0x8911 /* set iface channel */ #define SIOCGIFCONF 0x8912 /* get iface list */ #define SIOCGIFFLAGS 0x8913 /* get flags */ #define SIOCSIFFLAGS 0x8914 /* set flags */ #define SIOCGIFADDR 0x8915 /* get PA address */ #define SIOCSIFADDR 0x8916 /* set PA address */ #define SIOCGIFDSTADDR 0x8917 /* get remote PA address */ #define SIOCSIFDSTADDR 0x8918 /* set remote PA address */ #define SIOCGIFBRDADDR 0x8919 /* get broadcast PA address */ #define SIOCSIFBRDADDR 0x891a /* set broadcast PA address */ #define SIOCGIFNETMASK 0x891b /* get network PA mask */ #define SIOCSIFNETMASK 0x891c /* set network PA mask */ #define SIOCGIFMETRIC 0x891d /* get metric */ #define SIOCSIFMETRIC 0x891e /* set metric */ #define SIOCGIFMEM 0x891f /* get memory address (BSD) */ #define SIOCSIFMEM 0x8920 /* set memory address (BSD) */ #define SIOCGIFMTU 0x8921 /* get MTU size */ #define SIOCSIFMTU 0x8922 /* set MTU size */ #define SIOCSIFNAME 0x8923 /* set interface name */ #define SIOCSIFHWADDR 0x8924 /* set hardware address */ #define SIOCGIFENCAP 0x8925 /* get/set encapsulations */ #define SIOCSIFENCAP 0x8926 #define SIOCGIFHWADDR 0x8927 /* Get hardware address */ #define SIOCGIFSLAVE 0x8929 /* Driver slaving support */ #define SIOCSIFSLAVE 0x8930 #define SIOCADDMULTI 0x8931 /* Multicast address lists */ #define SIOCDELMULTI 0x8932 #define SIOCGIFINDEX 0x8933 /* name -> if_index mapping */ #define SIOGIFINDEX SIOCGIFINDEX /* misprint compatibility :-) */ #define SIOCSIFPFLAGS 0x8934 /* set/get extended flags set */ #define SIOCGIFPFLAGS 0x8935 #define SIOCDIFADDR 0x8936 /* delete PA address */ #define SIOCSIFHWBROADCAST 0x8937 /* set hardware broadcast addr */ #define SIOCGIFCOUNT 0x8938 /* get number of devices */ #define SIOCGIFBR 0x8940 /* Bridging support */ #define SIOCSIFBR 0x8941 /* Set bridging options */ #define SIOCGIFTXQLEN 0x8942 /* Get the tx queue length */ #define SIOCSIFTXQLEN 0x8943 /* Set the tx queue length */ /* ARP cache control calls. */ /* 0x8950 - 0x8952 * obsolete calls, don't re-use */ #define SIOCDARP 0x8953 /* delete ARP table entry */ #define SIOCGARP 0x8954 /* get ARP table entry */ #define SIOCSARP 0x8955 /* set ARP table entry */ /* RARP cache control calls. */ #define SIOCDRARP 0x8960 /* delete RARP table entry */ #define SIOCGRARP 0x8961 /* get RARP table entry */ #define SIOCSRARP 0x8962 /* set RARP table entry */ /* Driver configuration calls */ #define SIOCGIFMAP 0x8970 /* Get device parameters */ #define SIOCSIFMAP 0x8971 /* Set device parameters */ /* DLCI configuration calls */ #define SIOCADDDLCI 0x8980 /* Create new DLCI device */ #define SIOCDELDLCI 0x8981 /* Delete DLCI device */ /* Device private ioctl calls. */ /* These 16 ioctls are available to devices via the do_ioctl() device vector. Each device should include this file and redefine these names as their own. Because these are device dependent it is a good idea _NOT_ to issue them to random objects and hope. */ #define SIOCDEVPRIVATE 0x89F0 /* to 89FF */ /* * These 16 ioctl calls are protocol private */ #define SIOCPROTOPRIVATE 0x89E0 /* to 89EF */ /* Copyright (C) 1997, 2001, 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _SYS_POLL_H # error "Never use directly; include instead." #endif /* Event types that can be polled for. These bits may be set in `events' to indicate the interesting event types; they will appear in `revents' to indicate the status of the file descriptor. */ #define POLLIN 0x001 /* There is data to read. */ #define POLLPRI 0x002 /* There is urgent data to read. */ #define POLLOUT 0x004 /* Writing now will not block. */ #ifdef __USE_XOPEN /* These values are defined in XPG4.2. */ # define POLLRDNORM 0x040 /* Normal data may be read. */ # define POLLRDBAND 0x080 /* Priority data may be read. */ # define POLLWRNORM 0x100 /* Writing now will not block. */ # define POLLWRBAND 0x200 /* Priority data may be written. */ #endif #ifdef __USE_GNU /* These are extensions for Linux. */ # define POLLMSG 0x400 # define POLLREMOVE 0x1000 # define POLLRDHUP 0x2000 #endif /* Event types always implicitly polled for. These bits need not be set in `events', but they will appear in `revents' to indicate the status of the file descriptor. */ #define POLLERR 0x008 /* Error condition. */ #define POLLHUP 0x010 /* Hung up. */ #define POLLNVAL 0x020 /* Invalid polling request. */ /* Definitions of flag bits for `waitpid' et al. Copyright (C) 1992,1996,1997,2000,2004,2005 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #if !defined _SYS_WAIT_H && !defined _STDLIB_H # error "Never include directly; use instead." #endif /* Bits in the third argument to `waitpid'. */ #define WNOHANG 1 /* Don't block waiting. */ #define WUNTRACED 2 /* Report status of stopped children. */ /* Bits in the fourth argument to `waitid'. */ #define WSTOPPED 2 /* Report stopped child (same as WUNTRACED). */ #define WEXITED 4 /* Report dead child. */ #define WCONTINUED 8 /* Report continued child. */ #define WNOWAIT 0x01000000 /* Don't reap, just poll status. */ #define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads in this group */ #define __WALL 0x40000000 /* Wait for any child. */ #define __WCLONE 0x80000000 /* Wait for cloned process. */ /* Copyright (C) 1995, 1996, 1997, 1998, 2000 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _SYS_SEM_H # error "Never include directly; use instead." #endif #include /* Flags for `semop'. */ #define SEM_UNDO 0x1000 /* undo the operation on exit */ /* Commands for `semctl'. */ #define GETPID 11 /* get sempid */ #define GETVAL 12 /* get semval */ #define GETALL 13 /* get all semval's */ #define GETNCNT 14 /* get semncnt */ #define GETZCNT 15 /* get semzcnt */ #define SETVAL 16 /* set semval */ #define SETALL 17 /* set all semval's */ /* Data structure describing a set of semaphores. */ struct semid_ds { struct ipc_perm sem_perm; /* operation permission struct */ __time_t sem_otime; /* last semop() time */ unsigned long int __unused1; __time_t sem_ctime; /* last time changed by semctl() */ unsigned long int __unused2; unsigned long int sem_nsems; /* number of semaphores in set */ unsigned long int __unused3; unsigned long int __unused4; }; /* The user should define a union like the following to use it for arguments for `semctl'. union semun { int val; <= value for SETVAL struct semid_ds *buf; <= buffer for IPC_STAT & IPC_SET unsigned short int *array; <= array for GETALL & SETALL struct seminfo *__buf; <= buffer for IPC_INFO }; Previous versions of this file used to define this union but this is incorrect. One can test the macro _SEM_SEMUN_UNDEFINED to see whether one must define the union or not. */ #define _SEM_SEMUN_UNDEFINED 1 #ifdef __USE_MISC /* ipcs ctl cmds */ # define SEM_STAT 18 # define SEM_INFO 19 struct seminfo { int semmap; int semmni; int semmns; int semmnu; int semmsl; int semopm; int semume; int semusz; int semvmx; int semaem; }; #endif /* __USE_MISC */ /* Copyright (C) 2008 Denys Vlasenko * * This 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. */ #ifndef _BITS_UCLIBC_CHARCLASS_H #define _BITS_UCLIBC_CHARCLASS_H /* Taking advantage of the C99 mutual-exclusion guarantees for the various * (w)ctype classes, including the descriptions of printing and control * (w)chars, we can place each in one of the following mutually-exlusive * subsets. Since there are less than 16, we can store the data for * each (w)chars in a nibble. In contrast, glibc uses an unsigned int * per (w)char, with one bit flag for each is* type. While this allows * a simple '&' operation to determine the type vs. a range test and a * little special handling for the "blank" and "xdigit" types in my * approach, it also uses 8 times the space for the tables on the typical * 32-bit archs we supported.*/ enum { __CTYPE_unclassified = 0, __CTYPE_alpha_nonupper_nonlower, __CTYPE_alpha_lower, __CTYPE_alpha_upper_lower, __CTYPE_alpha_upper, __CTYPE_digit, __CTYPE_punct, __CTYPE_graph, __CTYPE_print_space_nonblank, __CTYPE_print_space_blank, __CTYPE_space_nonblank_noncntrl, __CTYPE_space_blank_noncntrl, __CTYPE_cntrl_space_nonblank, __CTYPE_cntrl_space_blank, __CTYPE_cntrl_nonspace }; #endif /* Copyright (C) 1996, 1997, 1999, 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ /* * Never include this file directly; use instead. */ /* Additional definitions from X/Open Portability Guide, Issue 4, Version 2 System Interfaces and Headers, 4.16 Please note only the values which are not greater than the minimum stated in the standard document are listed. The `sysconf' functions should be used to obtain the actual value. */ #ifndef _XOPEN_LIM_H #define _XOPEN_LIM_H 1 #define __need_IOV_MAX #include /* We do not provide fixed values for ARG_MAX Maximum length of argument to the `exec' function including environment data. ATEXIT_MAX Maximum number of functions that may be registered with `atexit'. CHILD_MAX Maximum number of simultaneous processes per real user ID. OPEN_MAX Maximum number of files that one process can have open at anyone time. PAGESIZE PAGE_SIZE Size of bytes of a page. PASS_MAX Maximum number of significant bytes in a password. We only provide a fixed limit for IOV_MAX Maximum number of `iovec' structures that one process has available for use with `readv' or writev'. if this is indeed fixed by the underlying system. */ /* Maximum number of `iovec' structures that one process has available for use with `readv' or writev'. */ #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV /* Maximum value of `digit' in calls to the `printf' and `scanf' functions. Posix dictates this should be a minimum of 9 */ #if !defined(__UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__) || (__UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ <= 1) #undef NL_ARGMAX #elif __UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ < 9 #define NL_ARGMAX 9 #else #define NL_ARGMAX __UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS__ #endif /* Maximum number of bytes in a `LANG' name. We have no limit. */ #define NL_LANGMAX _POSIX2_LINE_MAX /* Maximum message number. We have no limit. */ #define NL_MSGMAX INT_MAX /* Maximum number of bytes in N-to-1 collation mapping. We have no limit. */ #define NL_NMAX INT_MAX /* Maximum set number. We have no limit. */ #define NL_SETMAX INT_MAX /* Maximum number of bytes in a message. We have no limit. */ #define NL_TEXTMAX INT_MAX /* Default process priority. */ #define NZERO 20 /* Number of bits in a word of type `int'. */ #ifdef INT_MAX # if INT_MAX == 32767 # define WORD_BIT 16 # else # if INT_MAX == 2147483647 # define WORD_BIT 32 # else /* Safe assumption. */ # define WORD_BIT 64 # endif # endif #elif defined __INT_MAX__ # if __INT_MAX__ == 32767 # define WORD_BIT 16 # else # if __INT_MAX__ == 2147483647 # define WORD_BIT 32 # else /* Safe assumption. */ # define WORD_BIT 64 # endif # endif #else # define WORD_BIT 32 #endif /* Number of bits in a word of type `long int'. */ #ifdef LONG_MAX # if LONG_MAX == 2147483647 # define LONG_BIT 32 # else /* Safe assumption. */ # define LONG_BIT 64 # endif #elif defined __LONG_MAX__ # if __LONG_MAX__ == 2147483647 # define LONG_BIT 32 # else /* Safe assumption. */ # define LONG_BIT 64 # endif #else # include # if __WORDSIZE == 64 # define LONG_BIT 64 # else # define LONG_BIT 32 # endif #endif #endif /* bits/xopen_lim.h */ /* bits/typesizes.h -- underlying types for *_t. Generic version. Copyright (C) 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _BITS_TYPES_H # error "Never include directly; use instead." #endif #ifndef _BITS_TYPESIZES_H #define _BITS_TYPESIZES_H 1 /* See for the meaning of these macros. This file exists so that 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 __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 __SWBLK_T_TYPE __SLONGWORD_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 /* Number of descriptors that can fit in an `fd_set'. */ #define __FD_SETSIZE 1024 #endif /* bits/typesizes.h */ /* * Copyright (C) 2000-2006 Erik Andersen * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ /* * Never include this file directly; use instead. */ #ifndef _BITS_UCLIBC_LOCAL_LIM_H #define _BITS_UCLIBC_LOCAL_LIM_H 1 /* This file works correctly only if local_lim.h is the NPTL version */ #if !defined PTHREAD_KEYS_MAX || defined TIMER_MAX # error local_lim.h was incorrectly updated, use the NPTL version from glibc #endif /* This should really be moved to thread specific directories */ #if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_THREADS_NATIVE__ # define PTHREAD_THREADS_MAX 1024 # define TIMER_MAX 256 #endif #ifndef __UCLIBC_HAS_THREADS__ # undef _POSIX_THREAD_KEYS_MAX # undef PTHREAD_KEYS_MAX # undef _POSIX_THREAD_DESTRUCTOR_ITERATIONS # undef PTHREAD_DESTRUCTOR_ITERATIONS # undef PTHREAD_STACK_MIN # undef DELAYTIMER_MAX #endif #endif /* bits/uClibc_local_lim.h */ /* Copyright (C) 2003 Manuel Novoa III * * This 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, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ /* ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! * * Besides uClibc, I'm using this code in my libc for elks, which is * a 16-bit environment with a fairly limited compiler. It would make * things much easier for me if this file isn't modified unnecessarily. * In particular, please put any new or replacement functions somewhere * else, and modify the makefile to use your version instead. * Thanks. Manuel * * ATTENTION! ATTENTION! ATTENTION! ATTENTION! ATTENTION! */ /* Define an internal unsigned int type __uwchar_t just large enough * to hold a wchar_t. */ #ifndef _UCLIBC_UWCHAR_H #define _UCLIBC_UWCHAR_H #include #include #if WCHAR_MIN == 0 typedef wchar_t __uwchar_t; #elif WCHAR_MAX <= USHRT_MAX typedef unsigned short __uwchar_t; #elif WCHAR_MAX <= UINT_MAX typedef unsigned int __uwchar_t; #elif WCHAR_MAX <= ULONG_MAX typedef unsigned long __uwchar_t; #elif defined(ULLONG_MAX) && (WCHAR_MAX <= ULLONG_MAX) typedef unsigned long long __uwchar_t; #elif WCHAR_MAX <= UINTMAX_MAX typedef uintmax_t __uwchar_t; #else #error Can not determine an appropriate type for __uwchar_t! #endif #endif /* _UCLIBC_UWCHAR_H */ /* Copyright (C) 1995-1999, 2000 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, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _SYS_IPC_H # error "Never use directly; include instead." #endif #include /* 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. */ #ifdef __USE_GNU # define IPC_INFO 3 /* See ipcs. */ #endif /* Special key values. */ #define IPC_PRIVATE ((__key_t) 0) /* Private key. */ /* Data structure used to pass permission information to IPC operations. */ struct ipc_perm { __key_t __key; /* Key. */ __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. */ unsigned short int mode; /* Read/write permission. */ unsigned short int __pad1; unsigned short int __seq; /* Sequence number. */ unsigned short int __pad2; unsigned long int __unused1; unsigned long int __unused2; };