| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH xfsprogs 10/14] replace sendfile64 by equivalent sendfile |
| From: | Felix Janda <felix.janda@xxxxxxxxx> |
| Date: | Sat, 6 Aug 2016 13:03:16 +0200 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <cover.1470555003.git.felix.janda@xxxxxxxxx> |
| References: | <cover.1470555003.git.felix.janda@xxxxxxxxx> |
Signed-off-by: Felix Janda <felix.janda@xxxxxxxxx>
---
io/sendfile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/io/sendfile.c b/io/sendfile.c
index c082acf..edd31c9 100644
--- a/io/sendfile.c
+++ b/io/sendfile.c
@@ -56,11 +56,11 @@ send_buffer(
*total = 0;
while (count > 0) {
- bytes = sendfile64(file->fd, fd, &off, bytes_remaining);
+ bytes = sendfile(file->fd, fd, &off, bytes_remaining);
if (bytes == 0)
break;
if (bytes < 0) {
- perror("sendfile64");
+ perror("sendfile");
return -1;
}
ops++;
--
2.7.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH xfsprogs 05/14] replace stat64 by equivalent stat, Felix Janda |
|---|---|
| Next by Date: | [PATCH xfsprogs 08/14] replace pread64 by equivalent pread, Felix Janda |
| Previous by Thread: | [PATCH xfsprogs 05/14] replace stat64 by equivalent stat, Felix Janda |
| Next by Thread: | Re: [PATCH xfsprogs 10/14] replace sendfile64 by equivalent sendfile, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |