Add Changelog ...
[glibc.git] / sysdeps / unix / sysv / linux / alpha / kernel-features.h
blob3eaa422b126fd41db6f3ef46f8675400033ebf3c
1 /* Set flags signalling availability of kernel features based on given
2 kernel version number.
3 Copyright (C) 2010-2012 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 /* The tgkill syscall was introduced for alpha 2.6.0-test1 which unfortunately
24 cannot be distinguished from 2.6.0. */
25 #if __LINUX_KERNEL_VERSION >= 132609
26 # define __ASSUME_TGKILL 1
27 #endif
29 /* Starting with version 2.6.4, the stat64 syscalls are available. */
30 #if __LINUX_KERNEL_VERSION >= 0x020604 && defined __alpha__
31 # define __ASSUME_STAT64_SYSCALL 1
32 #endif
34 #define __ASSUME_UTIMES 1
36 /* Starting with version 2.6.9, SSI_IEEE_RAISE_EXCEPTION exists. */
37 #if __LINUX_KERNEL_VERSION >= 0x020609
38 # define __ASSUME_IEEE_RAISE_EXCEPTION 1
39 #endif
41 /* Support for the O_CLOEXEC flag was added for alpha in 2.6.23. */
42 #if __LINUX_KERNEL_VERSION >= 0x020617
43 # define __ASSUME_O_CLOEXEC 1
44 #endif
46 /* Support for various CLOEXEC and NONBLOCK flags was added for alpha after
47 2.6.33-rc1. */
48 #if __LINUX_KERNEL_VERSION >= 0x020621
49 # define __ASSUME_SOCK_CLOEXEC 1
50 # define __ASSUME_IN_NONBLOCK 1
51 #endif
53 /* Support for the pipe2, eventfd2, signalfd4 syscalls was added for alpha
54 after 2.6.33-rc1. */
55 #if __LINUX_KERNEL_VERSION >= 0x020621
56 # define __ASSUME_PIPE2 1
57 # define __ASSUME_EVENTFD2 1
58 # define __ASSUME_SIGNALFD4 1
59 #endif
61 /* Support for accept4 was added for alpha after 2.6.33-rc1. */
62 #if __LINUX_KERNEL_VERSION >= 0x020621
63 # define __ASSUME_ACCEPT4 1
64 #endif
66 #include_next <kernel-features.h>
68 #undef __ASSUME_ST_INO_64_BIT
70 /* pselect/ppoll were introduced on alpha just after 2.6.22-rc1. */
71 #if __LINUX_KERNEL_VERSION < 0x020617
72 # undef __ASSUME_PSELECT
73 # undef __ASSUME_PPOLL
74 #endif
76 /* The *at syscalls were introduced on alpha just after 2.6.22-rc1. */
77 #if __LINUX_KERNEL_VERSION < 0x020617
78 # undef __ASSUME_ATFCTS
79 #endif
81 /* Support for inter-process robust mutexes was added on alpha just
82 after 2.6.22-rc1. */
83 #if __LINUX_KERNEL_VERSION < 0x020617
84 # undef __ASSUME_SET_ROBUST_LIST
85 #endif
87 /* Support for utimensat was added on alpha after 2.6.22-rc1. */
88 #if __LINUX_KERNEL_VERSION < 0x020617
89 # undef __ASSUME_UTIMENSAT
90 #endif
92 /* Support for fallocate was added for alpha after 2.6.33-rc1. */
93 #if __LINUX_KERNEL_VERSION < 0x020621
94 # undef __ASSUME_FALLOCATE
95 #endif
97 /* There never has been support for fstat64. */
98 #undef __ASSUME_STATFS64
99 #define __ASSUME_STATFS64 0
101 #endif /* _KERNEL_FEATURES_H */