Add Changelog ...
[glibc.git] / sysdeps / unix / sysv / linux / hppa / bits / errno.h
blob2487739e358cb57d4848fd5ed9d23119cf4b5117
1 /* Error constants. Linux/HPPA specific version.
2 Copyright (C) 1996,1997,1998,1999,2000,2002 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
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.
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
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library. If not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifdef _ERRNO_H
21 # undef EDOM
22 # undef EILSEQ
23 # undef ERANGE
24 # include <linux/errno.h>
26 /* Linux also has no ECANCELED error code. Since it is not used here
27 we define it to an invalid value. */
28 # ifndef ECANCELED
29 # define ECANCELED ECANCELLED
30 # endif
32 # ifndef EOWNERDEAD
33 # define EOWNERDEAD 254
34 # endif
36 # ifndef ENOTRECOVERABLE
37 # define ENOTRECOVERABLE 255
38 # endif
40 # ifndef ERFKILL
41 # define ERFKILL 256
42 # endif
44 # ifndef __ASSEMBLER__
45 /* Function to get address of global `errno' variable. */
46 extern int *__errno_location (void) __THROW __attribute__ ((__const__));
48 # if !defined _LIBC || defined _LIBC_REENTRANT
49 /* When using threads, errno is a per-thread value. */
50 # define errno (*__errno_location ())
51 # endif
52 # endif /* !__ASSEMBLER__ */
53 #endif /* _ERRNO_H */
55 #if !defined _ERRNO_H && defined __need_Emath
56 /* This is ugly but the kernel header is not clean enough. We must
57 define only the values EDOM, EILSEQ and ERANGE in case __need_Emath is
58 defined. */
59 # define EDOM 33 /* Math argument out of domain of function. */
60 # define EILSEQ 47 /* Illegal byte sequence. */
61 # define ERANGE 34 /* Math result not representable. */
62 #endif /* !_ERRNO_H && __need_Emath */