diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_sendmsg.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_sendmsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_sendmsg.c b/lib/libc_r/uthread/uthread_sendmsg.c index 82c23e7..9d97c12 100644 --- a/lib/libc_r/uthread/uthread_sendmsg.c +++ b/lib/libc_r/uthread/uthread_sendmsg.c @@ -43,7 +43,7 @@ sendmsg(int fd, const struct msghdr *msg, int flags) { int ret; - if ((ret = _thread_fd_lock(fd, FD_WRITE, NULL, __FILE__, __LINE__)) == 0) { + if ((ret = _FD_LOCK(fd, FD_WRITE, NULL)) == 0) { while ((ret = _thread_sys_sendmsg(fd, msg, flags)) < 0) { if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) { _thread_run->data.fd.fd = fd; @@ -64,7 +64,7 @@ sendmsg(int fd, const struct msghdr *msg, int flags) break; } } - _thread_fd_unlock(fd, FD_WRITE); + _FD_UNLOCK(fd, FD_WRITE); } return (ret); } |