diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_recvmsg.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_recvmsg.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_recvmsg.c b/lib/libc_r/uthread/uthread_recvmsg.c index cae23f3..3ecae3f 100644 --- a/lib/libc_r/uthread/uthread_recvmsg.c +++ b/lib/libc_r/uthread/uthread_recvmsg.c @@ -38,7 +38,7 @@ #include <pthread.h> #include "pthread_private.h" -__weak_reference(_recvmsg, recvmsg); +__weak_reference(__recvmsg, recvmsg); ssize_t _recvmsg(int fd, struct msghdr *msg, int flags) @@ -73,3 +73,15 @@ _recvmsg(int fd, struct msghdr *msg, int flags) } return (ret); } + +ssize_t +__recvmsg(int fd, struct msghdr *msg, int flags) +{ + int ret; + + _thread_enter_cancellation_point(); + ret = _recvmsg(fd, msg, flags); + _thread_leave_cancellation_point(); + + return (ret); +} |