2010-03-26 20:49:55 +00:00
|
|
|
/* Set flags signalling availability of kernel features based on given
|
|
|
|
kernel version number.
|
2019-01-01 00:11:28 +00:00
|
|
|
Copyright (C) 2010-2019 Free Software Foundation, Inc.
|
2010-03-26 20:49:55 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-03-09 23:56:38 +00:00
|
|
|
License along with the GNU C Library. If not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
2010-03-26 20:49:55 +00:00
|
|
|
|
2012-02-08 19:43:50 +00:00
|
|
|
#ifndef _KERNEL_FEATURES_H
|
|
|
|
#define _KERNEL_FEATURES_H 1
|
|
|
|
|
2010-03-26 20:49:55 +00:00
|
|
|
#include_next <kernel-features.h>
|
|
|
|
|
2012-02-08 19:43:50 +00:00
|
|
|
/* There never has been support for fstat64. */
|
|
|
|
#undef __ASSUME_STATFS64
|
|
|
|
#define __ASSUME_STATFS64 0
|
|
|
|
|
2016-10-26 20:04:48 +00:00
|
|
|
/* Alpha defines SysV ipc shmat syscall with a different name. */
|
|
|
|
#define __NR_shmat __NR_osf_shmat
|
|
|
|
|
2017-03-06 14:13:03 +00:00
|
|
|
#define __ASSUME_RECV_SYSCALL 1
|
2017-03-12 20:23:52 +00:00
|
|
|
#define __ASSUME_SEND_SYSCALL 1
|
2016-11-17 20:47:00 +00:00
|
|
|
|
2018-07-05 16:59:02 +00:00
|
|
|
/* Support for the renameat2 syscall was added in 3.17. */
|
|
|
|
#if __LINUX_KERNEL_VERSION < 0x031100
|
|
|
|
# undef __ASSUME_RENAMEAT2
|
|
|
|
#endif
|
|
|
|
|
2017-09-06 15:29:29 +00:00
|
|
|
/* Support for the execveat syscall was added in 4.2. */
|
|
|
|
#if __LINUX_KERNEL_VERSION < 0x040200
|
|
|
|
# undef __ASSUME_EXECVEAT
|
|
|
|
#endif
|
|
|
|
|
2018-07-24 19:03:04 +00:00
|
|
|
/* Support for copy_file_range, statx was added in kernel 4.13. */
|
2018-07-10 14:14:45 +00:00
|
|
|
#if __LINUX_KERNEL_VERSION < 0x040D00
|
2018-07-24 19:03:04 +00:00
|
|
|
# undef __ASSUME_MLOCK2
|
|
|
|
# undef __ASSUME_COPY_FILE_RANGE
|
2018-07-10 14:14:45 +00:00
|
|
|
# undef __ASSUME_STATX
|
|
|
|
#endif
|
|
|
|
|
2012-02-08 19:43:50 +00:00
|
|
|
#endif /* _KERNEL_FEATURES_H */
|