From 3660cedc33f9a99e66906233f59f2de479d9a21b Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 22 Aug 2002 18:53:56 +0000 Subject: Rework errno handling to be kernel header free -Erik --- libc/sysdeps/linux/common/bits/errno.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libc/sysdeps/linux/common/bits/errno.h') 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 +# include /* 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 */ -- cgit v1.2.3