diff options
author | deischen <deischen@FreeBSD.org> | 2003-05-19 23:04:50 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-05-19 23:04:50 +0000 |
commit | b26e5b44e091598edccd3d8954dc42037109f560 (patch) | |
tree | 40f53734ab843598c83e52d250d2e4c69ce3a826 /lib/libpthread/thread/thr_pselect.c | |
parent | da1b9f9f885f1d617fdc7f06432b3ea1d2c18408 (diff) | |
download | FreeBSD-src-b26e5b44e091598edccd3d8954dc42037109f560.zip FreeBSD-src-b26e5b44e091598edccd3d8954dc42037109f560.tar.gz |
Eek, staticize a couple of functions that shouldn't
be external (initialize()!).
Remove cancellation points from _pthread_cond_wait and
_pthread_cond_timedwait (single underscore versions are
libc private functions). Point the weak reference(!) for
these functions to the versions with cancellation points.
Approved by: re@(blanket till 5/19)
Pointed out by: kan (cancellation point bug)
Diffstat (limited to 'lib/libpthread/thread/thr_pselect.c')
-rw-r--r-- | lib/libpthread/thread/thr_pselect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_pselect.c b/lib/libpthread/thread/thr_pselect.c index c80a1cf..c1a4c5d 100644 --- a/lib/libpthread/thread/thr_pselect.c +++ b/lib/libpthread/thread/thr_pselect.c @@ -40,8 +40,10 @@ __FBSDID("$FreeBSD$"); extern int __pselect(int count, fd_set *rfds, fd_set *wfds, fd_set *efds, const struct timespec *timo, const sigset_t *mask); +__weak_reference(_pselect, pselect); + 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) { struct pthread *curthread = _get_curthread(); |