|
Packit |
6c4009 |
/* Set flags signalling availability of kernel features based on given
|
|
Packit |
6c4009 |
kernel version number.
|
|
Packit |
6c4009 |
Copyright (C) 2010-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library. If not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _KERNEL_FEATURES_H
|
|
Packit |
6c4009 |
#define _KERNEL_FEATURES_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include_next <kernel-features.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#undef __ASSUME_ST_INO_64_BIT
|
|
Packit |
6c4009 |
#define __ASSUME_ST_INO_64_BIT 0
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* There never has been support for fstat64. */
|
|
Packit |
6c4009 |
#undef __ASSUME_STATFS64
|
|
Packit |
6c4009 |
#define __ASSUME_STATFS64 0
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Alpha defines SysV ipc shmat syscall with a different name. */
|
|
Packit |
6c4009 |
#define __NR_shmat __NR_osf_shmat
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define __ASSUME_RECV_SYSCALL 1
|
|
Packit |
6c4009 |
#define __ASSUME_SEND_SYSCALL 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Support for the renameat2 syscall was added in 3.17. */
|
|
Packit |
6c4009 |
#if __LINUX_KERNEL_VERSION < 0x031100
|
|
Packit |
6c4009 |
# undef __ASSUME_RENAMEAT2
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Support for the execveat syscall was added in 4.2. */
|
|
Packit |
6c4009 |
#if __LINUX_KERNEL_VERSION < 0x040200
|
|
Packit |
6c4009 |
# undef __ASSUME_EXECVEAT
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Support for copy_file_range, statx was added in kernel 4.13. */
|
|
Packit |
6c4009 |
#if __LINUX_KERNEL_VERSION < 0x040D00
|
|
Packit |
6c4009 |
# undef __ASSUME_MLOCK2
|
|
Packit |
6c4009 |
# undef __ASSUME_STATX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* _KERNEL_FEATURES_H */
|