* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
[glibc.git] / sysdeps / unix / sysv / linux / bits / posix_opt.h
blob1a96db298226ca6143f29c30755614a7dc7d30e1
1 /* Define POSIX options for Linux.
2 Copyright (C) 1996,1997,1999,2000,2002,2003 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. */
21 * Never include this file directly; use <unistd.h> instead.
24 #ifndef _BITS_POSIX_OPT_H
25 #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 supported. */
34 #define _POSIX_PRIORITY_SCHEDULING 200112L
36 /* Synchronizing file data is supported. */
37 #define _POSIX_SYNCHRONIZED_IO 200112L
39 /* The fsync function is present. */
40 #define _POSIX_FSYNC 200112L
42 /* Mapping of files to memory is supported. */
43 #define _POSIX_MAPPED_FILES 200112L
45 /* Locking of all memory is supported. */
46 #define _POSIX_MEMLOCK 200112L
48 /* Locking of ranges of memory is supported. */
49 #define _POSIX_MEMLOCK_RANGE 200112L
51 /* Setting of memory protections is supported. */
52 #define _POSIX_MEMORY_PROTECTION 200112L
54 /* Only root can change owner of file. */
55 #define _POSIX_CHOWN_RESTRICTED 1
57 /* `c_cc' member of 'struct termios' structure can be disabled by
58 using the value _POSIX_VDISABLE. */
59 #define _POSIX_VDISABLE '\0'
61 /* Filenames are not silently truncated. */
62 #define _POSIX_NO_TRUNC 1
64 /* X/Open realtime support is available. */
65 #define _XOPEN_REALTIME 1
67 /* XPG4.2 shared memory is supported. */
68 #define _XOPEN_SHM 1
70 /* Real-time signals are supported. */
71 #define _POSIX_REALTIME_SIGNALS 200112L
73 /* The LFS interface is available, except for the asynchronous I/O. */
74 #define _LFS_LARGEFILE 1
75 #define _LFS64_LARGEFILE 1
76 #define _LFS64_STDIO 1
78 /* POSIX timers are available. */
79 #define _POSIX_TIMERS 200112L
81 /* POSIX shared memory objects are implemented. */
82 #define _POSIX_SHARED_MEMORY_OBJECTS 200112L
84 /* GNU libc provides regular expression handling. */
85 #define _POSIX_REGEXP 1
87 /* We have a POSIX shell. */
88 #define _POSIX_SHELL 1
90 /* The `spawn' function family is supported. */
91 #define _POSIX_SPAWN 200112L
93 /* The monotonic clock might be available. */
94 #define _POSIX_MONOTONIC_CLOCK 0
96 #endif /* bits/posix_opt.h */