mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 21:09:28 +00:00
Remove pselect from application namespace and instead use a weak reference
to the actual implementation. This is to allow libc_r to override pselect() making it a cancellation point. Prompted by: wollman
This commit is contained in:
parent
53154da089
commit
eee80fbd9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98909
@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <signal.h>
|
||||
#include "un-namespace.h"
|
||||
|
||||
__weak_reference(__pselect, pselect);
|
||||
|
||||
/*
|
||||
* Emulate the POSIX 1003.1g-2000 `pselect' interface. This is the
|
||||
* same as the traditional BSD `select' function, except that it uses
|
||||
@ -45,7 +47,7 @@ __FBSDID("$FreeBSD$");
|
||||
* and allows the user to specify a signal mask to apply during the select.
|
||||
*/
|
||||
int
|
||||
pselect(int count, fd_set *rfds, fd_set *wfds, fd_set *efds,
|
||||
__pselect(int count, fd_set *rfds, fd_set *wfds, fd_set *efds,
|
||||
const struct timespec *timo, const sigset_t *mask)
|
||||
{
|
||||
sigset_t omask;
|
||||
|
Loading…
Reference in New Issue
Block a user