]> git.ipfire.org Git - thirdparty/glibc.git/blame - ports/sysdeps/unix/sysv/linux/alpha/kernel-features.h
Remove trailing whitespace in ports.
[thirdparty/glibc.git] / ports / sysdeps / unix / sysv / linux / alpha / kernel-features.h
CommitLineData
b14e8cb2
MT
1/* Set flags signalling availability of kernel features based on given
2 kernel version number.
568035b7 3 Copyright (C) 2010-2013 Free Software Foundation, Inc.
b14e8cb2
MT
4 This file is part of the GNU C Library.
5
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.
10
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.
15
16 You should have received a copy of the GNU Lesser General Public
ab84e3ff
PE
17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
b14e8cb2 19
fe7b738e
RH
20#ifndef _KERNEL_FEATURES_H
21#define _KERNEL_FEATURES_H 1
22
b14e8cb2
MT
23#define __ASSUME_UTIMES 1
24
742c00d3
MT
25/* Support for the O_CLOEXEC flag was added for alpha in 2.6.23. */
26#if __LINUX_KERNEL_VERSION >= 0x020617
27# define __ASSUME_O_CLOEXEC 1
28#endif
29
30/* Support for various CLOEXEC and NONBLOCK flags was added for alpha after
31 2.6.33-rc1. */
32#if __LINUX_KERNEL_VERSION >= 0x020621
33# define __ASSUME_SOCK_CLOEXEC 1
34# define __ASSUME_IN_NONBLOCK 1
35#endif
36
5556231d 37/* Support for the pipe2, eventfd2, signalfd4 syscalls was added for alpha
742c00d3
MT
38 after 2.6.33-rc1. */
39#if __LINUX_KERNEL_VERSION >= 0x020621
40# define __ASSUME_PIPE2 1
41# define __ASSUME_EVENTFD2 1
42# define __ASSUME_SIGNALFD4 1
43#endif
44
45/* Support for accept4 was added for alpha after 2.6.33-rc1. */
46#if __LINUX_KERNEL_VERSION >= 0x020621
47# define __ASSUME_ACCEPT4 1
48#endif
49
b14e8cb2
MT
50#include_next <kernel-features.h>
51
52#undef __ASSUME_ST_INO_64_BIT
53
54/* pselect/ppoll were introduced on alpha just after 2.6.22-rc1. */
55#if __LINUX_KERNEL_VERSION < 0x020617
56# undef __ASSUME_PSELECT
57# undef __ASSUME_PPOLL
58#endif
59
60/* The *at syscalls were introduced on alpha just after 2.6.22-rc1. */
61#if __LINUX_KERNEL_VERSION < 0x020617
62# undef __ASSUME_ATFCTS
63#endif
64
65/* Support for inter-process robust mutexes was added on alpha just
66 after 2.6.22-rc1. */
67#if __LINUX_KERNEL_VERSION < 0x020617
68# undef __ASSUME_SET_ROBUST_LIST
69#endif
70
71/* Support for utimensat was added on alpha after 2.6.22-rc1. */
72#if __LINUX_KERNEL_VERSION < 0x020617
73# undef __ASSUME_UTIMENSAT
74#endif
75
742c00d3 76/* Support for fallocate was added for alpha after 2.6.33-rc1. */
b14e8cb2
MT
77#if __LINUX_KERNEL_VERSION < 0x020621
78# undef __ASSUME_FALLOCATE
79#endif
fe7b738e
RH
80
81/* There never has been support for fstat64. */
82#undef __ASSUME_STATFS64
83#define __ASSUME_STATFS64 0
84
563c8405
MF
85/* Support for fsyncdata was added for alpha after 2.6.21. */
86#if __LINUX_KERNEL_VERSION >= 0x020616
87# define __ASSUME_FDATASYNC 1
88#endif
89
fe7b738e 90#endif /* _KERNEL_FEATURES_H */