diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-16 00:44:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-06-16 00:44:57 +0200 |
commit | 298a8b59d43cf9a75c44e9b2836e07282a6d34ed (patch) | |
tree | d2c0da58786e6417209c2f1f5ed963314999f4c2 /sysdeps/mach/hurd/sendfile.c | |
parent | b12c1e7991cbde3d6fc70abfdf72abecce8b318c (diff) | |
download | glibc-298a8b59d43cf9a75c44e9b2836e07282a6d34ed.tar.gz glibc-298a8b59d43cf9a75c44e9b2836e07282a6d34ed.tar.xz 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/sendfile.c')
-rw-r--r-- | sysdeps/mach/hurd/sendfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/sendfile.c b/sysdeps/mach/hurd/sendfile.c index 6a3de0fcc1..4df66b56d7 100644 --- a/sysdeps/mach/hurd/sendfile.c +++ b/sysdeps/mach/hurd/sendfile.c @@ -25,11 +25,11 @@ ssize_t sendfile (int out_fd, int in_fd, off_t *offset, size_t count) { if (offset == NULL || sizeof (off_t) == sizeof (off64_t)) - return sendfile64 (out_fd, in_fd, (off64_t *) offset, count); + return __sendfile64 (out_fd, in_fd, (off64_t *) offset, count); else { off64_t ofs = *offset; - ssize_t ret = sendfile64 (out_fd, in_fd, &ofs, count); + ssize_t ret = __sendfile64 (out_fd, in_fd, &ofs, count); *offset = ofs; return ret; } |