bug-mailutils
[Top][All Lists]
Advanced

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

Re: sys_siglist compatibility.


From: Jeff Bailey
Subject: Re: sys_siglist compatibility.
Date: Mon, 21 May 2001 21:37:13 -0700
User-agent: Mutt/1.2.5i

On Tue, May 22, 2001 at 12:25:01AM -0400, Alain Magloire wrote:

> > Here are some observations:
> > 1. sys_siglist[], referenced in imap4d/signal.c might not be defined on
> > some systems.
> 
> This was not suppose to be here but leftover from a debuging session.  But now
> that you propose a patch .. ok.  Since it is practicle to have a
> human readable message then the cryptic "Exiting on signal 3".
> 
> Applied the propose patches with modif to use strsignal() and rename your
> signame.c to strsignal.c for platforms missing it.
> 
> The rationale is that strsignal () provides better/some error checking to
> not over/underflow the sys_siglist [] array.

IIRC: sys_siglist[] is not in POSIX.  strerror() is the best function.
strerror_r() is okay on GLIBC systems.

(This causes me much grief, since Hurd does not provide sys_siglist[])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]