From: Bruno Haible Date: Wed, 10 Sep 2025 21:13:17 +0000 (+0200) Subject: passfd: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a577981fe623815c27310924293de7082f4fe60;p=thirdparty%2Fgnulib.git passfd: Remove support for IRIX. * lib/passfd.c (sendfd, recvfd): Remove code for IRIX. --- diff --git a/ChangeLog b/ChangeLog index d313f33ee3..c8cc95c1f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-09-10 Bruno Haible + 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. diff --git a/lib/passfd.c b/lib/passfd.c index 3f98402e52..0ae37a1ba0 100644 --- a/lib/passfd.c +++ b/lib/passfd.c @@ -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);