summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2002-06-27 13:23:46 +0000
committerdeischen <deischen@FreeBSD.org>2002-06-27 13:23:46 +0000
commit0ac902835ebc7377bbfc6d4d6045f2b6c41d99f6 (patch)
tree8d2f9c171e9a7f18d7e74f2fa58412c81b9dc7a4 /lib
parentdad2305f625c61cfb0c44704202de0aa20f71b00 (diff)
downloadFreeBSD-src-0ac902835ebc7377bbfc6d4d6045f2b6c41d99f6.zip
FreeBSD-src-0ac902835ebc7377bbfc6d4d6045f2b6c41d99f6.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/pselect.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/pselect.c b/lib/libc/gen/pselect.c
index 737631f..c2ec108 100644
--- a/lib/libc/gen/pselect.c
+++ b/lib/libc/gen/pselect.c
@@ -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;
OpenPOWER on IntegriCloud