From: drepper Date: Tue, 11 Nov 1997 23:49:22 +0000 (+0000) Subject: EILSEQ is an ISO C error number. X-Git-Tag: libc-ud-971111~19 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=8e127e60e0e02717db5cd0bbd800efd6b2b0d4bd;hp=cd9527ff85e48b54b492e5a6f133443086397d52 EILSEQ is an ISO C error number. --- diff --git a/sysdeps/mach/hurd/bits/errno.h b/sysdeps/mach/hurd/bits/errno.h index beb35ecd9a..c17130d6fd 100644 --- a/sysdeps/mach/hurd/bits/errno.h +++ b/sysdeps/mach/hurd/bits/errno.h @@ -2,7 +2,7 @@ /* The Hurd uses Mach error system 0x10, currently only subsystem 0. */ #ifndef _HURD_ERRNO -#define _HURD_ERRNO(n) ((0x10 << 26) | ((n) & 0x3fff)) +# define _HURD_ERRNO(n) ((0x10 << 26) | ((n) & 0x3fff)) #endif #ifdef _ERRNO_H @@ -293,24 +293,25 @@ enum __error_t_codes }; -#define _HURD_ERRNOS 118 +# define _HURD_ERRNOS 118 /* User-visible type of error codes. It is ok to use `int' or `kern_return_t' for these, but with `error_t' the debugger prints symbolic values. */ -#ifdef __USE_GNU +# ifdef __USE_GNU typedef enum __error_t_codes error_t; -#define __error_t_defined 1 -#endif +# define __error_t_defined 1 +# endif /* errno is a per-thread variable. */ -#include -#define errno (*__hurd_errno_location ()) -#define __set_errno(val) errno = (val) +# include +# define errno (*__hurd_errno_location ()) +# define __set_errno(val) errno = (val) #endif /* included. */ -#if !defined (_ERRNO_H) && defined (__need_Emath) -#define EDOM _HURD_ERRNO (33)/* Numerical argument out of domain */ -#define ERANGE _HURD_ERRNO (34)/* Numerical result out of range */ +#if !defined _ERRNO_H && defined __need_Emath +# define EDOM _HURD_ERRNO (33)/* Numerical argument out of domain */ +# define EILSEQ _HURD_ERRNO (106)/* Invalid or incomplete multibyte or wide character */ +# define ERANGE _HURD_ERRNO (34)/* Numerical result out of range */ #endif /* not included and need math error codes. */