Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: System error names, again.
- X-seq: zsh-workers 23471
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: System error names, again.
- Date: Sat, 26 May 2007 21:15:16 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
The generation of names for system errors is broken on Linux again.
We restrict the list of files which may contain error
number definitions to the longest list yet found. This means
asm-generic/errno-base.h doesn't get included.
I don't think that test is necessary, but have a careful look to see if
this is broken on any system (Src/Modules/errnames.c; you may have to
remove it to regenerate it).
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.62
diff -u -r1.62 configure.ac
--- configure.ac 1 May 2007 22:05:03 -0000 1.62
+++ configure.ac 26 May 2007 20:15:00 -0000
@@ -1325,7 +1325,6 @@
$AWK '{ if ($1 ~ /err/) files[[$1]] = $1 }
END { for (var in files) print var }'`"
rm -f nametmp.c
-lnerrs=0
for ERRNO_TRY_H in $errfile_list /dev/null
do
dnl Try to make sure it doesn't get confused by files that don't
@@ -1337,9 +1336,8 @@
nerrs=`test -f $ERRNO_TRY_H && \
$EGREP '#[ ]*define[ ][ ]*E[0-9A-Z]*[ ]*(_HURD_ERRNO )?\(?[_A-Z0-9]' $ERRNO_TRY_H | \
wc -l | sed 's/[ ]//g'`
- if test "x$nerrs" != x && test "$nerrs" -ge 1 && test "$nerrs" -gt "$lnerrs"
+ if test "x$nerrs" != x && test "$nerrs" -ge 1
then
- lnerrs=$nerrs
ERRNO_H="$ERRNO_H $ERRNO_TRY_H"
fi
done
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author