]>
Commit | Line | Data |
---|---|---|
dff8da6b | 1 | /* Copyright (C) 2011-2024 Free Software Foundation, Inc. |
7756ba9d DH |
2 | This file is part of the GNU C Library. |
3 | ||
4 | The GNU C Library is free software; you can redistribute it and/or | |
5 | modify it under the terms of the GNU Lesser General Public | |
6 | License as published by the Free Software Foundation; either | |
7 | version 2.1 of the License, or (at your option) any later version. | |
8 | ||
9 | The GNU C Library is distributed in the hope that it will be useful, | |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | Lesser General Public License for more details. | |
13 | ||
14 | You should have received a copy of the GNU Lesser General Public | |
15 | License along with the GNU C Library. If not, see | |
5a82c748 | 16 | <https://www.gnu.org/licenses/>. */ |
7756ba9d | 17 | |
2f959dfe | 18 | #include <endian.h> |
7756ba9d | 19 | |
e5a5315e | 20 | /* All supported kernel versions for MicroBlaze have these syscalls. */ |
e5a5315e | 21 | #define __ASSUME_CONNECT_SYSCALL 1 |
e5a5315e | 22 | #define __ASSUME_SEND_SYSCALL 1 |
e5a5315e | 23 | #define __ASSUME_RECV_SYSCALL 1 |
e5a5315e | 24 | |
7756ba9d | 25 | #include_next <kernel-features.h> |
abe6d90c | 26 | |
b0cb3096 JM |
27 | /* Support for the pselect6, preadv and pwritev syscalls was added in |
28 | 3.15. */ | |
29 | #if __LINUX_KERNEL_VERSION < 0x030f00 | |
30 | # undef __ASSUME_PSELECT | |
31 | # undef __ASSUME_PREADV | |
32 | # undef __ASSUME_PWRITEV | |
33 | #endif | |
35ade9f1 JM |
34 | |
35 | /* Support for the sendmmsg syscall was added in 3.3. */ | |
36 | #if __LINUX_KERNEL_VERSION < 0x030300 | |
37 | # undef __ASSUME_SENDMMSG_SYSCALL | |
38 | #endif | |
43ffc53a | 39 | |
d6da5cb6 FW |
40 | /* Support for the renameat2 syscall was added in 3.17. */ |
41 | #if __LINUX_KERNEL_VERSION < 0x031100 | |
42 | # undef __ASSUME_RENAMEAT2 | |
43 | #endif | |
44 | ||
43ffc53a AS |
45 | /* Support for the execveat syscall was added in 4.0. */ |
46 | #if __LINUX_KERNEL_VERSION < 0x040000 | |
47 | # undef __ASSUME_EXECVEAT | |
48 | #endif | |
b7ccb5de | 49 | |
596cc360 JM |
50 | /* Support for the mlock2 syscall was added in 4.7. */ |
51 | #if __LINUX_KERNEL_VERSION < 0x040700 | |
52 | # undef __ASSUME_MLOCK2 | |
53 | #endif | |
54 | ||
fd70af45 FW |
55 | /* Support for statx was added in kernel 4.12. */ |
56 | #if __LINUX_KERNEL_VERSION < 0X040C00 | |
57 | # undef __ASSUME_STATX | |
58 | #endif | |
59 | ||
3dc21497 AZ |
60 | #undef __ASSUME_CLONE_DEFAULT |
61 | #define __ASSUME_CLONE_BACKWARDS3 | |
2f959dfe AZ |
62 | |
63 | #if __BYTE_ORDER == __BIG_ENDIAN | |
64 | # define __ASSUME_SYSVIPC_BROKEN_MODE_T | |
65 | #endif | |
06436acf | 66 | #undef __ASSUME_SYSVIPC_DEFAULT_IPC_64 |