summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/lseek.c
diff options
context:
space:
mode:
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>2022-10-19 19:14:29 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-12-07 14:33:47 -0300
commit71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0 (patch)
tree34754b50cd6423f070581ebf2ee5a018f9790f11 /sysdeps/unix/sysv/linux/lseek.c
parent127945c561535be3975d418fa8f85334a76c298c (diff)
downloadglibc-71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0.tar
glibc-71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0.tar.gz
glibc-71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0.tar.bz2
glibc-71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0.zip
Linux: Remove generic sysdep
The includes chain is added on each architecture sysdep.h and the __NR__llseek hack is moved to lseek.c and lseek64.c. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/lseek.c')
-rw-r--r--sysdeps/unix/sysv/linux/lseek.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/lseek.c b/sysdeps/unix/sysv/linux/lseek.c
index 148503d7bc..3f10c8dc96 100644
--- a/sysdeps/unix/sysv/linux/lseek.c
+++ b/sysdeps/unix/sysv/linux/lseek.c
@@ -41,6 +41,10 @@ static inline off_t lseek_overflow (loff_t res)
off_t
__lseek (int fd, off_t offset, int whence)
{
+#ifdef __NR_llseek
+# define __NR__llseek __NR_llseek
+#endif
+
# ifdef __NR__llseek
loff_t res;
int rc = INLINE_SYSCALL_CALL (_llseek, fd,