From e5dee2c896f04d88defdfa00282fa83f5f4004d8 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 21 Aug 2015 09:57:15 -0700 Subject: Revert "Add INLINE_SYSCALL_RETURN/INLINE_SYSCALL_ERROR_RETURN" This reverts commit 0c5b8b5941e036dcaac69cecee9f01fdf9218e6e. --- sysdeps/unix/sysv/linux/llseek.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'sysdeps/unix/sysv/linux/llseek.c') diff --git a/sysdeps/unix/sysv/linux/llseek.c b/sysdeps/unix/sysv/linux/llseek.c index 116e55b9f7..80ac5e690b 100644 --- a/sysdeps/unix/sysv/linux/llseek.c +++ b/sysdeps/unix/sysv/linux/llseek.c @@ -29,17 +29,10 @@ loff_t __llseek (int fd, loff_t offset, int whence) { loff_t retval; - INTERNAL_SYSCALL_DECL (err); - int result = INTERNAL_SYSCALL (_llseek, err, 5, fd, - (off_t) (offset >> 32), - (off_t) (offset & 0xffffffff), - &retval, whence); - if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (result, err))) - return INLINE_SYSCALL_ERROR_RETURN (-INTERNAL_SYSCALL_ERRNO (result, - err), - loff_t, -1); - else - return retval; + + return (loff_t) (INLINE_SYSCALL (_llseek, 5, fd, (off_t) (offset >> 32), + (off_t) (offset & 0xffffffff), + &retval, whence) ?: retval); } weak_alias (__llseek, llseek) strong_alias (__llseek, __libc_lseek64) -- cgit v1.2.1