[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: errno --> errno name ?
From: |
Bruno Haible |
Subject: |
Re: errno --> errno name ? |
Date: |
Fri, 5 Aug 2011 02:39:56 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Hi Bruce,
> I fixed up the "mk" script to be more portable
Indeed, that looks like most portability problems have been eliminated.
> tho I haven't tried it on Solaris' /bin/sh.
> Probably won't work. I don't have access.
You can also test it with 'zsh', 'ksh', 'ash', and 'dash' on a glibc system.
If it works with these shells, it will likely also pass with /bin/sh on
various systems.
Now, do you plan to convert this into a gnulib module?
> One interesting thing I discovered:
>
> $ errno . | head -n4 ; echo '[...]';errno . | tail -n4
> looking for matches to: '.'
> 1 (EPERM. . . . . ) == Operation not permitted
> 2 (ENOENT . . . . ) == No such file or directory
> 3 (ESRCH. . . . . ) == No such process
> [...]
> 130 (EOWNERDEAD . . ) == Owner died
> 131 (ENOTRECOVERABLE) == State not recoverable
> 132 (ERFKILL. . . . ) == Unknown error 132
It just means that your libc does not have the string for ERFKILL. This
string was added in glibc/sysdeps/gnu/errlist.c on 2009-11-14.
Bruno
- Re: errno --> errno name ?, Bruce Korb, 2011/08/02
- Re: errno --> errno name ?, Bruce Korb, 2011/08/04
- Re: errno --> errno name ?,
Bruno Haible <=
- Re: errno --> errno name ?, Bruce Korb, 2011/08/05
- Re: errno --> errno name ?, Bruce Korb, 2011/08/05
- Re: errno --> errno name ?, Stefano Lattarini, 2011/08/05
- Re: errno --> errno name ?, Bruce Korb, 2011/08/05
- Re: errno --> errno name ?, Bruce Korb, 2011/08/13
- Re: errno --> errno name ?, Bruno Haible, 2011/08/14
- Re: errno --> errno name ?, Bruce Korb, 2011/08/14
- Re: errno --> errno name ?, Bruno Haible, 2011/08/14
- Re: errno --> errno name ?, Bruce Korb, 2011/08/14
- Re: errno --> errno name ?, Thien-Thi Nguyen, 2011/08/05