• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/arm-brcm-linux-uclibcgnueabi/sysroot/usr/include/bits/
1/* Define POSIX options for Linux.
2   Copyright (C) 1996-2001, 2002, 2003, 2004 Free Software Foundation, Inc.
3   This file is part of the GNU C Library.
4
5   The GNU C Library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public License as
7   published by the Free Software Foundation; either version 2.1 of the
8   License, or (at your option) any later version.
9
10   The GNU C Library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library; see the file COPYING.LIB.  If not,
17   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18   Boston, MA 02111-1307, USA.  */
19
20#ifndef	_POSIX_OPT_H
21#define	_POSIX_OPT_H	1
22
23/* Job control is supported.  */
24#define	_POSIX_JOB_CONTROL	1
25
26/* Processes have a saved set-user-ID and a saved set-group-ID.  */
27#define	_POSIX_SAVED_IDS	1
28
29/* Priority scheduling is supported.  */
30#define	_POSIX_PRIORITY_SCHEDULING	200112L
31
32/* Synchronizing file data is supported.  */
33#define	_POSIX_SYNCHRONIZED_IO	200112L
34
35/* The fsync function is present.  */
36#define	_POSIX_FSYNC	200112L
37
38/* Mapping of files to memory is supported.  */
39#define	_POSIX_MAPPED_FILES	200112L
40
41/* Locking of all memory is supported.  */
42#define	_POSIX_MEMLOCK	200112L
43
44/* Locking of ranges of memory is supported.  */
45#define	_POSIX_MEMLOCK_RANGE	200112L
46
47/* Setting of memory protections is supported.  */
48#define	_POSIX_MEMORY_PROTECTION	200112L
49
50/* Only root can change owner of file.  */
51#define	_POSIX_CHOWN_RESTRICTED	1
52
53/* `c_cc' member of 'struct termios' structure can be disabled by
54   using the value _POSIX_VDISABLE.  */
55#define	_POSIX_VDISABLE	'\0'
56
57/* Filenames are not silently truncated.  */
58#define	_POSIX_NO_TRUNC	1
59
60/* X/Open realtime support is available.  */
61#define _XOPEN_REALTIME	1
62
63/* XPG4.2 shared memory is supported.  */
64#define	_XOPEN_SHM	1
65
66/* Tell we have POSIX threads.  */
67#define _POSIX_THREADS	200112L
68
69/* We have the reentrant functions described in POSIX.  */
70#define _POSIX_REENTRANT_FUNCTIONS      1
71#define _POSIX_THREAD_SAFE_FUNCTIONS	200112L
72
73/* We provide priority scheduling for threads.  */
74#define _POSIX_THREAD_PRIORITY_SCHEDULING	200112L
75
76/* We support user-defined stack sizes.  */
77#define _POSIX_THREAD_ATTR_STACKSIZE	200112L
78
79/* We support user-defined stacks.  */
80#define _POSIX_THREAD_ATTR_STACKADDR	200112L
81
82#ifdef __UCLIBC_HAS_REALTIME__
83/* We support POSIX.1b semaphores.  */
84#define _POSIX_SEMAPHORES	200112L
85#endif
86
87/* Real-time signals are supported.  */
88#define _POSIX_REALTIME_SIGNALS	200112L
89
90/* We support asynchronous I/O.  */
91#define _POSIX_ASYNCHRONOUS_IO	200112L
92#define _POSIX_ASYNC_IO		1
93/* Alternative name for Unix98.  */
94#define _LFS_ASYNCHRONOUS_IO	1
95/* Support for prioritization is also available.  */
96#define _POSIX_PRIORITIZED_IO	200112L
97
98/* The LFS support in asynchronous I/O is also available.  */
99#define _LFS64_ASYNCHRONOUS_IO	1
100
101#ifdef __UCLIBC_HAS_LFS__
102/* The rest of the LFS is also available.  */
103#define _LFS_LARGEFILE		1
104#define _LFS64_LARGEFILE	1
105#define _LFS64_STDIO		1
106#endif
107
108/* POSIX shared memory objects are implemented.  */
109#define _POSIX_SHARED_MEMORY_OBJECTS	200112L
110
111/* CPU-time clocks support needs to be checked at runtime.  */
112#define _POSIX_CPUTIME	0
113
114/* Clock support in threads must be also checked at runtime.  */
115#define _POSIX_THREAD_CPUTIME	0
116
117#ifdef __UCLIBC_HAS_REGEX__
118/* GNU libc provides regular expression handling.  */
119#define _POSIX_REGEXP	1
120#endif
121
122/* Reader/Writer locks are available.  */
123#define _POSIX_READER_WRITER_LOCKS	200112L
124
125/* We have a POSIX shell.  */
126#define _POSIX_SHELL	1
127
128/* We support the Timeouts option.  */
129#define _POSIX_TIMEOUTS	200112L
130
131/* We support spinlocks.  */
132#define _POSIX_SPIN_LOCKS	200112L
133
134/* The `spawn' function family is supported.  */
135#if 0 /* no support in uClibc (yet) */
136#define _POSIX_SPAWN	200112L
137#endif
138
139/* We have POSIX timers.  */
140#define _POSIX_TIMERS	200112L
141
142/* The barrier functions are available.  */
143#define _POSIX_BARRIERS	200112L
144
145/* POSIX message queues are available.  */
146#define	_POSIX_MESSAGE_PASSING	200112L
147
148/* Thread process-shared synchronization is supported.  */
149#define _POSIX_THREAD_PROCESS_SHARED	200112L
150
151/* The monotonic clock might be available.  */
152#define _POSIX_MONOTONIC_CLOCK	0
153
154/* The clock selection interfaces are available.  */
155#define _POSIX_CLOCK_SELECTION	200112L
156
157/* Advisory information interfaces are available.  */
158#define _POSIX_ADVISORY_INFO	200112L
159
160#ifdef __UCLIBC_HAS_IPV6__
161/* IPv6 support is available.  */
162#define _POSIX_IPV6	200112L
163#endif
164
165#ifdef __UCLIBC_HAS_SOCKET__
166/* Raw socket support is available.  */
167#define _POSIX_RAW_SOCKETS	200112L
168#endif
169
170/* We have at least one terminal.  */
171#define _POSIX2_CHAR_TERM	200112L
172
173/* Neither process nor thread sporadic server interfaces is available.  */
174#define _POSIX_SPORADIC_SERVER	-1
175#define _POSIX_THREAD_SPORADIC_SERVER	-1
176
177/* trace.h is not available.  */
178#define _POSIX_TRACE	-1
179#define _POSIX_TRACE_EVENT_FILTER	-1
180#define _POSIX_TRACE_INHERIT	-1
181#define _POSIX_TRACE_LOG	-1
182
183/* Typed memory objects are not available.  */
184#define _POSIX_TYPED_MEMORY_OBJECTS	-1
185
186/* No support for priority inheritance or protection so far.  */
187#define _POSIX_THREAD_PRIO_INHERIT	-1
188#define _POSIX_THREAD_PRIO_PROTECT	-1
189
190#endif /* posix_opt.h */
191