Add Changelog ...
[glibc.git] / sysdeps / unix / sysv / linux / ia64 / kernel-features.h
blobf8dc4812cf4d1ccffc61f8829997ec9f343cd2bc
1 /* Set flags signalling availability of kernel features based on given
2 kernel version number.
3 Copyright (C) 2010-2012 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, see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef _KERNEL_FEATURES_H
21 #define _KERNEL_FEATURES_H 1
23 /* The late 2.5 kernels saw a lot of new CLONE_* flags. Summarize
24 their availability with one define. */
25 #if __LINUX_KERNEL_VERSION >= 132416
26 # define __ASSUME_CLONE_THREAD_FLAGS 1
27 #endif
29 /* The utimes syscall has been available for some architectures
30 forever. */
31 #define __ASSUME_UTIMES 1
33 /* pselect/ppoll were introduced just after 2.6.16-rc1. Due to the way
34 the kernel versions are advertised we can only rely on 2.6.17 to have
35 the code. */
36 #if __LINUX_KERNEL_VERSION >= 0x020616
37 # define __ASSUME_PSELECT 1
38 # define __ASSUME_PPOLL 1
39 #endif
41 /* Support for various CLOEXEC and NONBLOCK flags was added in 2.6.23. */
42 #if __LINUX_KERNEL_VERSION >= 0x020617
43 # define __ASSUME_O_CLOEXEC 1
44 #endif
46 /* Support for various CLOEXEC and NONBLOCK flags was added in 2.6.27. */
47 #if __LINUX_KERNEL_VERSION >= 0x02061b
48 # define __ASSUME_SOCK_CLOEXEC 1
49 # define __ASSUME_IN_NONBLOCK 1
50 # define __ASSUME_PIPE2 1
51 # define __ASSUME_EVENTFD2 1
52 # define __ASSUME_SIGNALFD4 1
53 # define __ASSUME_DUP3 1
54 #endif
56 /* Support for the accept4 syscall was added in 3.3. */
57 #if __LINUX_KERNEL_VERSION >= 0x030300
58 # define __ASSUME_ACCEPT4 1
59 #endif
61 #include_next <kernel-features.h>
63 #endif /* _KERNEL_FEATURES_H */