From 03919b26ed41c31876db41f7cee076ced4513fad Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 16 Jul 2019 18:31:33 -0400 Subject: 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. --- src/unistd/lseek.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/unistd') 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 #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); -- cgit v1.2.1