summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-07-16 18:31:33 -0400
committerRich Felker <dalias@aerifal.cx>2019-07-16 18:31:33 -0400
commit03919b26ed41c31876db41f7cee076ced4513fad (patch)
treebe592d50551a1ee8c600e35f5420e840e76a2f5c /src/unistd
parentb07d45eb01e900f0176894fdedab62285f5cb8be (diff)
downloadmusl-03919b26ed41c31876db41f7cee076ced4513fad.tar.gz
use namespace-safe __lseek for __stdio_seek instead of direct syscall
this probably saves a few bytes, avoids duplicating the clunky lseek/_llseek syscall convention in two places, and sets the stage for fixing broken seeks on x32 and mipsn32.
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/lseek.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unistd/lseek.c b/src/unistd/lseek.c
index bf8cd852..b4984f3e 100644
--- a/src/unistd/lseek.c
+++ b/src/unistd/lseek.c
@@ -1,7 +1,7 @@
#include <unistd.h>
#include "syscall.h"
-off_t lseek(int fd, off_t offset, int whence)
+off_t __lseek(int fd, off_t offset, int whence)
{
#ifdef SYS__llseek
off_t result;
@@ -11,4 +11,5 @@ off_t lseek(int fd, off_t offset, int whence)
#endif
}
-weak_alias(lseek, lseek64);
+weak_alias(__lseek, lseek);
+weak_alias(__lseek, lseek64);