summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_select.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-09 23:21:05 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-09 23:21:05 +0000
commitddc8afd422568750de7698d8a92b79b27599dd2f (patch)
tree7b6d63e77297f7bad0d21a6bb68fa893b9a54574 /lib/libpthread/thread/thr_select.c
parenta67502218841058625ebd524b04693bee2622955 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_select.c')
-rw-r--r--lib/libpthread/thread/thr_select.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libpthread/thread/thr_select.c b/lib/libpthread/thread/thr_select.c
index 96df9c19bf54..0211883cc1b2 100644
--- a/lib/libpthread/thread/thr_select.c
+++ b/lib/libpthread/thread/thr_select.c
@@ -73,13 +73,13 @@ select(int numfds, fd_set * readfds, fd_set * writefds,
for (i = 0; i < numfds; i++) {
if ((readfds && (FD_ISSET(i, readfds))) || (exceptfds && FD_ISSET(i, exceptfds))) {
if (writefds && FD_ISSET(i, writefds)) {
- if ((ret = _thread_fd_lock(i, FD_RDWR, NULL, __FILE__, __LINE__)) != 0) {
+ if ((ret = _FD_LOCK(i, FD_RDWR, NULL)) != 0) {
got_all_locks = 0;
break;
}
FD_SET(i, &rdwr_locks);
} else {
- if ((ret = _thread_fd_lock(i, FD_READ, NULL, __FILE__, __LINE__)) != 0) {
+ if ((ret = _FD_LOCK(i, FD_READ, NULL)) != 0) {
got_all_locks = 0;
break;
}
@@ -87,7 +87,7 @@ select(int numfds, fd_set * readfds, fd_set * writefds,
}
} else {
if (writefds && FD_ISSET(i, writefds)) {
- if ((ret = _thread_fd_lock(i, FD_WRITE, NULL, __FILE__, __LINE__)) != 0) {
+ if ((ret = _FD_LOCK(i, FD_WRITE, NULL)) != 0) {
got_all_locks = 0;
break;
}
@@ -137,13 +137,13 @@ select(int numfds, fd_set * readfds, fd_set * writefds,
/* clean up the locks */
for (i = 0; i < numfds; i++)
if (FD_ISSET(i, &read_locks))
- _thread_fd_unlock(i, FD_READ);
+ _FD_UNLOCK(i, FD_READ);
for (i = 0; i < numfds; i++)
if (FD_ISSET(i, &rdwr_locks))
- _thread_fd_unlock(i, FD_RDWR);
+ _FD_UNLOCK(i, FD_RDWR);
for (i = 0; i < numfds; i++)
if (FD_ISSET(i, &write_locks))
- _thread_fd_unlock(i, FD_WRITE);
+ _FD_UNLOCK(i, FD_WRITE);
if (ret > 0) {
if (readfds != NULL) {