420378027657c67d3c76db1835704aca232c3c9e
[platform/upstream/glibc.git] / ports / sysdeps / unix / sysv / linux / m68k / kernel-features.h
1 /* Set flags signalling availability of kernel features based on given
2    kernel version number.
3    Copyright (C) 2008-2013 Free Software Foundation, Inc.
4    This file is part of the GNU C Library.
5
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.
10
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.
15
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/>.  */
19
20 /* Many syscalls were added in 2.6.10 for m68k.  */
21 #define __ASSUME_UTIMES 1
22
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
27
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
37
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
42
43 #include_next <kernel-features.h>
44
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