aboutsummaryrefslogtreecommitdiff
path: root/string/strsignal.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-11 18:44:11 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-11 18:44:11 +0000
commitf81d98d612f857c18abcde8adec601dca663a73f (patch)
treea0f310cf47d4b782bcd8cb085d9c05267cbcc477 /string/strsignal.c
parenta2bde807bfaff3c016183a02a1f6a46764480410 (diff)
downloadglibc-f81d98d612f857c18abcde8adec601dca663a73f.zip
glibc-f81d98d612f857c18abcde8adec601dca663a73f.tar.gz
glibc-f81d98d612f857c18abcde8adec601dca663a73f.tar.bz2
Update. Old logs are in ChangeLog.7.
1998-08-11 18:39 Ulrich Drepper <drepper@cygnus.com> * string/strsignal.c (strsignal): Count real-time signals from zero. See ChangeLog.8 for earlier changes.
Diffstat (limited to 'string/strsignal.c')
-rw-r--r--string/strsignal.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/string/strsignal.c b/string/strsignal.c
index 673706e..90480f5 100644
--- a/string/strsignal.c
+++ b/string/strsignal.c
@@ -60,12 +60,15 @@ strsignal (int signum)
signum < 0 || signum >= NSIG || (desc = _sys_siglist[signum]) == NULL)
{
char *buffer = getbuffer ();
- int len = __snprintf (buffer, BUFFERSIZ - 1,
+ int len;
#ifdef SIGRTMIN
- signum >= SIGRTMIN && signum <= SIGRTMAX
- ? _("Real-time signal %d") :
+ if (signum >= SIGRTMIN && signum <= SIGRTMAX)
+ len = __snprintf (buffer, BUFFERSIZ - 1, _("Real-time signal %d"),
+ signum - SIGRTMIN);
+ else
#endif
- _("Unknown signal %d"), signum);
+ len = __snprintf (buffer, BUFFERSIZ - 1, _("Unknown signal %d"),
+ signum);
if (len < 0)
buffer = NULL;
else