2.9
[glibc/nacl-glibc.git] / sysdeps / unix / sysv / linux / bits / posix_opt.h
blob37612e0bd56932c68f19695c41ce992d5076c305
1 /* Define POSIX options for Linux.
2 Copyright (C) 1996,1997,1999,2000,2002,2003,2008
3 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, write to the Free
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA. */
22 * Never include this file directly; use <unistd.h> instead.
25 #ifndef _BITS_POSIX_OPT_H
26 #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 /* Priority scheduling is supported. */
35 #define _POSIX_PRIORITY_SCHEDULING 200112L
37 /* Synchronizing file data is supported. */
38 #define _POSIX_SYNCHRONIZED_IO 200112L
40 /* The fsync function is present. */
41 #define _POSIX_FSYNC 200112L
43 /* Mapping of files to memory is supported. */
44 #define _POSIX_MAPPED_FILES 200112L
46 /* Locking of all memory is supported. */
47 #define _POSIX_MEMLOCK 200112L
49 /* Locking of ranges of memory is supported. */
50 #define _POSIX_MEMLOCK_RANGE 200112L
52 /* Setting of memory protections is supported. */
53 #define _POSIX_MEMORY_PROTECTION 200112L
55 /* Some filesystems allow all users to change file ownership. */
56 #define _POSIX_CHOWN_RESTRICTED 0
58 /* `c_cc' member of 'struct termios' structure can be disabled by
59 using the value _POSIX_VDISABLE. */
60 #define _POSIX_VDISABLE '\0'
62 /* Filenames are not silently truncated. */
63 #define _POSIX_NO_TRUNC 1
65 /* X/Open realtime support is available. */
66 #define _XOPEN_REALTIME 1
68 /* XPG4.2 shared memory is supported. */
69 #define _XOPEN_SHM 1
71 /* Real-time signals are supported. */
72 #define _POSIX_REALTIME_SIGNALS 200112L
74 /* The LFS interface is available, except for the asynchronous I/O. */
75 #define _LFS_LARGEFILE 1
76 #define _LFS64_LARGEFILE 1
77 #define _LFS64_STDIO 1
79 /* POSIX timers are available. */
80 #define _POSIX_TIMERS 200112L
82 /* POSIX shared memory objects are implemented. */
83 #define _POSIX_SHARED_MEMORY_OBJECTS 200112L
85 /* GNU libc provides regular expression handling. */
86 #define _POSIX_REGEXP 1
88 /* We have a POSIX shell. */
89 #define _POSIX_SHELL 1
91 /* The `spawn' function family is supported. */
92 #define _POSIX_SPAWN 200112L
94 /* The monotonic clock might be available. */
95 #define _POSIX_MONOTONIC_CLOCK 0
97 #endif /* bits/posix_opt.h */