Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Proposal: new libc/libutil functions to map SIGXXXX <-> "XXXX"



In article <3385.1493397529%andromeda.noi.kre.to@localhost>,
Robert Elz  <kre%munnari.OZ.AU@localhost> wrote:
>    Date:        Fri, 28 Apr 2017 15:31:10 +0000 (UTC)
>    From:        christos%astron.com@localhost (Christos Zoulas)
>    Message-ID:  <odvn7u$235$1%blaine.gmane.org@localhost>
>
>  | Fine, return NULL for no signal number / and -1 for no such signal name.
>
>I think 0 for no name is better, we know there is not (and cannot be) a
>signal 0, but -1 ?   Unlikely, but...   (and besides, people often assume
>that funcs that return -1 to indicate error also set errno, and this does not.)

Signal 0 is special -- unfortunately it does not have a name... Perhaps
"0" <-> 0?

christos



Home | Main Index | Thread Index | Old Index