Rev 1693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1693 | Rev 3065 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | if ((len = uio->uio_resid) == 0) |
59 | if ((len = uio->uio_resid) == 0) |
60 | return 0; |
60 | return 0; |
Line 61... | Line 61... | ||
61 | 61 | ||
62 | /* make sure we can write */ |
62 | /* make sure we can write */ |
63 | if (cantwrite (ptr, fp)) |
- | |
64 | { |
- | |
65 | fp->_flags |= __SERR; |
- | |
66 | ptr->_errno = EBADF; |
63 | if (cantwrite (ptr, fp)) |
67 | return EOF; |
- | |
Line 68... | Line 64... | ||
68 | } |
64 | return EOF; |
69 | 65 | ||
Line 70... | Line 66... | ||
70 | iov = uio->uio_iov; |
66 | iov = uio->uio_iov; |