* 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>
+
+ 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.
@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
#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"),