]>
Commit | Line | Data |
---|---|---|
b14e8cb2 MT |
1 | /* Set flags signalling availability of kernel features based on given |
2 | kernel version number. | |
b168057a | 3 | Copyright (C) 2010-2015 Free Software Foundation, Inc. |
b14e8cb2 MT |
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 | |
ab84e3ff PE |
17 | License along with the GNU C Library. If not, see |
18 | <http://www.gnu.org/licenses/>. */ | |
b14e8cb2 | 19 | |
fe7b738e RH |
20 | #ifndef _KERNEL_FEATURES_H |
21 | #define _KERNEL_FEATURES_H 1 | |
22 | ||
0e31b18c JM |
23 | /* Support for recvmmsg was added for alpha in 2.6.33. */ |
24 | #if __LINUX_KERNEL_VERSION >= 0x020621 | |
25 | # define __ASSUME_RECVMMSG_SYSCALL 1 | |
26 | #endif | |
27 | ||
bc688c10 | 28 | /* Support for accept4 and sendmmsg was added for alpha in 3.2. */ |
dd481ccf JM |
29 | #if __LINUX_KERNEL_VERSION >= 0x030200 |
30 | # define __ASSUME_ACCEPT4_SYSCALL 1 | |
bc688c10 | 31 | # define __ASSUME_SENDMMSG_SYSCALL 1 |
742c00d3 MT |
32 | #endif |
33 | ||
b14e8cb2 MT |
34 | #include_next <kernel-features.h> |
35 | ||
36 | #undef __ASSUME_ST_INO_64_BIT | |
37 | ||
742c00d3 | 38 | /* Support for fallocate was added for alpha after 2.6.33-rc1. */ |
b14e8cb2 MT |
39 | #if __LINUX_KERNEL_VERSION < 0x020621 |
40 | # undef __ASSUME_FALLOCATE | |
41 | #endif | |
fe7b738e RH |
42 | |
43 | /* There never has been support for fstat64. */ | |
44 | #undef __ASSUME_STATFS64 | |
45 | #define __ASSUME_STATFS64 0 | |
46 | ||
563c8405 | 47 | /* Support for fsyncdata was added for alpha after 2.6.21. */ |
637461d9 | 48 | #define __ASSUME_FDATASYNC 1 |
563c8405 | 49 | |
5e7698c6 | 50 | /* Support for various syscalls was added for alpha in 2.6.33. */ |
b1115e91 JM |
51 | #if __LINUX_KERNEL_VERSION < 0x020621 |
52 | # undef __ASSUME_PREADV | |
53 | # undef __ASSUME_PWRITEV | |
5e7698c6 JM |
54 | # undef __ASSUME_IN_NONBLOCK |
55 | # undef __ASSUME_PIPE2 | |
56 | # undef __ASSUME_EVENTFD2 | |
57 | # undef __ASSUME_SIGNALFD4 | |
58 | # undef __ASSUME_DUP3 | |
b1115e91 JM |
59 | #endif |
60 | ||
fe7b738e | 61 | #endif /* _KERNEL_FEATURES_H */ |