Update copyright notices with scripts/update-copyrights
[glibc.git] / ports / sysdeps / unix / sysv / linux / m68k / kernel-features.h
blob3b05e9661097fe79c611916cc8f7438223de6980
1 /* Set flags signalling availability of kernel features based on given
2 kernel version number.
3 Copyright (C) 2008-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 /* Many syscalls were added in 2.6.10 for m68k. */
21 #define __ASSUME_UTIMES 1
23 /* Support for various CLOEXEC and NONBLOCK flags was added 2.6.23. */
24 #if __LINUX_KERNEL_VERSION >= 0x020617
25 # define __ASSUME_O_CLOEXEC 1
26 #endif
28 /* Support for various CLOEXEC and NONBLOCK flags was added in 2.6.27. */
29 #if __LINUX_KERNEL_VERSION >= 0x02061b
30 # define __ASSUME_SOCK_CLOEXEC 1
31 # define __ASSUME_IN_NONBLOCK 1
32 # define __ASSUME_PIPE2 1
33 # define __ASSUME_EVENTFD2 1
34 # define __ASSUME_SIGNALFD4 1
35 # define __ASSUME_DUP3 1
36 #endif
38 /* Support for the accept4 syscall was added in 2.6.28. */
39 #if __LINUX_KERNEL_VERSION >= 0x02061c
40 # define __ASSUME_ACCEPT4 1
41 #endif
43 #include_next <kernel-features.h>
45 /* These syscalls were added only in 3.0 for m68k. */
46 #if __LINUX_KERNEL_VERSION < 0x030000
47 # undef __ASSUME_PSELECT
48 # undef __ASSUME_PPOLL
49 #endif
51 /* No support for PI futexes or robust mutexes before 3.10 for m68k. */
52 #if __LINUX_KERNEL_VERSION < 0x030a00
53 # undef __ASSUME_REQUEUE_PI
54 # undef __ASSUME_SET_ROBUST_LIST
55 #endif