diff options
author | Thomas Munro <tmunro@FreeBSD.org> | 2021-04-28 21:31:38 +1200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-11 13:19:29 +0200 |
commit | 363527bb038e2fa1e91d49d75aeaa78757d3b4eb (patch) | |
tree | edd3bfd2501ebbe19bade2cdb4c58e6e95305393 | |
parent | 85140fb3788b9880a6e62f5d7528c0da3243715d (diff) | |
download | newlib-363527bb038e2fa1e91d49d75aeaa78757d3b4eb.zip newlib-363527bb038e2fa1e91d49d75aeaa78757d3b4eb.tar.gz newlib-363527bb038e2fa1e91d49d75aeaa78757d3b4eb.tar.bz2 |
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
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/poll.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/sys/poll.h b/newlib/libc/sys/rtems/include/sys/poll.h index 7cdbbbb..cc6ad49 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 /* |