summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread/uthread_recvfrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc_r/uthread/uthread_recvfrom.c')
-rw-r--r--lib/libc_r/uthread/uthread_recvfrom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_recvfrom.c b/lib/libc_r/uthread/uthread_recvfrom.c
index 8d5d9db..e8a3741 100644
--- a/lib/libc_r/uthread/uthread_recvfrom.c
+++ b/lib/libc_r/uthread/uthread_recvfrom.c
@@ -43,7 +43,7 @@ recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr * from, int *
{
int ret;
- if ((ret = _thread_fd_lock(fd, FD_READ, NULL, __FILE__, __LINE__)) == 0) {
+ if ((ret = _FD_LOCK(fd, FD_READ, NULL)) == 0) {
while ((ret = _thread_sys_recvfrom(fd, buf, len, flags, from, from_len)) < 0) {
if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) {
_thread_run->data.fd.fd = fd;
@@ -65,7 +65,7 @@ recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr * from, int *
break;
}
}
- _thread_fd_unlock(fd, FD_READ);
+ _FD_UNLOCK(fd, FD_READ);
}
return (ret);
}
OpenPOWER on IntegriCloud