Fix __ASSUME_PREADV and __ASSUME_PWRITEV for Alpha and MicroBlaze (bug 16649).
[glibc.git] / sysdeps / unix / sysv / linux / microblaze / kernel-features.h
blobf9a61a941576ebeeae9fd9e87f248e1637fea68b
1 /* Copyright (C) 2011-2014 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 /* MicroBlaze glibc support starts with 2.6.30, guaranteeing many kernel features. */
23 #define __ASSUME_UTIMES 1
24 #define __ASSUME_O_CLOEXEC 1
25 #define __ASSUME_SOCK_CLOEXEC 1
26 #define __ASSUME_IN_NONBLOCK 1
27 #define __ASSUME_PIPE2 1
28 #define __ASSUME_EVENTFD2 1
29 #define __ASSUME_SIGNALFD4 1
30 #define __ASSUME_DUP3 1
32 /* Support for the accept4 and recvmmsg syscalls was added in 2.6.33. */
33 #if __LINUX_KERNEL_VERSION >= 0x020621
34 # define __ASSUME_ACCEPT4_SYSCALL 1
35 # define __ASSUME_RECVMMSG_SYSCALL 1
36 #endif
37 #define __ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL 1
39 /* Support for the sendmmsg syscall was added in 3.3. */
40 #if __LINUX_KERNEL_VERSION >= 0x030300
41 # define __ASSUME_SENDMMSG_SYSCALL 1
42 #endif
44 #include_next <kernel-features.h>
46 /* The MicroBlaze kernel does not support the pselect6, preadv and
47 pwritev syscalls. */
48 #undef __ASSUME_PSELECT
49 #undef __ASSUME_PREADV
50 #undef __ASSUME_PWRITEV