Adjust kernel-features.h defaults for socket syscalls.
[glibc.git] / sysdeps / unix / sysv / linux / microblaze / kernel-features.h
blob3938989f88fc643ed980121b4d5d9d4670f6ecf9
1 /* Copyright (C) 2011-2016 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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/>. */
19 /* MicroBlaze uses socketcall. */
20 #define __ASSUME_SOCKETCALL 1
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_ACCEPT_SYSCALL 1
28 #define __ASSUME_GETSOCKNAME_SYSCALL 1
29 #define __ASSUME_GETPEERNAME_SYSCALL 1
30 #define __ASSUME_SOCKETPAIR_SYSCALL 1
31 #define __ASSUME_SEND_SYSCALL 1
32 #define __ASSUME_SENDTO_SYSCALL 1
33 #define __ASSUME_RECV_SYSCALL 1
34 #define __ASSUME_RECVFROM_SYSCALL 1
35 #define __ASSUME_SHUTDOWN_SYSCALL 1
36 #define __ASSUME_GETSOCKOPT_SYSCALL 1
37 #define __ASSUME_SETSOCKOPT_SYSCALL 1
38 #define __ASSUME_SENDMSG_SYSCALL 1
39 #define __ASSUME_RECVMSG_SYSCALL 1
41 /* Support for the accept4 and recvmmsg syscalls was added in 2.6.33. */
42 #define __ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL 1
44 /* Support for the futimesat syscall was added in 2.6.33. */
45 #define __ASSUME_FUTIMESAT 1
47 #include_next <kernel-features.h>
49 /* Support for the pselect6, preadv and pwritev syscalls was added in
50 3.15. */
51 #if __LINUX_KERNEL_VERSION < 0x030f00
52 # undef __ASSUME_PSELECT
53 # undef __ASSUME_PREADV
54 # undef __ASSUME_PWRITEV
55 #endif
57 /* Support for the sendmmsg syscall was added in 3.3. */
58 #if __LINUX_KERNEL_VERSION < 0x030300
59 # undef __ASSUME_SENDMMSG_SYSCALL
60 #endif