]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6575df2a95727b59577bc73f3c70d3b4e0fa0281
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / microblaze / kernel-features.h
1 /* Copyright (C) 2011-2017 Free Software Foundation, Inc.
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
16 <http://www.gnu.org/licenses/>. */
17
18
19 /* MicroBlaze uses socketcall. */
20 #define __ASSUME_SOCKETCALL 1
21
22 /* All supported kernel versions for MicroBlaze have these syscalls. */
23 #define __ASSUME_SOCKET_SYSCALL 1
24 #define __ASSUME_BIND_SYSCALL 1
25 #define __ASSUME_CONNECT_SYSCALL 1
26 #define __ASSUME_LISTEN_SYSCALL 1
27 #define __ASSUME_GETSOCKNAME_SYSCALL 1
28 #define __ASSUME_GETPEERNAME_SYSCALL 1
29 #define __ASSUME_SOCKETPAIR_SYSCALL 1
30 #define __ASSUME_SEND_SYSCALL 1
31 #define __ASSUME_RECV_SYSCALL 1
32 #define __ASSUME_SHUTDOWN_SYSCALL 1
33 #define __ASSUME_GETSOCKOPT_SYSCALL 1
34 #define __ASSUME_SETSOCKOPT_SYSCALL 1
35
36 #include_next <kernel-features.h>
37
38 /* Support for the pselect6, preadv and pwritev syscalls was added in
39 3.15. */
40 #if __LINUX_KERNEL_VERSION < 0x030f00
41 # undef __ASSUME_PSELECT
42 # undef __ASSUME_PREADV
43 # undef __ASSUME_PWRITEV
44 #endif
45
46 /* Support for the sendmmsg syscall was added in 3.3. */
47 #if __LINUX_KERNEL_VERSION < 0x030300
48 # undef __ASSUME_SENDMMSG_SYSCALL
49 #endif
50
51 /* Support for the execveat syscall was added in 4.0. */
52 #if __LINUX_KERNEL_VERSION < 0x040000
53 # undef __ASSUME_EXECVEAT
54 #endif