diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2022-10-19 19:14:29 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-12-07 14:33:47 -0300 |
commit | 71e4344f2568c53d7d7a122ae2b4196c1d2b8ae0 (patch) | |
tree | 34754b50cd6423f070581ebf2ee5a018f9790f11 /sysdeps/unix/sysv/linux/lseek.c | |
parent | 127945c561535be3975d418fa8f85334a76c298c (diff) | |
download | glibc-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.c | 4 |
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, |