diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 2002-05-02 19:58:43 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 2002-05-02 19:58:43 +0000 |
| commit | 663fc9cc7c50eee029c4ffb65589e7ae787917e3 (patch) | |
| tree | 1119b760226c7870af16a85be9b494a6c3fa3a24 /lib/libpthread/thread/thr_readv.c | |
| parent | ca0989d865a1207e0deae0ef3739b462e21018de (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_readv.c')
| -rw-r--r-- | lib/libpthread/thread/thr_readv.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_readv.c b/lib/libpthread/thread/thr_readv.c index 2759819d6da6..0aa6c15820c5 100644 --- a/lib/libpthread/thread/thr_readv.c +++ b/lib/libpthread/thread/thr_readv.c @@ -40,7 +40,7 @@ #include <pthread.h> #include "pthread_private.h" -__weak_reference(_readv, readv); +__weak_reference(__readv, readv); ssize_t _readv(int fd, const struct iovec * iov, int iovcnt) @@ -92,3 +92,15 @@ _readv(int fd, const struct iovec * iov, int iovcnt) } return (ret); } + +ssize_t +__readv(int fd, const struct iovec *iov, int iovcnt) +{ + ssize_t ret; + + _thread_enter_cancellation_point(); + ret = _readv(fd, iov, iovcnt); + _thread_leave_cancellation_point(); + + return ret; +} |
