Replace FSF snail mail address with URLs.
[glibc.git] / sysdeps / mach / hurd / bits / posix_opt.h
blob23d32ce7619dfed82db0e4a9426f3bb559eccec1
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.
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 /* Synchronizing file data is supported, but msync is missing. */
34 #undef _POSIX_SYNCHRONIZED_IO
36 /* The fsync function is present. */
37 #define _POSIX_FSYNC 200809L
39 /* Mapping of files to memory is supported. */
40 #define _POSIX_MAPPED_FILES 200809L
42 /* Locking of all memory could be supported in future. */
43 #define _POSIX_MEMLOCK 0
45 /* Locking of ranges of memory is supported. */
46 #define _POSIX_MEMLOCK_RANGE 200809L
48 /* Setting of memory protections is supported. */
49 #define _POSIX_MEMORY_PROTECTION 200809L
51 /* Elements of the `c_cc' member of `struct termios' structure
52 can be disabled by using the value _POSIX_VDISABLE. */
53 #define _POSIX_VDISABLE ((unsigned char) -1)
56 /* Different Hurd filesystems might do these differently.
57 You must query the particular file with `pathconf' or `fpathconf'. */
58 #undef _POSIX_CHOWN_RESTRICTED /* Only root can change owner of file? */
59 #undef _POSIX_NO_TRUNC /* Overlong file names get error? */
60 #undef _POSIX_SYNC_IO /* File supports O_SYNC et al? */
63 /* We do not have the POSIX threads interface. */
64 #define _POSIX_THREADS -1
66 /* We have the reentrant functions described in POSIX. */
67 #define _POSIX_REENTRANT_FUNCTIONS 1
68 #define _POSIX_THREAD_SAFE_FUNCTIONS 200809L
70 /* These are all things that won't be supported when _POSIX_THREADS is not. */
71 #define _POSIX_THREAD_PRIORITY_SCHEDULING -1
72 #define _POSIX_THREAD_ATTR_STACKSIZE -1
73 #define _POSIX_THREAD_ATTR_STACKADDR -1
74 #define _POSIX_SEMAPHORES -1
76 /* Real-time signals are not yet supported. */
77 #define _POSIX_REALTIME_SIGNALS -1
79 /* Asynchronous I/O might supported with the existing ABI. */
80 #define _POSIX_ASYNCHRONOUS_IO 0
81 /* Alternative name for Unix98. */
82 #define _LFS_ASYNCHRONOUS_IO _POSIX_ASYNCHRONOUS_IO
84 /* The LFS support in asynchronous I/O is also available. */
85 #define _LFS64_ASYNCHRONOUS_IO _POSIX_ASYNCHRONOUS_IO
87 /* The rest of the LFS is also available. */
88 #define _LFS_LARGEFILE 1
89 #define _LFS64_LARGEFILE 1
90 #define _LFS64_STDIO 1
92 /* POSIX.4 shared memory objects are supported (using regular files). */
93 #define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_MAPPED_FILES
95 /* CPU-time clocks support needs to be checked at runtime. */
96 #define _POSIX_CPUTIME 0
98 /* Clock support in threads must be also checked at runtime. */
99 #define _POSIX_THREAD_CPUTIME 0
101 /* GNU libc provides regular expression handling. */
102 #define _POSIX_REGEXP 1
104 /* Reader/Writer locks are not available. */
105 #define _POSIX_READER_WRITER_LOCKS -1
107 /* We have a POSIX shell. */
108 #define _POSIX_SHELL 1
110 /* We cannot support the Timeouts option without _POSIX_THREADS. */
111 #define _POSIX_TIMEOUTS -1
113 /* The `spawn' function family is supported. */
114 #define _POSIX_SPAWN 200809L
116 /* We do not have POSIX timers, but could in future without ABI change. */
117 #define _POSIX_TIMERS 0
119 /* The barrier functions are not available. */
120 #define _POSIX_BARRIERS -1
122 /* POSIX message queues could be available in future. */
123 #define _POSIX_MESSAGE_PASSING 0
125 /* Thread process-shared synchronization is not supported. */
126 #define _POSIX_THREAD_PROCESS_SHARED -1
128 /* The monotonic clock might be available. */
129 #define _POSIX_MONOTONIC_CLOCK 0
131 /* The clock selection interfaces are available. */
132 #define _POSIX_CLOCK_SELECTION 200809L
134 /* Advisory information interfaces could be available in future. */
135 #define _POSIX_ADVISORY_INFO 0
137 /* IPv6 support is available. */
138 #define _POSIX_IPV6 200809L
140 /* Raw socket support is available. */
141 #define _POSIX_RAW_SOCKETS 200809L
143 /* We have at least one terminal. */
144 #define _POSIX2_CHAR_TERM 200809L
146 /* Neither process nor thread sporadic server interfaces is available. */
147 #define _POSIX_SPORADIC_SERVER -1
148 #define _POSIX_THREAD_SPORADIC_SERVER -1
150 /* trace.h is not available. */
151 #define _POSIX_TRACE -1
152 #define _POSIX_TRACE_EVENT_FILTER -1
153 #define _POSIX_TRACE_INHERIT -1
154 #define _POSIX_TRACE_LOG -1
156 /* Typed memory objects are not available. */
157 #define _POSIX_TYPED_MEMORY_OBJECTS -1
159 /* No support for priority inheritance or protection so far. */
160 #define _POSIX_THREAD_PRIO_INHERIT -1
161 #define _POSIX_THREAD_PRIO_PROTECT -1
164 #endif /* bits/posix_opt.h */