1 /* Set flags signalling availability of kernel features based on given
3 Copyright (C) 2010 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, write to the Free
18 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 /* alpha switched to a 64-bit timeval sometime before 2.2.0. */
22 #if __LINUX_KERNEL_VERSION >= 131584
23 # define __ASSUME_TIMEVAL64 1
26 /* The tgkill syscall was introduced for alpha 2.6.0-test1 which unfortunately
27 cannot be distinguished from 2.6.0. */
28 #if __LINUX_KERNEL_VERSION >= 132609
29 # define __ASSUME_TGKILL 1
32 #define __ASSUME_UTIMES 1
34 /* Starting with version 2.6.9, SSI_IEEE_RAISE_EXCEPTION exists. */
35 #if __LINUX_KERNEL_VERSION >= 0x020609
36 # define __ASSUME_IEEE_RAISE_EXCEPTION 1
39 /* Support for the O_CLOEXEC flag was added for alpha in 2.6.23. */
40 #if __LINUX_KERNEL_VERSION >= 0x020617
41 # define __ASSUME_O_CLOEXEC 1
44 /* Support for various CLOEXEC and NONBLOCK flags was added for alpha after
46 #if __LINUX_KERNEL_VERSION >= 0x020621
47 # define __ASSUME_SOCK_CLOEXEC 1
48 # define __ASSUME_IN_NONBLOCK 1
51 /* Support for the pipe2, eventfd2, signalfd4 syscalls was added for alpha
53 #if __LINUX_KERNEL_VERSION >= 0x020621
54 # define __ASSUME_PIPE2 1
55 # define __ASSUME_EVENTFD2 1
56 # define __ASSUME_SIGNALFD4 1
59 /* Support for accept4 was added for alpha after 2.6.33-rc1. */
60 #if __LINUX_KERNEL_VERSION >= 0x020621
61 # define __ASSUME_ACCEPT4 1
64 #include_next <kernel-features.h>
66 #undef __ASSUME_ST_INO_64_BIT
68 /* pselect/ppoll were introduced on alpha just after 2.6.22-rc1. */
69 #if __LINUX_KERNEL_VERSION < 0x020617
70 # undef __ASSUME_PSELECT
71 # undef __ASSUME_PPOLL
74 /* The *at syscalls were introduced on alpha just after 2.6.22-rc1. */
75 #if __LINUX_KERNEL_VERSION < 0x020617
76 # undef __ASSUME_ATFCTS
79 /* Support for inter-process robust mutexes was added on alpha just
81 #if __LINUX_KERNEL_VERSION < 0x020617
82 # undef __ASSUME_SET_ROBUST_LIST
85 /* Support for utimensat was added on alpha after 2.6.22-rc1. */
86 #if __LINUX_KERNEL_VERSION < 0x020617
87 # undef __ASSUME_UTIMENSAT
90 /* Support for fallocate was added for alpha after 2.6.33-rc1. */
91 #if __LINUX_KERNEL_VERSION < 0x020621
92 # undef __ASSUME_FALLOCATE