diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1998-02-13 01:27:34 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1998-02-13 01:27:34 +0000 |
| commit | f5295b34ac101129c1aec1a491a701435e5ec948 (patch) | |
| tree | dc59a5b9302a9aee5f27001e2cf5ddc1fe2c0e96 /lib/libpthread/thread/thr_writev.c | |
| parent | 5858ada87788ed504d7e60966e7c63e954b72363 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_writev.c')
| -rw-r--r-- | lib/libpthread/thread/thr_writev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_writev.c b/lib/libpthread/thread/thr_writev.c index 5ad1ce93bf0b..56e1872c6d82 100644 --- a/lib/libpthread/thread/thr_writev.c +++ b/lib/libpthread/thread/thr_writev.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: uthread_writev.c,v 1.3 1997/04/01 22:44:18 jb Exp $ * */ #include <sys/types.h> @@ -47,8 +47,8 @@ writev(int fd, const struct iovec * iov, int iovcnt) int ret; int status; - /* Lock the file descriptor for read and write: */ - if ((ret = _thread_fd_lock(fd, FD_RDWR, NULL, + /* Lock the file descriptor for write: */ + if ((ret = _thread_fd_lock(fd, FD_WRITE, NULL, __FILE__, __LINE__)) == 0) { /* Perform a non-blocking writev syscall: */ while ((ret = _thread_sys_writev(fd, iov, iovcnt)) < 0) { |
