Update copyright dates with scripts/update-copyrights.
[glibc.git] / sysdeps / unix / sysv / linux / alpha / kernel-features.h
blob13e1b51348007eb0253facc6c0ef69780848334c
1 /* Set flags signalling availability of kernel features based on given
2 kernel version number.
3 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef _KERNEL_FEATURES_H
21 #define _KERNEL_FEATURES_H 1
23 /* Support for recvmmsg was added for alpha in 2.6.33. */
24 #if __LINUX_KERNEL_VERSION >= 0x020621
25 # define __ASSUME_RECVMMSG_SYSCALL 1
26 #endif
28 /* Support for accept4 and sendmmsg was added for alpha in 3.2. */
29 #if __LINUX_KERNEL_VERSION >= 0x030200
30 # define __ASSUME_ACCEPT4_SYSCALL 1
31 # define __ASSUME_SENDMMSG_SYSCALL 1
32 #endif
34 #include_next <kernel-features.h>
36 #undef __ASSUME_ST_INO_64_BIT
38 /* Support for fallocate was added for alpha after 2.6.33-rc1. */
39 #if __LINUX_KERNEL_VERSION < 0x020621
40 # undef __ASSUME_FALLOCATE
41 #endif
43 /* There never has been support for fstat64. */
44 #undef __ASSUME_STATFS64
45 #define __ASSUME_STATFS64 0
47 /* Support for fsyncdata was added for alpha after 2.6.21. */
48 #define __ASSUME_FDATASYNC 1
50 /* Support for various syscalls was added for alpha in 2.6.33. */
51 #if __LINUX_KERNEL_VERSION < 0x020621
52 # undef __ASSUME_PREADV
53 # undef __ASSUME_PWRITEV
54 # undef __ASSUME_IN_NONBLOCK
55 # undef __ASSUME_PIPE2
56 # undef __ASSUME_EVENTFD2
57 # undef __ASSUME_SIGNALFD4
58 # undef __ASSUME_DUP3
59 #endif
61 #endif /* _KERNEL_FEATURES_H */