diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2002-08-29 23:06:07 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-08-29 23:06:07 +0000 |
| commit | d8b5986dd6a718d948b9ea0e2da3256ac45bff42 (patch) | |
| tree | 24c4da9130c487d85f113d7fdfa44a22f470cb61 /lib/libpthread/thread/thr_writev.c | |
| parent | ee92a1ab51e1543706ad3802c5d218b04df5e0ba (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_writev.c')
| -rw-r--r-- | lib/libpthread/thread/thr_writev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_writev.c b/lib/libpthread/thread/thr_writev.c index ec77258f87bf..b07278ac39b3 100644 --- a/lib/libpthread/thread/thr_writev.c +++ b/lib/libpthread/thread/thr_writev.c @@ -75,7 +75,7 @@ _writev(int fd, const struct iovec * iov, int iovcnt) /* Lock the file descriptor for write: */ if ((ret = _FD_LOCK(fd, FD_WRITE, NULL)) == 0) { /* Get the read/write mode type: */ - type = _thread_fd_table[fd]->flags & O_ACCMODE; + type = _thread_fd_getflags(fd) & O_ACCMODE; /* Check if the file is not open for write: */ if (type != O_WRONLY && type != O_RDWR) { @@ -86,7 +86,7 @@ _writev(int fd, const struct iovec * iov, int iovcnt) } /* Check if file operations are to block */ - blocking = ((_thread_fd_table[fd]->flags & O_NONBLOCK) == 0); + blocking = ((_thread_fd_getflags(fd) & O_NONBLOCK) == 0); /* * Loop while no error occurs and until the expected number |
