Updated to fedora-glibc-20041006T0900
[glibc.git] / nptl / sysdeps / unix / sysv / linux / x86_64 / bits / posix_opt.h
blob2b5a3e6db8df46fef923e428c657d68d526dc9fc
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.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 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 Library General Public License for more details.
15 You should have received a copy of the GNU Library 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. */
20 #ifndef _POSIX_OPT_H
21 #define _POSIX_OPT_H 1
23 /* Job control is supported. */
24 #define _POSIX_JOB_CONTROL 1
26 /* Processes have a saved set-user-ID and a saved set-group-ID. */
27 #define _POSIX_SAVED_IDS 1
29 /* Priority scheduling is supported. */
30 #define _POSIX_PRIORITY_SCHEDULING 200112L
32 /* Synchronizing file data is supported. */
33 #define _POSIX_SYNCHRONIZED_IO 200112L
35 /* The fsync function is present. */
36 #define _POSIX_FSYNC 200112L
38 /* Mapping of files to memory is supported. */
39 #define _POSIX_MAPPED_FILES 200112L
41 /* Locking of all memory is supported. */
42 #define _POSIX_MEMLOCK 200112L
44 /* Locking of ranges of memory is supported. */
45 #define _POSIX_MEMLOCK_RANGE 200112L
47 /* Setting of memory protections is supported. */
48 #define _POSIX_MEMORY_PROTECTION 200112L
50 /* Only root can change owner of file. */
51 #define _POSIX_CHOWN_RESTRICTED 1
53 /* `c_cc' member of 'struct termios' structure can be disabled by
54 using the value _POSIX_VDISABLE. */
55 #define _POSIX_VDISABLE '\0'
57 /* Filenames are not silently truncated. */
58 #define _POSIX_NO_TRUNC 1
60 /* X/Open realtime support is available. */
61 #define _XOPEN_REALTIME 1
63 /* XPG4.2 shared memory is supported. */
64 #define _XOPEN_SHM 1
66 /* Tell we have POSIX threads. */
67 #define _POSIX_THREADS 200112L
69 /* We have the reentrant functions described in POSIX. */
70 #define _POSIX_REENTRANT_FUNCTIONS 1
71 #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L
73 /* We provide priority scheduling for threads. */
74 #define _POSIX_THREAD_PRIORITY_SCHEDULING 200112L
76 /* We support user-defined stack sizes. */
77 #define _POSIX_THREAD_ATTR_STACKSIZE 200112L
79 /* We support user-defined stacks. */
80 #define _POSIX_THREAD_ATTR_STACKADDR 200112L
82 /* We support POSIX.1b semaphores. */
83 #define _POSIX_SEMAPHORES 200112L
85 /* Real-time signals are supported. */
86 #define _POSIX_REALTIME_SIGNALS 200112L
88 /* We support asynchronous I/O. */
89 #define _POSIX_ASYNCHRONOUS_IO 200112L
90 #define _POSIX_ASYNC_IO 1
91 /* Alternative name for Unix98. */
92 #define _LFS_ASYNCHRONOUS_IO 1
94 /* The LFS support in asynchronous I/O is also available. */
95 #define _LFS64_ASYNCHRONOUS_IO 1
97 /* The rest of the LFS is also available. */
98 #define _LFS_LARGEFILE 1
99 #define _LFS64_LARGEFILE 1
100 #define _LFS64_STDIO 1
102 /* POSIX shared memory objects are implemented. */
103 #define _POSIX_SHARED_MEMORY_OBJECTS 200112L
105 /* CPU-time clocks supported. */
106 #define _POSIX_CPUTIME 0
108 /* We support the clock also in threads. */
109 #define _POSIX_THREAD_CPUTIME 0
111 /* GNU libc provides regular expression handling. */
112 #define _POSIX_REGEXP 1
114 /* Reader/Writer locks are available. */
115 #define _POSIX_READER_WRITER_LOCKS 200112L
117 /* We have a POSIX shell. */
118 #define _POSIX_SHELL 1
120 /* We support the Timeouts option. */
121 #define _POSIX_TIMEOUTS 200112L
123 /* We support spinlocks. */
124 #define _POSIX_SPIN_LOCKS 200112L
126 /* The `spawn' function family is supported. */
127 #define _POSIX_SPAWN 200112L
129 /* We have POSIX timers. */
130 #define _POSIX_TIMERS 200112L
132 /* The barrier functions are available. */
133 #define _POSIX_BARRIERS 200112L
135 /* POSIX message queues are available. */
136 #define _POSIX_MESSAGE_PASSING 200112L
138 /* Thread process-shared synchronization is supported. */
139 #define _POSIX_THREAD_PROCESS_SHARED 200112L
141 /* The monotonic clock might be available. */
142 #define _POSIX_MONOTONIC_CLOCK 0
144 /* The clock selection interfaces are available. */
145 #define _POSIX_CLOCK_SELECTION 200112L
147 #endif /* posix_opt.h */