diff options
author | Roland McGrath <roland@gnu.org> | 2002-08-27 09:22:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-08-27 09:22:36 +0000 |
commit | 4022d8ed0374121e9f08aaaf657276de0e7642ed (patch) | |
tree | 076faaa602528376dd04e4cac67ca3edae4e8fb9 /sysdeps/mach | |
parent | b2ab1f5df8dac098eea5058f02f4d03c4143d5a2 (diff) | |
download | glibc-4022d8ed0374121e9f08aaaf657276de0e7642ed.tar.gz |
2002-08-26 Roland McGrath <roland@redhat.com>
* sysdeps/gnu/Versions: New file.
* sysdeps/unix/sysv/linux/Versions (libc: GLIBC_2.1): Remove
_sys_errlist; sys_errlist; _sys_nerr; sys_nerr; from here.
* sysdeps/gnu/Makefile ($(..)sysdeps/gnu/errlist-compat.c): New target.
($(objpfx)errlist.d): Depend on $(..)sysdeps/gnu/errlist-compat.c.
* sysdeps/gnu/errlist.awk: Make output define _sys_errlist_internal
and _sys_nerr_internal instead of anything else. Make it include
"errlist-compat.c" if [!NOT_IN_libc && !ERRLIST_NO_COMPAT].
Make it emit some asm magic if [EMIT_ERR_MAX].
* sysdeps/gnu/errlist.c: Regenerated.
* sysdeps/gnu/errlist-compat.awk: New file.
* sysdeps/gnu/errlist-compat.c: New file (generated).
* sysdeps/mach/hurd/errlist.c (ERRLIST_NO_COMPAT): New macro.
(_sys_errlist_internal): Define this as a macro for _hurd_errlist.
(_sys_nerr_internal): Define this is a macro for _hurd_nerr.
(SYS_ERRLIST, SYS_NERR): Macros removed.
(sys_nerr, _sys_nerr): Remove these weak aliases.
* sysdeps/unix/sysv/linux/errlist.c: File removed.
* sysdeps/unix/sysv/linux/errlist.h: File removed.
* sysdeps/unix/sysv/linux/arm/errlist.c: File removed.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/errlist.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sysdeps/mach/hurd/errlist.c b/sysdeps/mach/hurd/errlist.c index 71f7abda1c..fe5709cf6a 100644 --- a/sysdeps/mach/hurd/errlist.c +++ b/sysdeps/mach/hurd/errlist.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998 Free Software Foundation, Inc. +/* Copyright (C) 1998,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,17 +16,14 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -/* SYS_ERRLIST cannot have Unix semantics on the Hurd, so it is easier - just to rename it. We also need to remap error codes to array - indices by taking their subcode. */ -#define SYS_ERRLIST _hurd_errlist -#define SYS_NERR _hurd_nerr +/* sys_errlist cannot have Unix semantics on the Hurd, so it is easier just + to rename it. We also need to remap error codes to array indices by + taking their subcode. */ +#define _sys_errlist_internal _hurd_errlist +#define _sys_nerr_internal _hurd_nerr +#define ERRLIST_NO_COMPAT 1 #include <mach/error.h> #define ERR_REMAP(n) (err_get_code (n)) #include <sysdeps/gnu/errlist.c> - -/* Oblige programs that use sys_nerr, but don't use sys_errlist. */ -weak_alias (_hurd_nerr, sys_nerr) -weak_alias (_hurd_nerr, _sys_nerr) |