Discussion:
[2008-TC1 0000881]: add ppoll()
Austin Group Bug Tracker
2014-10-09 06:04:27 UTC
Permalink
The following issue has been SUBMITTED.
======================================================================
http://austingroupbugs.net/view.php?id=881
======================================================================
Reported By: philip-guenther
Assigned To: ajosey
======================================================================
Project: 2008-TC1
Issue ID: 881
Category: System Interfaces
Type: Enhancement Request
Severity: Comment
Priority: normal
Status: Under Review
Name: Philip Guenther
Organization: OpenBSD
User Reference:
Section: ppoll()
Page Number: n/a
Line Number: n/a
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-10-09 06:04 UTC
Last Modified: 2014-10-09 06:04 UTC
======================================================================
Summary: add ppoll()
Description:
In general, select() is a harder to use interface than poll(): the fdset
sizing is non-trivial with an amazing number of off-by-one errors in the
select() call, exceptfds is misused or misinterpreted by many programs,
supporting large fd values is inefficient, etc.

The issue for POSIX is that pselect() was added without also adding
ppoll().


#include <poll.h>
int ppoll(struct pollfd fds[], nfds_t nfds, const struct timespec *, const
sigset_t *);

ppoll is to poll as pselect is to select.

Already implemented under that name in both Linux and OpenBSD and, I
believe, illumos.

NetBSD has this functionality under the name pollts().

Desired Action:
Add ppoll()
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
2014-10-09 06:04 philip-guentherNew Issue
2014-10-09 06:04 philip-guentherStatus New => Under Review
2014-10-09 06:04 philip-guentherAssigned To => ajosey
2014-10-09 06:04 philip-guentherName => Philip Guenther
2014-10-09 06:04 philip-guentherOrganization => OpenBSD
2014-10-09 06:04 philip-guentherSection => ppoll()
2014-10-09 06:04 philip-guentherPage Number => n/a
2014-10-09 06:04 philip-guentherLine Number => n/a
======================================================================
Loading...