]> sourceware.org Git - glibc.git/commitdiff
1999-01-23 Roland McGrath <roland@baalperazim.frob.com>
authorRoland McGrath <roland@gnu.org>
Sat, 23 Jan 1999 13:08:38 +0000 (13:08 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 23 Jan 1999 13:08:38 +0000 (13:08 +0000)
* sysdeps/gnu/errlist.awk: Add comment.

sysdeps/gnu/errlist.awk

index b97f0789106204f8ac45a3f23238113eb6e510f0..0616b0303d780a32f6132c2d425b6db11fce93d9 100644 (file)
 # @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 "";
This page took 0.042252 seconds and 5 git commands to generate.