4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

poll(2): Add POLLRDHUP.

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.

Reviewed by:	kib
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D29757
This commit is contained in:
Thomas Munro 2021-04-28 21:31:38 +12:00 committed by Sebastian Huber
parent 85140fb378
commit 363527bb03

View File

@ -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
/*