]>
Commit | Line | Data |
---|---|---|
b14e8cb2 MT |
1 | /* Set flags signalling availability of kernel features based on given |
2 | kernel version number. | |
04277e02 | 3 | Copyright (C) 2010-2019 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 | ||
b14e8cb2 MT |
23 | #include_next <kernel-features.h> |
24 | ||
fe7b738e RH |
25 | /* There never has been support for fstat64. */ |
26 | #undef __ASSUME_STATFS64 | |
27 | #define __ASSUME_STATFS64 0 | |
28 | ||
8232e7d2 AZ |
29 | /* Alpha defines SysV ipc shmat syscall with a different name. */ |
30 | #define __NR_shmat __NR_osf_shmat | |
31 | ||
60f9423b | 32 | #define __ASSUME_RECV_SYSCALL 1 |
cb09a3d4 | 33 | #define __ASSUME_SEND_SYSCALL 1 |
df799d9e | 34 | |
d6da5cb6 FW |
35 | /* Support for the renameat2 syscall was added in 3.17. */ |
36 | #if __LINUX_KERNEL_VERSION < 0x031100 | |
37 | # undef __ASSUME_RENAMEAT2 | |
38 | #endif | |
39 | ||
43ffc53a AS |
40 | /* Support for the execveat syscall was added in 4.2. */ |
41 | #if __LINUX_KERNEL_VERSION < 0x040200 | |
42 | # undef __ASSUME_EXECVEAT | |
43 | #endif | |
44 | ||
e0f9c462 | 45 | /* Support for copy_file_range, statx was added in kernel 4.13. */ |
fd70af45 | 46 | #if __LINUX_KERNEL_VERSION < 0x040D00 |
e0f9c462 FW |
47 | # undef __ASSUME_MLOCK2 |
48 | # undef __ASSUME_COPY_FILE_RANGE | |
fd70af45 FW |
49 | # undef __ASSUME_STATX |
50 | #endif | |
51 | ||
fe7b738e | 52 | #endif /* _KERNEL_FEATURES_H */ |