summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/errno.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-22 18:53:56 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-22 18:53:56 +0000
commit3660cedc33f9a99e66906233f59f2de479d9a21b (patch)
treeec19e74df62a63d10f6a880c291d117f3cad0292 /libc/sysdeps/linux/common/bits/errno.h
parentda59b78c3ccde22906b53913a0e84408d4c37db4 (diff)
Rework errno handling to be kernel header free
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/bits/errno.h')
-rw-r--r--libc/sysdeps/linux/common/bits/errno.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h
index 44810f90b..999f34fc5 100644
--- a/libc/sysdeps/linux/common/bits/errno.h
+++ b/libc/sysdeps/linux/common/bits/errno.h
@@ -19,10 +19,7 @@
#ifdef _ERRNO_H
-# undef EDOM
-# undef EILSEQ
-# undef ERANGE
-# include <linux/errno.h>
+# include <bits/errno_values.h>
/* Linux has no ENOTSUP error code. */
# define ENOTSUP EOPNOTSUPP
@@ -52,11 +49,3 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__));
# endif /* !__ASSEMBLER__ */
#endif /* _ERRNO_H */
-#if !defined _ERRNO_H && defined __need_Emath
-/* This is ugly but the kernel header is not clean enough. We must
- define only the values EDOM, EILSEQ and ERANGE in case __need_Emath is
- defined. */
-# define EDOM 33 /* Math argument out of domain of function. */
-# define EILSEQ 84 /* Illegal byte sequence. */
-# define ERANGE 34 /* Math result not representable. */
-#endif /* !_ERRNO_H && __need_Emath */