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:57:48 +0000 (10:57 +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 3a1a13fcaf803878a18c8ed3ed94a0dff1ea3192..9a518a6c45884fac7402892146eb6e93428d7607 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 9ed5973ab1f5c3f2dd3bcb32ff5578d8601584ef..052b78df44e928c457d08a1ffc824122a368d1e3 100644 (file)
@@ -32,5 +32,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 d162cea73835f3616e5c36a085c90e97d91f1400..572b9cc0d820e6e8be0626446c55f8e9afd08a9b 100644 (file)
@@ -22,7 +22,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 43ae10771ca7fb2e95e9f64ee6582146e620eddf..bf998456fdb2da24e0697c3d9349af0a77f88f6b 100644 (file)
@@ -24,4 +24,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 e00034610eb5a95c8d941a9f4715c431180ce3af..68ea63abfc7b6b679c18e3ea5c067bbf2ca16b84 100644 (file)
@@ -24,4 +24,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 5ec2ad8c95c516dea259442c657fba94de13d0fa..aa5a9dfe9797fb46ee7523c4c192355cba083fef 100644 (file)
@@ -27,5 +27,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 096faa8b37f15b18b005f413ce5884bc4ae6f970..6aab46583a1416d4fe71ce44a6c698d58072339d 100644 (file)
@@ -24,4 +24,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 0252b3805b43e7fbe398b79e1f5ef2ddd410d4a4..2557d06e207c8b8cc64196d58f52ba4500f45302 100644 (file)
@@ -1,5 +1,5 @@
 /* Test accepting a connection to a server socket.
-   Copyright (C) 2011-2024 Free Software Foundation, Inc.
+   Copyright (C) 2011-2025 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -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 d60cf206aed7d5b7ca699e9e0e39b37deac5730f..c10bdc5370931932870d50692924efb294522eaf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2008-2024 Free Software Foundation, Inc.
+ * Copyright (C) 2008-2025 Free Software Foundation, Inc.
  * Written by Simon Josefsson.
  *
  * This program is free software: you can redistribute it and/or modify
@@ -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 4e3034410da305691a778baef1a17b021cc5b36f..24db394f1ecf536f7de1ce31a0fc734537b68906 100644 (file)
@@ -1,5 +1,5 @@
 /* Test getpeername() function.
-   Copyright (C) 2011-2024 Free Software Foundation, Inc.
+   Copyright (C) 2011-2025 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -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 add62cbc2d1a2e67f5677211ccff417cdc604e01..b5ad73a5d2f4ef9425e6792d5be2e58c1902fedd 100644 (file)
@@ -1,5 +1,5 @@
 /* Test getsockname() function.
-   Copyright (C) 2011-2024 Free Software Foundation, Inc.
+   Copyright (C) 2011-2025 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -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 93e55699ccb63e806e177432e6b34d35d5691772..0a8254ca063f1ecec254dc646bcdd19708b11f73 100644 (file)
@@ -1,5 +1,5 @@
 /* Test getsockopt() function.
-   Copyright (C) 2011-2024 Free Software Foundation, Inc.
+   Copyright (C) 2011-2025 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -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 56354611a0ffde0f2c2c91dcdd04c9369449406d..8bb839d87bf698193426fb7ab38424a7311b814e 100644 (file)
@@ -1,5 +1,5 @@
 /* Test the recvfrom() function.
-   Copyright (C) 2011-2024 Free Software Foundation, Inc.
+   Copyright (C) 2011-2025 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #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>