about summary refs log tree commit diff
path: root/sysdeps/gnu
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-30 01:31:18 +0000
committerRoland McGrath <roland@gnu.org>2002-08-30 01:31:18 +0000
commit7a9ce79a3b0746e0db7d3cc4264a78a9d79620a3 (patch)
tree4a2abc188ca0309eabf51e382a8aed90119c5198 /sysdeps/gnu
parent868b78c83cef264d69a854d9128a68845f346fe3 (diff)
downloadglibc-7a9ce79a3b0746e0db7d3cc4264a78a9d79620a3.tar.gz
glibc-7a9ce79a3b0746e0db7d3cc4264a78a9d79620a3.tar.xz
glibc-7a9ce79a3b0746e0db7d3cc4264a78a9d79620a3.zip
* sysdeps/mach/_strerror.c (__strerror_r): Add libc_hidden_def.
	* sysdeps/mach/hurd/pwrite64.c: No libc_hidden_def (__libc_pwrite64).

	* sysdeps/mach/hurd/dl-sysdep.c (__GI_abort): Define alias for abort.

	* include/assert.h (__assert_perror_fail): Declare it, do hidden_proto.
	* assert/assert-perr.c: Add libc_hidden_def.
	* elf/dl-minimal.c [! NDEBUG] (__assert_perror_fail): New function.

	* sysdeps/gnu/errlist-compat.awk: Don't fail if there are no versions
	found at all.
	* sysdeps/gnu/Versions: File removed.  Moved all #errlist-compat
	sys_errlist stuff to ...
	* sysdeps/unix/sysv/linux/Versions: ... here.

	* mach/mach.h: Include <features.h>.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r--sysdeps/gnu/Versions19
-rw-r--r--sysdeps/gnu/errlist-compat.awk5
2 files changed, 5 insertions, 19 deletions
diff --git a/sysdeps/gnu/Versions b/sysdeps/gnu/Versions
deleted file mode 100644
index 145dd0acae..0000000000
--- a/sysdeps/gnu/Versions
+++ /dev/null
@@ -1,19 +0,0 @@
-libc {
-  # The comment lines with "#errlist-compat" are magic; see errlist-compat.awk.
-  # When you get an error from errlist-compat.awk, you need to add a new
-  # version here.  Don't do this blindly, since this means changing the ABI
-  # for all GNU/Linux configurations.
-
-  GLIBC_2.0 {
-    #errlist-compat	123
-    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
-  }
-  GLIBC_2.1 {
-    #errlist-compat	125
-    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
-  }
-  GLIBC_2.3 {
-    #errlist-compat	126
-    _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
-  }
-}
diff --git a/sysdeps/gnu/errlist-compat.awk b/sysdeps/gnu/errlist-compat.awk
index c9a7a9cc44..4ab9786e63 100644
--- a/sysdeps/gnu/errlist-compat.awk
+++ b/sysdeps/gnu/errlist-compat.awk
@@ -52,6 +52,11 @@ $1 == "#errlist-compat" {
 }
 
 END {
+  if (! highest_version) {
+    print "/* No sys_errlist/sys_nerr symbols defined on this platform.  */";
+    exit 0;
+  }
+
   count = maxerr + 1;
 
   if (highest != count) {