]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Fix a few compilation errors on Solaris 11 OmniOS with gcc 14.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Jan 2025 19:06:06 +0000 (20:06 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 2 Feb 2025 09:43:34 +0000 (10:43 +0100)
* tests/test-accept.c: Omit the signature check on Solaris.
* tests/test-gethostname.c: Likewise.
* tests/test-getpeername.c: Likewise.
* tests/test-getsockname.c: Likewise.
* tests/test-getsockopt.c: Likewise.
* tests/test-recvfrom.c: Likewise.
* doc/posix-functions/accept.texi: Mention the Solaris 11 OmniOS
problem.
* doc/posix-functions/gethostname.texi: Likewise.
* doc/posix-functions/getpeername.texi: Likewise.
* doc/posix-functions/getsockname.texi: Likewise.
* doc/posix-functions/getsockopt.texi: Likewise.
* doc/posix-functions/recvfrom.texi: Likewise.

13 files changed:
ChangeLog
doc/posix-functions/accept.texi
doc/posix-functions/gethostname.texi
doc/posix-functions/getpeername.texi
doc/posix-functions/getsockname.texi
doc/posix-functions/getsockopt.texi
doc/posix-functions/recvfrom.texi
tests/test-accept.c
tests/test-gethostname.c
tests/test-getpeername.c
tests/test-getsockname.c
tests/test-getsockopt.c
tests/test-recvfrom.c

index 36851200d446474e7257023de15d693f7087c1f9..dbe634c4a692071c6c829ac63141ce6ece2013a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2025-01-24  Bruno Haible  <bruno@clisp.org>
+
+       tests: Fix a few compilation errors on Solaris 11 OmniOS with gcc 14.
+       * tests/test-accept.c: Omit the signature check on Solaris.
+       * tests/test-gethostname.c: Likewise.
+       * tests/test-getpeername.c: Likewise.
+       * tests/test-getsockname.c: Likewise.
+       * tests/test-getsockopt.c: Likewise.
+       * tests/test-recvfrom.c: Likewise.
+       * doc/posix-functions/accept.texi: Mention the Solaris 11 OmniOS
+       problem.
+       * doc/posix-functions/gethostname.texi: Likewise.
+       * doc/posix-functions/getpeername.texi: Likewise.
+       * doc/posix-functions/getsockname.texi: Likewise.
+       * doc/posix-functions/getsockopt.texi: Likewise.
+       * doc/posix-functions/recvfrom.texi: Likewise.
+
 2025-01-23  Collin Funk  <collin.funk1@gmail.com>
 
        uchar-h-c23: Fix compilation error on OmniOS.
index d89de215d1e15de5375d539238cfa3445164e30b..61bcc7fd4fc48d7bc85620148396ecc98a3938b2 100644 (file)
@@ -38,5 +38,5 @@ third argument type is @samp{int *}.
 @item
 On some platforms, this function's third argument type is @samp{void *},
 not @samp{socklen_t *}:
-Solaris 10.
+Solaris 10, Solaris 11 OmniOS.
 @end itemize
index 73df5bd0bfd92698c60a5f753c07567b0c3582a0..0c105e1c2924a593baa3832d738ae7b1012ea869 100644 (file)
@@ -23,7 +23,7 @@ Portability problems not fixed by Gnulib:
 @item
 This function's second argument type is @code{int} instead of @code{size_t}
 on some platforms:
-Solaris 10.
+Solaris 10, Solaris 11 OmniOS.
 @item
 If the given buffer is too small for the host name, some implementations
 fail with @code{EINVAL}, instead of returning a truncated host name.
index a53c059dd98e15bcc532fe1fa21547d8f38f714e..d9c8daa55f439eabeab33be5466b0d0be13575b3 100644 (file)
@@ -30,4 +30,8 @@ Portability problems not fixed by Gnulib:
 @item
 Some platforms don't have a @code{socklen_t} type; in this case this function's
 third argument type is @samp{int *}.
+@item
+On some platforms, this function's third argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
 @end itemize
index 1e6c3981a29d53b04d5573a438d302cbddc1e2c2..a254da109622edd6c12422fab07cf78fe03e9f56 100644 (file)
@@ -30,4 +30,8 @@ Portability problems not fixed by Gnulib:
 @item
 Some platforms don't have a @code{socklen_t} type; in this case this function's
 third argument type is @samp{int *}.
+@item
+On some platforms, this function's third argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
 @end itemize
index 41af61beee600c2afdf356edbf9b79cbe5c48806..8835303d1fae7d6bcb55bba3ccc2a3e9963c72d5 100644 (file)
@@ -33,5 +33,9 @@ Portability problems not fixed by Gnulib:
 Some platforms don't have a @code{socklen_t} type; in this case this function's
 fifth argument type is @samp{int *}.
 @item
+On some platforms, this function's fifth argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
+@item
 Many socket options are not available on all platforms.
 @end itemize
index 6edddbebdb91141d0fa21e03e8ad3ded2347b5b3..5ca7b525e72cffdebb027f7934b7bf32f71ff3d2 100644 (file)
@@ -30,4 +30,8 @@ Portability problems not fixed by Gnulib:
 @item
 Some platforms don't have a @code{socklen_t} type; in this case this function's
 sixth argument type is @samp{int *}.
+@item
+On some platforms, this function's sixth argument type is @samp{void *},
+not @samp{socklen_t *}:
+Solaris 11 OmniOS.
 @end itemize
index 01cb1984d813a9464bca768d4211aba3c6db31e1..2557d06e207c8b8cc64196d58f52ba4500f45302 100644 (file)
@@ -19,7 +19,9 @@
 #include <sys/socket.h>
 
 #include "signature.h"
+#if !defined __sun
 SIGNATURE_CHECK (accept, int, (int, struct sockaddr *, socklen_t *));
+#endif
 
 #include <errno.h>
 #include <netinet/in.h>
index f1822deb73dd23ef1d6b8a65e7be74757cb6f266..c10bdc5370931932870d50692924efb294522eaf 100644 (file)
@@ -21,7 +21,9 @@
 #include <unistd.h>
 
 #include "signature.h"
+#if !defined __sun
 SIGNATURE_CHECK (gethostname, int, (char *, size_t));
+#endif
 
 /* Get HOST_NAME_MAX definition.  */
 #include <limits.h>
index 97d4a577854b4f40907dcc0f67ae44ea4c95ef9a..24db394f1ecf536f7de1ce31a0fc734537b68906 100644 (file)
@@ -19,7 +19,9 @@
 #include <sys/socket.h>
 
 #include "signature.h"
+#if !defined __sun
 SIGNATURE_CHECK (getpeername, int, (int, struct sockaddr *, socklen_t *));
+#endif
 
 #include <errno.h>
 #include <netinet/in.h>
index 9c75a43ce2a391589c9d240cd5e97f34f21914f9..b5ad73a5d2f4ef9425e6792d5be2e58c1902fedd 100644 (file)
@@ -19,7 +19,9 @@
 #include <sys/socket.h>
 
 #include "signature.h"
+#if !defined __sun
 SIGNATURE_CHECK (getsockname, int, (int, struct sockaddr *, socklen_t *));
+#endif
 
 #include <stdio.h>
 #include <string.h>
index 34698fd9db70cfb7cd7999af14305acb37069fee..0a8254ca063f1ecec254dc646bcdd19708b11f73 100644 (file)
@@ -19,7 +19,9 @@
 #include <sys/socket.h>
 
 #include "signature.h"
+#if !defined __sun
 SIGNATURE_CHECK (getsockopt, int, (int, int, int, void *, socklen_t *));
+#endif
 
 #include <errno.h>
 #include <unistd.h>
index ccf606cba44ba7f6a122a27e3d979814d392db61..8bb839d87bf698193426fb7ab38424a7311b814e 100644 (file)
 #include <sys/socket.h>
 
 #include "signature.h"
+#if !defined __sun
 SIGNATURE_CHECK (recvfrom, ssize_t,
-                 (int, void *, size_t, int,
-                  struct sockaddr *, socklen_t *));
+                 (int, void *, size_t, int, struct sockaddr *, socklen_t *));
+#endif
 
 #include <errno.h>
 #include <netinet/in.h>