signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
authorBruno Haible <bruno@clisp.org>
Mon, 20 Dec 2010 00:53:15 +0000 (01:53 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 20 Dec 2010 00:53:15 +0000 (01:53 +0100)
* doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
* lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.

ChangeLog
doc/posix-headers/signal.texi
lib/strsignal.c

index 0a5f1ef..43dc38e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-12-19  Bruno Haible  <bruno@clisp.org>
 
+       signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
+       * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
+       * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
+
+2010-12-19  Bruno Haible  <bruno@clisp.org>
+
        sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
        * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
        _POSIX_PII_SOCKET.
index be62523..9056d1e 100644 (file)
@@ -35,4 +35,8 @@ Portability problems not fixed by Gnulib:
 @item
 Many signals are not defined on some platforms:
 mingw.
+@item
+The macros @code{SIGRTMIN} and @code{SIGRTMAX} expand to an expression of type
+@code{long} instead of @code{int} on some platforms:
+OSF/1 5.1.
 @end itemize
index 8cd09d2..c9c7b11 100644 (file)
@@ -108,7 +108,7 @@ strsignal (int signum)
 #ifdef SIGRTMIN
       if (signum >= SIGRTMIN && signum <= SIGRTMAX)
         len = __snprintf (buffer, BUFFERSIZ - 1, _("Real-time signal %d"),
-                          signum - SIGRTMIN);
+                          signum - (int) SIGRTMIN);
       else
 #endif
         len = __snprintf (buffer, BUFFERSIZ - 1, _("Unknown signal %d"),