diff options
Diffstat (limited to 'sysdeps/mach/hurd/sendfile64.c')
-rw-r--r-- | sysdeps/mach/hurd/sendfile64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/mach/hurd/sendfile64.c b/sysdeps/mach/hurd/sendfile64.c index 99412706a9..ea4e96da90 100644 --- a/sysdeps/mach/hurd/sendfile64.c +++ b/sysdeps/mach/hurd/sendfile64.c @@ -1,5 +1,5 @@ /* sendfile -- copy data directly from one file descriptor to another - Copyright (C) 2002-2016 Free Software Foundation, Inc. + Copyright (C) 2002-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,7 +24,7 @@ /* Send COUNT bytes from file associated with IN_FD starting at OFFSET to descriptor OUT_FD. */ ssize_t -sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) +__sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) { /* We just do a vanilla io_read followed by a vanilla io_write here. In theory the IN_FD filesystem can return us out-of-line data that @@ -47,7 +47,7 @@ sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) return 0; err = HURD_DPORT_USE (out_fd, __io_write (port, data, datalen, (off_t) -1, &nwrote)); - munmap (data, datalen); + __munmap (data, datalen); if (err == 0) { if (offset) @@ -57,3 +57,4 @@ sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) } return __hurd_fail (err); } +strong_alias (__sendfile64, sendfile64) |