]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
passfd: Remove support for IRIX.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:13:17 +0000 (23:13 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Sep 2025 21:13:17 +0000 (23:13 +0200)
* lib/passfd.c (sendfd, recvfd): Remove code for IRIX.

ChangeLog
lib/passfd.c

index d313f33ee3479d29a273e766d1f8a3d776eddbf5..c8cc95c1f7af9c0f1b296f1131d401b91d25fad0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-09-10  Bruno Haible  <bruno@clisp.org>
 
+       passfd: Remove support for IRIX.
+       * lib/passfd.c (sendfd, recvfd): Remove code for IRIX.
+
        openpty: Remove support for IRIX.
        * lib/openpty.c (openpty): Remove code for IRIX.
        * m4/pty.m4 (gl_FUNC_OPENPTY): Don't test for _getpty.
index 3f98402e52f7d041e9baea2bb2329032328093ae..0ae37a1ba094a33445eeb644af2eec7629b2bfe2 100644 (file)
@@ -33,7 +33,7 @@
 /* The code that uses CMSG_FIRSTHDR is enabled on
    Linux, Mac OS X, FreeBSD, OpenBSD, NetBSD, AIX, Cygwin.
    The code that uses HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS is enabled on
-   HP-UX, IRIX, Solaris.  */
+   HP-UX, Solaris.  */
 
 /* MSG_CMSG_CLOEXEC is defined only on Linux, as of 2011.  */
 #ifndef MSG_CMSG_CLOEXEC
@@ -52,7 +52,7 @@ sendfd (int sock, int fd)
   char byte = 0;
   struct iovec iov;
   struct msghdr msg;
-# if defined CMSG_FIRSTHDR && !defined __sgi
+# if defined CMSG_FIRSTHDR
   struct cmsghdr *cmsg;
   char buf[CMSG_SPACE (sizeof fd)];
 # endif
@@ -66,7 +66,7 @@ sendfd (int sock, int fd)
   msg.msg_name = NULL;
   msg.msg_namelen = 0;
 
-# if defined CMSG_FIRSTHDR && !defined __sgi
+# if defined CMSG_FIRSTHDR
   msg.msg_control = buf;
   msg.msg_controllen = sizeof buf;
   cmsg = CMSG_FIRSTHDR (&msg);
@@ -112,7 +112,7 @@ recvfd (int sock, int flags)
   struct msghdr msg;
   int fd = -1;
   ssize_t len;
-# if defined CMSG_FIRSTHDR && !defined __sgi
+# if defined CMSG_FIRSTHDR
   struct cmsghdr *cmsg;
   char buf[CMSG_SPACE (sizeof fd)];
   int flags_recvmsg = flags & O_CLOEXEC ? MSG_CMSG_CLOEXEC : 0;
@@ -133,7 +133,7 @@ recvfd (int sock, int flags)
   msg.msg_name = NULL;
   msg.msg_namelen = 0;
 
-# if defined CMSG_FIRSTHDR && !defined __sgi
+# if defined CMSG_FIRSTHDR
   msg.msg_control = buf;
   msg.msg_controllen = sizeof buf;
   cmsg = CMSG_FIRSTHDR (&msg);