aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/sendfile64.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 00:44:17 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-06-16 00:44:57 +0200
commit298a8b59d43cf9a75c44e9b2836e07282a6d34ed (patch)
treed2c0da58786e6417209c2f1f5ed963314999f4c2 /sysdeps/mach/hurd/sendfile64.c
parentb12c1e7991cbde3d6fc70abfdf72abecce8b318c (diff)
downloadglibc-298a8b59d43cf9a75c44e9b2836e07282a6d34ed.tar
glibc-298a8b59d43cf9a75c44e9b2836e07282a6d34ed.tar.gz
glibc-298a8b59d43cf9a75c44e9b2836e07282a6d34ed.tar.bz2
glibc-298a8b59d43cf9a75c44e9b2836e07282a6d34ed.zip
hurd: avoid PLT ref between sendfile and sendfile64
* include/sys/sendfile.h (__sendfile64): Declare hidden prototype. * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead of sendfile. * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64. (sendfile64): New strong alias.
Diffstat (limited to 'sysdeps/mach/hurd/sendfile64.c')
-rw-r--r--sysdeps/mach/hurd/sendfile64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/sendfile64.c b/sysdeps/mach/hurd/sendfile64.c
index f69ccd4a79..ea4e96da90 100644
--- a/sysdeps/mach/hurd/sendfile64.c
+++ b/sysdeps/mach/hurd/sendfile64.c
@@ -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
@@ -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)