Note in the manpage that the 2024 edition finally added ppoll(), and
also add the appropriate declarations for the correct versions of
_POSIX_C_SOURCE.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 61097 Build 57981: arc lint + arc unit
Event Timeline
include/ssp/poll.h | ||
---|---|---|
45 | I thought a L suff |
sys/sys/poll.h | ||
---|---|---|
99 | Isn't check for __BSD_VISIBLE redundant? |
sys/sys/poll.h | ||
---|---|---|
99 | It is... but we do this in a lot of places. Should we fix those? |
sys/sys/poll.h | ||
---|---|---|
99 | Usually we avoid the redundancy. So fixing them is worth the efforts, IMO. |
sys/sys/poll.h | ||
---|---|---|
99 | Most that are wrong are recent. One is old. Several are right... we should fix |
sys/sys/poll.h | ||
---|---|---|
99 | Ok, will axe that half off of all these pre-commit |
sys/sys/poll.h | ||
---|---|---|
99 | Ill submit a cleanup once universe is done |
As an aside, it's also the case that
The .Fn poll and .Fn ppoll functions conform to .St -p1003.1-2024 .
Mentioning the older standard is useful in terms of suggesting how portable it is to other operating systems or older FreeBSD versions, but that should probably be discussed explicitly in HISTORY instead. fork did get that treatment (in D47588) because POSIX 2024 did change the language so that we actually conform.
I'm not suggesting making this change for the ppoll update; it is something we'll want to discuss and have a plan for before any holistic review and update of POSIX 2024 references in man pages.