]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/bits/errno.h
Update copyright dates with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / bits / errno.h
CommitLineData
19361cb7 1/* Error constants. Linux specific version.
2b778ceb 2 Copyright (C) 1996-2021 Free Software Foundation, Inc.
f0e44959 3 This file is part of the GNU C Library.
edf5b2d7 4
f0e44959 5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
edf5b2d7 9
f0e44959
UD
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
edf5b2d7 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6 16 License along with the GNU C Library; if not, see
5a82c748 17 <https://www.gnu.org/licenses/>. */
edf5b2d7 18
fd860eaa
ZW
19#ifndef _BITS_ERRNO_H
20#define _BITS_ERRNO_H 1
21
22#if !defined _ERRNO_H
23# error "Never include <bits/errno.h> directly; use <errno.h> instead."
24#endif
11336c16 25
ba1ffaa1 26# include <linux/errno.h>
edf5b2d7 27
fd860eaa
ZW
28/* Older Linux headers do not define these constants. */
29# ifndef ENOTSUP
30# define ENOTSUP EOPNOTSUPP
31# endif
4959e310 32
5fe14d96 33# ifndef ECANCELED
fd860eaa 34# define ECANCELED 125
5fe14d96 35# endif
4bae5567 36
9333ed0d
UD
37# ifndef EOWNERDEAD
38# define EOWNERDEAD 130
fd860eaa
ZW
39# endif
40
41#ifndef ENOTRECOVERABLE
9333ed0d
UD
42# define ENOTRECOVERABLE 131
43# endif
44
0079dd23
UD
45# ifndef ERFKILL
46# define ERFKILL 132
47# endif
48
7638c0fd
AS
49# ifndef EHWPOISON
50# define EHWPOISON 133
51# endif
52
fd860eaa 53#endif /* bits/errno.h. */