From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 058F9385414E; Mon, 11 Jul 2022 11:54:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 058F9385414E Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] poll(2): Add POLLRDHUP. X-Act-Checkin: newlib-cygwin X-Git-Author: Thomas Munro X-Git-Refname: refs/heads/master X-Git-Oldrev: 85140fb3788b9880a6e62f5d7528c0da3243715d X-Git-Newrev: 363527bb038e2fa1e91d49d75aeaa78757d3b4eb Message-Id: <20220711115415.058F9385414E@sourceware.org> Date: Mon, 11 Jul 2022 11:54:15 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2022 11:54:15 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D363527bb038= e2fa1e91d49d75aeaa78757d3b4eb commit 363527bb038e2fa1e91d49d75aeaa78757d3b4eb Author: Thomas Munro Date: Wed Apr 28 21:31:38 2021 +1200 poll(2): Add POLLRDHUP. =20 Teach poll(2) to support Linux-style POLLRDHUP events for sockets, if requested. Triggered when the remote peer shuts down writing or closes its end. =20 Reviewed by: kib MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D29757 Diff: --- newlib/libc/sys/rtems/include/sys/poll.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/sys/rtems/include/sys/poll.h b/newlib/libc/sys/rte= ms/include/sys/poll.h index 7cdbbbb59..cc6ad49db 100644 --- a/newlib/libc/sys/rtems/include/sys/poll.h +++ b/newlib/libc/sys/rtems/include/sys/poll.h @@ -71,6 +71,7 @@ struct pollfd { #if __BSD_VISIBLE /* General FreeBSD extension (currently only supported for sockets): */ #define POLLINIGNEOF 0x2000 /* like POLLIN, except ignore EOF */ +#define POLLRDHUP 0x4000 /* half shut down */ #endif =20 /*