Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / mach / hurd / bits / posix_opt.h
bloba897cb1640529cfe204e11e6ed2866a86a012ea9
1 /* Define POSIX options for GNU/Hurd.
2 Copyright (C) 1998-2014 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifndef _UNISTD_H
20 #error "Never include this file directly; use <unistd.h> instead."
21 #endif
23 #ifndef _BITS_POSIX_OPT_H
24 #define _BITS_POSIX_OPT_H 1
27 /* Job control is supported. */
28 #define _POSIX_JOB_CONTROL 1
30 /* Processes have a saved set-user-ID and a saved set-group-ID. */
31 #define _POSIX_SAVED_IDS 1
33 /* Priority scheduling is not supported. */
34 #undef _POSIX_PRIORITY_SCHEDULING
36 /* Synchronizing file data is supported, but msync is missing. */
37 #undef _POSIX_SYNCHRONIZED_IO
39 /* The fsync function is present. */
40 #define _POSIX_FSYNC 200809L
42 /* Mapping of files to memory is supported. */
43 #define _POSIX_MAPPED_FILES 200809L
45 /* Locking of all memory could be supported in future. */
46 #define _POSIX_MEMLOCK 0
48 /* Locking of ranges of memory is supported. */
49 #define _POSIX_MEMLOCK_RANGE 200809L
51 /* Setting of memory protections is supported. */
52 #define _POSIX_MEMORY_PROTECTION 200809L
54 /* Elements of the `c_cc' member of `struct termios' structure
55 can be disabled by using the value _POSIX_VDISABLE. */
56 #define _POSIX_VDISABLE ((unsigned char) -1)
59 /* Different Hurd filesystems might do these differently.
60 You must query the particular file with `pathconf' or `fpathconf'. */
61 #undef _POSIX_CHOWN_RESTRICTED /* Only root can change owner of file? */
62 #undef _POSIX_NO_TRUNC /* Overlong file names get error? */
63 #undef _POSIX_SYNC_IO /* File supports O_SYNC et al? */
65 /* X/Open realtime support is not supported. */
66 #undef _XOPEN_REALTIME
68 /* X/Open thread realtime support is not supported. */
69 #undef _XOPEN_REALTIME_THREADS
71 /* XPG4.2 shared memory is not supported. */
72 #undef _XOPEN_SHM
74 /* We do not have the POSIX threads interface. */
75 #define _POSIX_THREADS -1
77 /* We have the reentrant functions described in POSIX. */
78 #define _POSIX_REENTRANT_FUNCTIONS 1
79 #define _POSIX_THREAD_SAFE_FUNCTIONS 200809L
81 /* These are all things that won't be supported when _POSIX_THREADS is not. */
82 #define _POSIX_THREAD_PRIORITY_SCHEDULING -1
83 #define _POSIX_THREAD_ATTR_STACKSIZE -1
84 #define _POSIX_THREAD_ATTR_STACKADDR -1
85 #define _POSIX_THREAD_PRIO_INHERIT -1
86 #define _POSIX_THREAD_PRIO_PROTECT -1
87 #ifdef __USE_XOPEN2K8
88 # define _POSIX_THREAD_ROBUST_PRIO_INHERIT -1
89 # define _POSIX_THREAD_ROBUST_PRIO_PROTECT -1
90 #endif
91 #define _POSIX_SEMAPHORES -1
93 /* Real-time signals are not yet supported. */
94 #define _POSIX_REALTIME_SIGNALS -1
96 /* Asynchronous I/O might supported with the existing ABI. */
97 #define _POSIX_ASYNCHRONOUS_IO 0
98 #undef _POSIX_ASYNC_IO
99 /* Alternative name for Unix98. */
100 #define _LFS_ASYNCHRONOUS_IO _POSIX_ASYNCHRONOUS_IO
101 /* Support for prioritization is not available. */
102 #undef _POSIX_PRIORITIZED_IO
104 /* The LFS support in asynchronous I/O is also available. */
105 #define _LFS64_ASYNCHRONOUS_IO _POSIX_ASYNCHRONOUS_IO
107 /* The rest of the LFS is also available. */
108 #define _LFS_LARGEFILE 1
109 #define _LFS64_LARGEFILE 1
110 #define _LFS64_STDIO 1
112 /* POSIX.4 shared memory objects are supported (using regular files). */
113 #define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_MAPPED_FILES
115 /* CPU-time clocks support needs to be checked at runtime. */
116 #define _POSIX_CPUTIME 0
118 /* Clock support in threads must be also checked at runtime. */
119 #define _POSIX_THREAD_CPUTIME 0
121 /* GNU libc provides regular expression handling. */
122 #define _POSIX_REGEXP 1
124 /* Reader/Writer locks are not available. */
125 #define _POSIX_READER_WRITER_LOCKS -1
127 /* We have a POSIX shell. */
128 #define _POSIX_SHELL 1
130 /* We cannot support the Timeouts option without _POSIX_THREADS. */
131 #define _POSIX_TIMEOUTS -1
133 /* We do not support spinlocks. */
134 #define _POSIX_SPIN_LOCKS -1
136 /* The `spawn' function family is supported. */
137 #define _POSIX_SPAWN 200809L
139 /* We do not have POSIX timers, but could in future without ABI change. */
140 #define _POSIX_TIMERS 0
142 /* The barrier functions are not available. */
143 #define _POSIX_BARRIERS -1
145 /* POSIX message queues could be available in future. */
146 #define _POSIX_MESSAGE_PASSING 0
148 /* Thread process-shared synchronization is not supported. */
149 #define _POSIX_THREAD_PROCESS_SHARED -1
151 /* The monotonic clock might be available. */
152 #define _POSIX_MONOTONIC_CLOCK 0
154 /* The clock selection interfaces are available. */
155 #define _POSIX_CLOCK_SELECTION 200809L
157 /* Advisory information interfaces could be available in future. */
158 #define _POSIX_ADVISORY_INFO 0
160 /* IPv6 support is available. */
161 #define _POSIX_IPV6 200809L
163 /* Raw socket support is available. */
164 #define _POSIX_RAW_SOCKETS 200809L
166 /* We have at least one terminal. */
167 #define _POSIX2_CHAR_TERM 200809L
169 /* Neither process nor thread sporadic server interfaces is available. */
170 #define _POSIX_SPORADIC_SERVER -1
171 #define _POSIX_THREAD_SPORADIC_SERVER -1
173 /* trace.h is not available. */
174 #define _POSIX_TRACE -1
175 #define _POSIX_TRACE_EVENT_FILTER -1
176 #define _POSIX_TRACE_INHERIT -1
177 #define _POSIX_TRACE_LOG -1
179 /* Typed memory objects are not available. */
180 #define _POSIX_TYPED_MEMORY_OBJECTS -1
182 #endif /* bits/posix_opt.h */