alpha: update kernel-features.h for syscalls added in 2.6.33.
[glibc-ports.git] / sysdeps / unix / sysv / linux / alpha / kernel-features.h
blob0f236a222ae996cb1df334844287439f8628b5c4
1 /* Set flags signalling availability of kernel features based on given
2 kernel version number.
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
19 02111-1307 USA. */
21 /* alpha switched to a 64-bit timeval sometime before 2.2.0. */
22 #if __LINUX_KERNEL_VERSION >= 131584
23 # define __ASSUME_TIMEVAL64 1
24 #endif
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
30 #endif
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
37 #endif
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
42 #endif
44 /* Support for various CLOEXEC and NONBLOCK flags was added for alpha after
45 2.6.33-rc1. */
46 #if __LINUX_KERNEL_VERSION >= 0x020621
47 # define __ASSUME_SOCK_CLOEXEC 1
48 # define __ASSUME_IN_NONBLOCK 1
49 #endif
51 /* Support for the pipe2, eventfd2, signalfd4 syscalls was added for alpha
52 after 2.6.33-rc1. */
53 #if __LINUX_KERNEL_VERSION >= 0x020621
54 # define __ASSUME_PIPE2 1
55 # define __ASSUME_EVENTFD2 1
56 # define __ASSUME_SIGNALFD4 1
57 #endif
59 /* Support for accept4 was added for alpha after 2.6.33-rc1. */
60 #if __LINUX_KERNEL_VERSION >= 0x020621
61 # define __ASSUME_ACCEPT4 1
62 #endif
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
72 #endif
74 /* The *at syscalls were introduced on alpha just after 2.6.22-rc1. */
75 #if __LINUX_KERNEL_VERSION < 0x020617
76 # undef __ASSUME_ATFCTS
77 #endif
79 /* Support for inter-process robust mutexes was added on alpha just
80 after 2.6.22-rc1. */
81 #if __LINUX_KERNEL_VERSION < 0x020617
82 # undef __ASSUME_SET_ROBUST_LIST
83 #endif
85 /* Support for utimensat was added on alpha after 2.6.22-rc1. */
86 #if __LINUX_KERNEL_VERSION < 0x020617
87 # undef __ASSUME_UTIMENSAT
88 #endif
90 /* Support for fallocate was added for alpha after 2.6.33-rc1. */
91 #if __LINUX_KERNEL_VERSION < 0x020621
92 # undef __ASSUME_FALLOCATE
93 #endif