aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/gnu
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-01-23 13:08:38 +0000
committerRoland McGrath <roland@gnu.org>1999-01-23 13:08:38 +0000
commitc0d9fffd58bd33e757980216d789921f9c0fa5a3 (patch)
treee6e3f6ea266c3fea3bd1428d0c1ca50254ed06f0 /sysdeps/gnu
parentd26bda6b531ac531352d91c9c3ac7942ac4ffd58 (diff)
downloadglibc-c0d9fffd58bd33e757980216d789921f9c0fa5a3.zip
glibc-c0d9fffd58bd33e757980216d789921f9c0fa5a3.tar.gz
glibc-c0d9fffd58bd33e757980216d789921f9c0fa5a3.tar.bz2
1999-01-23 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/gnu/errlist.awk: Add comment.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r--sysdeps/gnu/errlist.awk14
1 files changed, 11 insertions, 3 deletions
diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk
index b97f078..0616b03 100644
--- a/sysdeps/gnu/errlist.awk
+++ b/sysdeps/gnu/errlist.awk
@@ -25,9 +25,17 @@
# @end deftypevr
BEGIN {
- alias["EWOULDBLOCK"] = "EAGAIN";
- alias["EDEADLOCK"] = "EDEADLK";
- alias["ENOTSUP"] = "EOPNOTSUPP";
+
+ # Here we list the E* names that might be duplicate names for the
+ # same integer value on some systems. This causes the code below
+ # to generate ``#if defined (ALIAS) && ALIAS != ORIGINAL'' in the code,
+ # so the output does not presume that these are in fact aliases.
+ # We list here all the known potential cases on any system,
+ # so that the C source we produce will do the right thing based
+ # on the actual #define'd values it's compiled with.
+ alias["EWOULDBLOCK"]= "EAGAIN";
+ alias["EDEADLOCK"] = "EDEADLK";
+ alias["ENOTSUP"] = "EOPNOTSUPP";
print "/* This file is generated from errno.texi by errlist.awk. */"
print "";