summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/gen/select.c
diff options
context:
space:
mode:
authorraf <none@none>2008-04-29 14:12:45 -0700
committerraf <none@none>2008-04-29 14:12:45 -0700
commit8cd45542f2a452ca0dab13d8b2d5cfa876ccbebc (patch)
tree0571ec3284912727f3d8ba667ed57b4cc6afb8cd /usr/src/lib/libc/port/gen/select.c
parent31e69ea4bce567a03de57e063cb36ef69af61470 (diff)
downloadillumos-joyent-8cd45542f2a452ca0dab13d8b2d5cfa876ccbebc.tar.gz
6678310 using LD_AUDIT, ld.so.1 calls shared library's .init before library is fully relocated
6689238 libc needs global protection against ld.so.1
Diffstat (limited to 'usr/src/lib/libc/port/gen/select.c')
-rw-r--r--usr/src/lib/libc/port/gen/select.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/lib/libc/port/gen/select.c b/usr/src/lib/libc/port/gen/select.c
index 8e77866b26..d01908d0a0 100644
--- a/usr/src/lib/libc/port/gen/select.c
+++ b/usr/src/lib/libc/port/gen/select.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -47,6 +47,7 @@
#include "synonyms.h"
#include <values.h>
+#include <pthread.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -77,7 +78,7 @@ pselect(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0,
* SUSV3: We must behave as a cancellation point even if we fail early.
*/
if (nfds < 0 || nfds > FD_SETSIZE) {
- _private_testcancel();
+ pthread_testcancel();
errno = EINVAL;
return (-1);
}
@@ -87,7 +88,7 @@ pselect(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0,
/* check timespec validity */
if (tsp->tv_nsec < 0 || tsp->tv_nsec >= NANOSEC ||
tsp->tv_sec < 0) {
- _private_testcancel();
+ pthread_testcancel();
errno = EINVAL;
return (-1);
}