Update copyright notices with scripts/update-copyrights
[glibc.git] / sysdeps / unix / sysv / linux / bits / posix_opt.h
blob9617addc5d6bf7aaad220b5634951a88c3c142f2
1 /* Define POSIX options for Linux.
2 Copyright (C) 1996-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/>. */
20 * Never include this file directly; use <unistd.h> instead.
23 #ifndef _BITS_POSIX_OPT_H
24 #define _BITS_POSIX_OPT_H 1
26 /* Job control is supported. */
27 #define _POSIX_JOB_CONTROL 1
29 /* Processes have a saved set-user-ID and a saved set-group-ID. */
30 #define _POSIX_SAVED_IDS 1
32 /* Priority scheduling is supported. */
33 #define _POSIX_PRIORITY_SCHEDULING 200809L
35 /* Synchronizing file data is supported. */
36 #define _POSIX_SYNCHRONIZED_IO 200809L
38 /* The fsync function is present. */
39 #define _POSIX_FSYNC 200809L
41 /* Mapping of files to memory is supported. */
42 #define _POSIX_MAPPED_FILES 200809L
44 /* Locking of all memory is supported. */
45 #define _POSIX_MEMLOCK 200809L
47 /* Locking of ranges of memory is supported. */
48 #define _POSIX_MEMLOCK_RANGE 200809L
50 /* Setting of memory protections is supported. */
51 #define _POSIX_MEMORY_PROTECTION 200809L
53 /* Some filesystems allow all users to change file ownership. */
54 #define _POSIX_CHOWN_RESTRICTED 0
56 /* `c_cc' member of 'struct termios' structure can be disabled by
57 using the value _POSIX_VDISABLE. */
58 #define _POSIX_VDISABLE '\0'
60 /* Filenames are not silently truncated. */
61 #define _POSIX_NO_TRUNC 1
63 /* X/Open realtime support is available. */
64 #define _XOPEN_REALTIME 1
66 /* XPG4.2 shared memory is supported. */
67 #define _XOPEN_SHM 1
69 /* Real-time signals are supported. */
70 #define _POSIX_REALTIME_SIGNALS 200809L
72 /* The LFS interface is available, except for the asynchronous I/O. */
73 #define _LFS_LARGEFILE 1
74 #define _LFS64_LARGEFILE 1
75 #define _LFS64_STDIO 1
77 /* POSIX timers are available. */
78 #define _POSIX_TIMERS 200809L
80 /* POSIX shared memory objects are implemented. */
81 #define _POSIX_SHARED_MEMORY_OBJECTS 200809L
83 /* GNU libc provides regular expression handling. */
84 #define _POSIX_REGEXP 1
86 /* We have a POSIX shell. */
87 #define _POSIX_SHELL 1
89 /* The `spawn' function family is supported. */
90 #define _POSIX_SPAWN 200809L
92 /* The monotonic clock might be available. */
93 #define _POSIX_MONOTONIC_CLOCK 0
95 #endif /* bits/posix_opt.h */