| Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| */ |
*/ |
| |
|
| |
#include "config.h" |
| #include <stdio.h> |
#include <stdio.h> |
| #include <signal.h> |
#include <signal.h> |
| |
|
| static char errbuf[16]; |
static char errbuf[16]; |
| |
|
| #if defined(HAVE_SYS_SIGLIST) && defined(NSIG) |
#if defined(HAVE_SYS_SIGLIST) && defined(NSIG) |
| extern char *sys_siglist[]; |
#if defined(DECLARE_SYS_SIGLIST) |
| |
extern const char * const sys_siglist[]; |
| |
#endif |
| if (sig>0 && sig<NSIG) |
if (sig>0 && sig<NSIG) |
| return sys_siglist[sig]; |
return sys_siglist[sig]; |
| #endif |
#endif /* defined(HAVE_SYS_SIGLIST) && defined(NSIG) */ |
| sprintf(errbuf,"signal %d",sig); |
sprintf(errbuf,"signal %d",sig); |
| return errbuf; |
return errbuf; |
| } |
} |