From 4022d8ed0374121e9f08aaaf657276de0e7642ed Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 27 Aug 2002 09:22:36 +0000 Subject: 2002-08-26 Roland McGrath * 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. --- sysdeps/mach/hurd/errlist.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'sysdeps/mach') 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 #define ERR_REMAP(n) (err_get_code (n)) #include - -/* Oblige programs that use sys_nerr, but don't use sys_errlist. */ -weak_alias (_hurd_nerr, sys_nerr) -weak_alias (_hurd_nerr, _sys_nerr) -- cgit v1.2.3