Skip to content

Commit

Permalink
Revert "Tweak ppoll() to include 1003.1-2024 visibility"
Browse files Browse the repository at this point in the history
This reverts commit 212d7f4.  A last
minute change to remove __BSD_VISIBLE unearthed some breakage that I
failed to re-test.  Sigh.
  • Loading branch information
kevans91 committed Dec 14, 2024
1 parent 9647bf2 commit da5aed3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions include/ssp/poll.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ __ssp_redirect_raw_impl(int, poll, poll,
return (__ssp_real(poll)(fds, nfds, timeout));
}

#if _POSIX_C_SOURCE >= 202405
#if __BSD_VISIBLE
__ssp_redirect_raw_impl(int, ppoll, ppoll,
(struct pollfd fds[], nfds_t nfds,
const struct timespec *__restrict timeout,
Expand All @@ -53,7 +53,7 @@ __ssp_redirect_raw_impl(int, ppoll, ppoll,

return (__ssp_real(ppoll)(fds, nfds, timeout, newsigmask));
}
#endif /* _POSIX_C_SOURCE >= 202405 */
#endif /* __BSD_VISIBLE */
__END_DECLS

#endif /* __SSP_FORTIFY_LEVEL > 0 */
Expand Down
5 changes: 2 additions & 3 deletions lib/libsys/poll.2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd December 11, 2024
.Dd April 27, 2021
.Dt POLL 2
.Os
.Sh NAME
Expand Down Expand Up @@ -268,8 +268,7 @@ function conforms to
.St -p1003.1-2001 .
The
.Fn ppoll
function conforms to
.St -p1003.1-2024 .
is not specified by POSIX.
The
POLLRDHUP
flag is not specified by POSIX, but is compatible with Linux and illumos.
Expand Down
4 changes: 2 additions & 2 deletions sys/sys/poll.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct pollfd {

#ifndef _KERNEL

#if _POSIX_C_SOURCE >= 202405
#if __BSD_VISIBLE
#include <sys/_types.h>

#include <sys/_sigset.h>
Expand All @@ -115,7 +115,7 @@ typedef __sigset_t sigset_t;

__BEGIN_DECLS
int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
#if _POSIX_C_SOURCE >= 202405
#if __BSD_VISIBLE
int ppoll(struct pollfd _pfd[], nfds_t _nfds,
const struct timespec *__restrict _timeout,
const sigset_t *__restrict _newsigmask);
Expand Down

0 comments on commit da5aed3

Please sign in to comment.