From: "arno." <arno.@no-log.org>
To: zsh-workers@sunsite.dk
Subject: bug in zsh/system : `syserror ENOENT` doesn't work
Date: Fri, 8 Sep 2006 19:01:42 +0200 [thread overview]
Message-ID: <20060908170142.GA32049@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]
Hi,
In module, zsh/system, some symbolic names are not recognized, but are
recognized otherwise by my system (Debian testing)
? zmodload zsh/system
? syserror ENOENT
? echo $?
2
So, I have to refer to them with their number
? syserror E2
No such file or directory
? syserror 2
No such file or directory
errnos are defined on my system in /usr/include/asm-generic/errno.h
and that file contains the line :
#include <asm-generic/errno-base.h>
/usr/include/asm-generic/errno-base contains a few (about 30) errnos
definitions (for example, ENOENT is among them)
At compile time, /usr/include/asm-generic/errno.h is recognized as ERRNO_H
When Src/Modules/errnames1.awk parses it, it outputs errnames only from that file.
If I modify Src/Modules/Makefile by hand
$(AWK) -f $(sdir)/errnames1.awk /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h >errtmp.c; \
instead of
$(AWK) -f $(sdir)/errnames1.awk /usr/include/asm-generic/errno.h >errtmp.c; \
that works, ENOENT and others are recognized
I don't known awk scripting, but may be it is possible to make
errnames1.awk recognize include directives and parse also the second
file ?
Hope that helps
arno
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2006-09-08 17:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-08 17:01 arno. [this message]
2006-09-08 17:53 ` Dan Nelson
2006-09-08 21:50 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060908170142.GA32049@localhost.localdomain \
--to="arno."@no-log.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).