From b163f64d4ed7fcae172128db398cbc49e9c22536 Mon Sep 17 00:00:00 2001 From: archie Date: Thu, 2 May 2002 19:58:43 +0000 Subject: Make these functions cancellation points like they should be: poll(2), readv(2), select(2), wait4(2), writev(2). PR: bin/37658 Reviewed by: deischen MFC after: 1 week --- lib/libpthread/thread/thr_writev.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_writev.c') diff --git a/lib/libpthread/thread/thr_writev.c b/lib/libpthread/thread/thr_writev.c index c084cd0..ec77258 100644 --- a/lib/libpthread/thread/thr_writev.c +++ b/lib/libpthread/thread/thr_writev.c @@ -42,7 +42,7 @@ #include #include "pthread_private.h" -__weak_reference(_writev, writev); +__weak_reference(__writev, writev); ssize_t _writev(int fd, const struct iovec * iov, int iovcnt) @@ -202,3 +202,15 @@ _writev(int fd, const struct iovec * iov, int iovcnt) return (ret); } + +ssize_t +__writev(int fd, const struct iovec *iov, int iovcnt) +{ + ssize_t ret; + + _thread_enter_cancellation_point(); + ret = _writev(fd, iov, iovcnt); + _thread_leave_cancellation_point(); + + return ret; +} -- cgit v1.1