chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / sysdeps / mach / hurd / bits / posix_opt.h
1 /* Define POSIX options for GNU/Hurd.
2    Copyright (C) 1998,2000,2001,2002,2006,2009 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
7    License as published by the Free Software Foundation; either
8    version 2.1 of the 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; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
19
20 #ifndef _UNISTD_H
21 #error "Never include this file directly; use <unistd.h> instead."
22 #endif
23
24 #ifndef _BITS_POSIX_OPT_H
25 #define _BITS_POSIX_OPT_H       1
26
27
28 /* Job control is supported.  */
29 #define _POSIX_JOB_CONTROL      1
30
31 /* Processes have a saved set-user-ID and a saved set-group-ID.  */
32 #define _POSIX_SAVED_IDS        1
33
34 /* Synchronizing file data is supported, but msync is missing.  */
35 #undef _POSIX_SYNCHRONIZED_IO
36
37 /* The fsync function is present.  */
38 #define _POSIX_FSYNC    200809L
39
40 /* Mapping of files to memory is supported.  */
41 #define _POSIX_MAPPED_FILES     200809L
42
43 /* Locking of all memory could be supported in future.  */
44 #define _POSIX_MEMLOCK  0
45
46 /* Locking of ranges of memory is supported.  */
47 #define _POSIX_MEMLOCK_RANGE    200809L
48
49 /* Setting of memory protections is supported.  */
50 #define _POSIX_MEMORY_PROTECTION        200809L
51
52 /* Elements of the `c_cc' member of `struct termios' structure
53    can be disabled by using the value _POSIX_VDISABLE.  */
54 #define _POSIX_VDISABLE                 ((unsigned char) -1)
55
56
57 /* Different Hurd filesystems might do these differently.
58    You must query the particular file with `pathconf' or `fpathconf'.  */
59 #undef _POSIX_CHOWN_RESTRICTED  /* Only root can change owner of file?  */
60 #undef _POSIX_NO_TRUNC          /* Overlong file names get error?  */
61 #undef _POSIX_SYNC_IO           /* File supports O_SYNC et al?  */
62
63
64 /* We do not have the POSIX threads interface.  */
65 #define _POSIX_THREADS  -1
66
67 /* We have the reentrant functions described in POSIX.  */
68 #define _POSIX_REENTRANT_FUNCTIONS      1
69 #define _POSIX_THREAD_SAFE_FUNCTIONS    200809L
70
71 /* These are all things that won't be supported when _POSIX_THREADS is not.  */
72 #define _POSIX_THREAD_PRIORITY_SCHEDULING       -1
73 #define _POSIX_THREAD_ATTR_STACKSIZE            -1
74 #define _POSIX_THREAD_ATTR_STACKADDR            -1
75 #define _POSIX_SEMAPHORES                       -1
76
77 /* Real-time signals are not yet supported.  */
78 #define _POSIX_REALTIME_SIGNALS -1
79
80 /* Asynchronous I/O might supported with the existing ABI.  */
81 #define _POSIX_ASYNCHRONOUS_IO  0
82 /* Alternative name for Unix98.  */
83 #define _LFS_ASYNCHRONOUS_IO    _POSIX_ASYNCHRONOUS_IO
84
85 /* The LFS support in asynchronous I/O is also available.  */
86 #define _LFS64_ASYNCHRONOUS_IO  _POSIX_ASYNCHRONOUS_IO
87
88 /* The rest of the LFS is also available.  */
89 #define _LFS_LARGEFILE          1
90 #define _LFS64_LARGEFILE        1
91 #define _LFS64_STDIO            1
92
93 /* POSIX.4 shared memory objects are supported (using regular files).  */
94 #define _POSIX_SHARED_MEMORY_OBJECTS    _POSIX_MAPPED_FILES
95
96 /* CPU-time clocks support needs to be checked at runtime.  */
97 #define _POSIX_CPUTIME  0
98
99 /* Clock support in threads must be also checked at runtime.  */
100 #define _POSIX_THREAD_CPUTIME   0
101
102 /* GNU libc provides regular expression handling.  */
103 #define _POSIX_REGEXP   1
104
105 /* Reader/Writer locks are not available.  */
106 #define _POSIX_READER_WRITER_LOCKS      -1
107
108 /* We have a POSIX shell.  */
109 #define _POSIX_SHELL    1
110
111 /* We cannot support the Timeouts option without _POSIX_THREADS.  */
112 #define _POSIX_TIMEOUTS -1
113
114 /* The `spawn' function family is supported.  */
115 #define _POSIX_SPAWN    200809L
116
117 /* We do not have POSIX timers, but could in future without ABI change.  */
118 #define _POSIX_TIMERS   0
119
120 /* The barrier functions are not available.  */
121 #define _POSIX_BARRIERS -1
122
123 /* POSIX message queues could be available in future.  */
124 #define _POSIX_MESSAGE_PASSING  0
125
126 /* Thread process-shared synchronization is not supported.  */
127 #define _POSIX_THREAD_PROCESS_SHARED    -1
128
129 /* The monotonic clock might be available.  */
130 #define _POSIX_MONOTONIC_CLOCK  0
131
132 /* The clock selection interfaces are available.  */
133 #define _POSIX_CLOCK_SELECTION  200809L
134
135 /* Advisory information interfaces could be available in future.  */
136 #define _POSIX_ADVISORY_INFO    0
137
138 /* IPv6 support is available.  */
139 #define _POSIX_IPV6     200809L
140
141 /* Raw socket support is available.  */
142 #define _POSIX_RAW_SOCKETS      200809L
143
144 /* We have at least one terminal.  */
145 #define _POSIX2_CHAR_TERM       200809L
146
147 /* Neither process nor thread sporadic server interfaces is available.  */
148 #define _POSIX_SPORADIC_SERVER  -1
149 #define _POSIX_THREAD_SPORADIC_SERVER   -1
150
151 /* trace.h is not available.  */
152 #define _POSIX_TRACE    -1
153 #define _POSIX_TRACE_EVENT_FILTER       -1
154 #define _POSIX_TRACE_INHERIT    -1
155 #define _POSIX_TRACE_LOG        -1
156
157 /* Typed memory objects are not available.  */
158 #define _POSIX_TYPED_MEMORY_OBJECTS     -1
159
160 /* No support for priority inheritance or protection so far.  */
161 #define _POSIX_THREAD_PRIO_INHERIT      -1
162 #define _POSIX_THREAD_PRIO_PROTECT      -1
163
164
165 #endif /* bits/posix_opt.h */