(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / mach / hurd / bits / posix_opt.h
blob326bebff7fb0478efdd6b49d92c358fafd8e4c47
1 /* Define POSIX options for GNU/Hurd.
2 Copyright (C) 1998,2000,2001,2002 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 #if 0 /* XXX implement aio_* */
35 /* Asynchronous I/O is supported. */
36 #define _POSIX_ASYNCHRONOUS_IO 1
37 /* Alternative name for Unix98. */
38 #define _LFS_ASYNCHRONOUS_IO _POSIX_ASYNCHRONOUS_IO
39 #endif
41 /* Synchronizing file data is supported, but msync is missing. */
42 #undef _POSIX_SYNCHRONIZED_IO
44 /* The fsync function is present. */
45 #define _POSIX_FSYNC 200112L
47 /* Mapping of files to memory is supported. */
48 #define _POSIX_MAPPED_FILES 200112L
50 /* Locking of ranges of memory is supported. */
51 #define _POSIX_MEMLOCK_RANGE 200112L
53 /* Setting of memory protections is supported. */
54 #define _POSIX_MEMORY_PROTECTION 200112L
56 /* POSIX.4 shared memory objects are supported (using regular files). */
57 #define _POSIX_SHARED_MEMORY_OBJECTS _POSIX_MAPPED_FILES
59 /* Elements of the `c_cc' member of `struct termios' structure
60 can be disabled by using the value _POSIX_VDISABLE. */
61 #define _POSIX_VDISABLE ((unsigned char) -1)
64 /* Different Hurd filesystems might do these differently.
65 You must query the particular file with `pathconf' or `fpathconf'. */
66 #undef _POSIX_CHOWN_RESTRICTED /* Only root can change owner of file? */
67 #undef _POSIX_NO_TRUNC /* Overlong file names get error? */
68 #undef _POSIX_SYNC_IO /* File supports O_SYNC et al? */
70 /* GNU libc provides regular expression handling. */
71 #define _POSIX_REGEXP 1
73 /* We have a POSIX shell. */
74 #define _POSIX_SHELL 1
76 /* The `spawn' function family is supported. */
77 #define _POSIX_SPAWN 200112L
79 #endif /* bits/posix_opt.h */