Collin Funk wrote:
> Now that sig2str and str2sig are a part of POSIX we should add signature
> checks so we can find out if they are incorrect on any platforms.
> 
> Done through the attached patch.

Thanks.

Note that this will probably lead to a compilation error on IRIX 6.5,
since that platform has the sig2str and str2sig functions in libc but does
not declare them in the header files. But since I cannot test on that
platform any more, I can't provide a fix.


2024-12-29  Bruno Haible  <br...@clisp.org>

        sig2str: Document a portability problem.
        * doc/posix-functions/sig2str.texi: Document IRIX problem.
        * doc/posix-functions/str2sig.texi: Likewise.

diff --git a/doc/posix-functions/sig2str.texi b/doc/posix-functions/sig2str.texi
index 39a7372bd3..57276942db 100644
--- a/doc/posix-functions/sig2str.texi
+++ b/doc/posix-functions/sig2str.texi
@@ -16,4 +16,7 @@
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+This function is not declared on some platforms:
+IRIX 6.5.
 @end itemize
diff --git a/doc/posix-functions/str2sig.texi b/doc/posix-functions/str2sig.texi
index c2176ddd51..a86a18aeb9 100644
--- a/doc/posix-functions/str2sig.texi
+++ b/doc/posix-functions/str2sig.texi
@@ -16,4 +16,7 @@
 
 Portability problems not fixed by Gnulib:
 @itemize
+@item
+This function is not declared on some platforms:
+IRIX 6.5.
 @end itemize




Reply via email to