Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / microblaze / kernel-features.h
blobfaaee6d680872f84d64fb90d44423620f66d578c
1 /* Copyright (C) 2011-2015 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 /* Support for the accept4 and recvmmsg syscalls was added in 2.6.33. */
23 #if __LINUX_KERNEL_VERSION >= 0x020621
24 # define __ASSUME_ACCEPT4_SYSCALL 1
25 # define __ASSUME_RECVMMSG_SYSCALL 1
26 #endif
27 #define __ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL 1
29 /* Support for the sendmmsg syscall was added in 3.3. */
30 #if __LINUX_KERNEL_VERSION >= 0x030300
31 # define __ASSUME_SENDMMSG_SYSCALL 1
32 #endif
34 /* Support for the futimesat syscall was added in 2.6.33. */
35 #if __LINUX_KERNEL_VERSION >= 0x020621
36 # define __ASSUME_FUTIMESAT 1
37 #endif
39 #include_next <kernel-features.h>
41 /* Support for futex_atomic_cmpxchg_inatomic was added in 2.6.33. */
42 #if __LINUX_KERNEL_VERSION < 0x020621
43 # undef __ASSUME_FUTEX_LOCK_PI
44 # undef __ASSUME_REQUEUE_PI
45 # undef __ASSUME_SET_ROBUST_LIST
46 #endif
48 /* Support for the pselect6, preadv and pwritev syscalls was added in
49 3.15. */
50 #if __LINUX_KERNEL_VERSION < 0x030f00
51 # undef __ASSUME_PSELECT
52 # undef __ASSUME_PREADV
53 # undef __ASSUME_PWRITEV
54 #endif