summary refs log tree commit diff
path: root/sysdeps/gnu
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-22 14:14:28 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-22 14:14:28 +0000
commitd480547e995bccb6c33a166869897dd396357cef (patch)
tree65c23b7d9ef7fcc0619447aa91aceb898ceb179e /sysdeps/gnu
parentbd4848fb22d5125ef9717b152097d26c855682f4 (diff)
downloadglibc-d480547e995bccb6c33a166869897dd396357cef.tar.gz
glibc-d480547e995bccb6c33a166869897dd396357cef.tar.xz
glibc-d480547e995bccb6c33a166869897dd396357cef.zip
Update.
	* sysdeps/gnu/errlist.awk: Mark ENOTSUP as alias for EOPNOTSUPP.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r--sysdeps/gnu/errlist.awk3
-rw-r--r--sysdeps/gnu/errlist.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk
index b40606a696..b97f078910 100644
--- a/sysdeps/gnu/errlist.awk
+++ b/sysdeps/gnu/errlist.awk
@@ -1,4 +1,4 @@
-# Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
+# Copyright (C) 1991,92,93,94,95,96,97,98,99 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
@@ -27,6 +27,7 @@
 BEGIN {
     alias["EWOULDBLOCK"] = "EAGAIN";
     alias["EDEADLOCK"] = "EDEADLK";
+    alias["ENOTSUP"] = "EOPNOTSUPP";
 
     print "/* This file is generated from errno.texi by errlist.awk.  */"
     print "";
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
index 80a7c88dc5..c718773d52 100644
--- a/sysdeps/gnu/errlist.c
+++ b/sysdeps/gnu/errlist.c
@@ -574,7 +574,7 @@ TRANS particular function will always fail with @code{ENOSYS} unless you
 TRANS install a new version of the C library or the operating system. */
     [ERR_REMAP (ENOSYS)] = N_("Function not implemented"),
 #endif
-#ifdef ENOTSUP
+#if defined (ENOTSUP) && ENOTSUP != EOPNOTSUPP
 /*
 TRANS Not supported.  A function returns this error when certain parameter
 TRANS values are valid, but the functionality they request is not available.