diff options
| author | David Greenman <dg@FreeBSD.org> | 2002-01-22 23:35:09 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 2002-01-22 23:35:09 +0000 |
| commit | 2e4bf827e53eadac4fe590516d8ec86df765ba9e (patch) | |
| tree | d1d80900ffb54da816de9ee439e1c87d26091cb5 /lib | |
| parent | 673158816b3d4beb0e5529db771806f46af283b5 (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc_r/uthread/uthread_sendfile.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/libc_r/uthread/uthread_sendfile.c b/lib/libc_r/uthread/uthread_sendfile.c index d22f4efdc7f6..9f8c1cf7874e 100644 --- a/lib/libc_r/uthread/uthread_sendfile.c +++ b/lib/libc_r/uthread/uthread_sendfile.c @@ -101,17 +101,6 @@ _sendfile(int fd, int s, off_t offset, size_t nbytes, struct sf_hdtr *hdtr, blocking = ((_thread_fd_table[s]->flags & O_NONBLOCK) == 0); /* - * Emulate sendfile(2) weirdness, sendfile doesn't actually send - * nbytes of the file, it really sends (nbytes - headers_size) of - * the file. If (nbytes - headers_size) == 0 we just send trailers. - */ - if (nbytes != 0) { - nbytes -= nwritten; - if (nbytes <= 0) - goto ERROR_2; - } - - /* * Loop while no error occurs and until the expected number of bytes are * written. */ |
