2.9
[glibc/nacl-glibc.git] / sysdeps / mach / hurd / bits / posix_opt.h
blob6747bc276ec629e0a759ec1655a53593c3fb14bb
1 /* Define POSIX options for GNU/Hurd.
2 Copyright (C) 1998,2000,2001,2002,2006 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, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
20 #ifndef _UNISTD_H
21 #error "Never include this file directly; use <unistd.h> instead."
22 #endif
24 #ifndef _BITS_POSIX_OPT_H
25 #define _BITS_POSIX_OPT_H 1
28 /* Job control is supported. */
29 #define _POSIX_JOB_CONTROL 1
31 /* Processes have a saved set-user-ID and a saved set-group-ID. */
32 #define _POSIX_SAVED_IDS 1
34 /* Synchronizing file data is supported, but msync is missing. */
35 #undef _POSIX_SYNCHRONIZED_IO
37 /* The fsync function is present. */
38 #define _POSIX_FSYNC 200112L
40 /* Mapping of files to memory is supported. */
41 #define _POSIX_MAPPED_FILES 200112L
43 /* Locking of all memory could be supported in future. */
44 #define _POSIX_MEMLOCK 0
46 /* Locking of ranges of memory is supported. */
47 #define _POSIX_MEMLOCK_RANGE 200112L
49 /* Setting of memory protections is supported. */
50 #define _POSIX_MEMORY_PROTECTION 200112L
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)
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? */
64 /* We do not have the POSIX threads interface. */
65 #define _POSIX_THREADS -1
67 /* We have the reentrant functions described in POSIX. */
68 #define _POSIX_REENTRANT_FUNCTIONS 1
69 #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
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
77 /* Real-time signals are not yet supported. */
78 #define _POSIX_REALTIME_SIGNALS -1
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
85 /* The LFS support in asynchronous I/O is also available. */
86 #define _LFS64_ASYNCHRONOUS_IO _POSIX_ASYNCHRONOUS_IO
88 /* The rest of the LFS is also available. */
89 #define _LFS_LARGEFILE 1
90 #define _LFS64_LARGEFILE 1
91 #define _LFS64_STDIO 1
93 /* POSIX.4 shared memory objects are supported (using regular files). */
94 #define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_MAPPED_FILES
96 /* CPU-time clocks support needs to be checked at runtime. */
97 #define _POSIX_CPUTIME 0
99 /* Clock support in threads must be also checked at runtime. */
100 #define _POSIX_THREAD_CPUTIME 0
102 /* GNU libc provides regular expression handling. */
103 #define _POSIX_REGEXP 1
105 /* Reader/Writer locks are not available. */
106 #define _POSIX_READER_WRITER_LOCKS -1
108 /* We have a POSIX shell. */
109 #define _POSIX_SHELL 1
111 /* We cannot support the Timeouts option without _POSIX_THREADS. */
112 #define _POSIX_TIMEOUTS -1
114 /* The `spawn' function family is supported. */
115 #define _POSIX_SPAWN 200112L
117 /* We do not have POSIX timers, but could in future without ABI change. */
118 #define _POSIX_TIMERS 0
120 /* The barrier functions are not available. */
121 #define _POSIX_BARRIERS -1
123 /* POSIX message queues could be available in future. */
124 #define _POSIX_MESSAGE_PASSING 0
126 /* Thread process-shared synchronization is not supported. */
127 #define _POSIX_THREAD_PROCESS_SHARED -1
129 /* The monotonic clock might be available. */
130 #define _POSIX_MONOTONIC_CLOCK 0
132 /* The clock selection interfaces are available. */
133 #define _POSIX_CLOCK_SELECTION 200112L
135 /* Advisory information interfaces could be available in future. */
136 #define _POSIX_ADVISORY_INFO 0
138 /* IPv6 support is available. */
139 #define _POSIX_IPV6 200112L
141 /* Raw socket support is available. */
142 #define _POSIX_RAW_SOCKETS 200112L
144 /* We have at least one terminal. */
145 #define _POSIX2_CHAR_TERM 200112L
147 /* Neither process nor thread sporadic server interfaces is available. */
148 #define _POSIX_SPORADIC_SERVER -1
149 #define _POSIX_THREAD_SPORADIC_SERVER -1
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
157 /* Typed memory objects are not available. */
158 #define _POSIX_TYPED_MEMORY_OBJECTS -1
160 /* No support for priority inheritance or protection so far. */
161 #define _POSIX_THREAD_PRIO_INHERIT -1
162 #define _POSIX_THREAD_PRIO_PROTECT -1
165 #endif /* bits/posix_opt.h */