Update copyright notices with scripts/update-copyrights
[glibc.git] / ports / sysdeps / unix / sysv / linux / ia64 / kernel-features.h
blob340f679320c0747efdda67fbc563791d1cb55575
1 /* Set flags signalling availability of kernel features based on given
2 kernel version number.
3 Copyright (C) 2010-2014 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 utimes syscall has been available for some architectures
24 forever. */
25 #define __ASSUME_UTIMES 1
27 /* pselect/ppoll were introduced just after 2.6.16-rc1. Due to the way
28 the kernel versions are advertised we can only rely on 2.6.17 to have
29 the code. */
30 #if __LINUX_KERNEL_VERSION >= 0x020616
31 # define __ASSUME_PSELECT 1
32 # define __ASSUME_PPOLL 1
33 #endif
35 /* Support for various CLOEXEC and NONBLOCK flags was added in 2.6.23. */
36 #if __LINUX_KERNEL_VERSION >= 0x020617
37 # define __ASSUME_O_CLOEXEC 1
38 #endif
40 /* Support for various CLOEXEC and NONBLOCK flags was added in 2.6.27. */
41 #if __LINUX_KERNEL_VERSION >= 0x02061b
42 # define __ASSUME_SOCK_CLOEXEC 1
43 # define __ASSUME_IN_NONBLOCK 1
44 # define __ASSUME_PIPE2 1
45 # define __ASSUME_EVENTFD2 1
46 # define __ASSUME_SIGNALFD4 1
47 # define __ASSUME_DUP3 1
48 #endif
50 /* Support for the accept4 syscall was added in 3.3. */
51 #if __LINUX_KERNEL_VERSION >= 0x030300
52 # define __ASSUME_ACCEPT4 1
53 #endif
55 #include_next <kernel-features.h>
57 #endif /* _KERNEL_FEATURES_H */