From 751709fec943a853c2543eb6f7995cae723f7b78 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 22 Oct 2015 14:38:52 +0200 Subject: Always use INTERNAL_SYSCALL_ERRNO with INTERNAL_SYSCALL --- sysdeps/unix/sysv/linux/i386/lockf64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/i386/lockf64.c') diff --git a/sysdeps/unix/sysv/linux/i386/lockf64.c b/sysdeps/unix/sysv/linux/i386/lockf64.c index 601af783d6..6f9ce0d5d6 100644 --- a/sysdeps/unix/sysv/linux/i386/lockf64.c +++ b/sysdeps/unix/sysv/linux/i386/lockf64.c @@ -45,7 +45,8 @@ lockf64 (int fd, int cmd, off64_t len64) INTERNAL_SYSCALL_DECL (err); result = INTERNAL_SYSCALL (fcntl64, err, 3, fd, F_GETLK64, &fl64); if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (result, err))) - return INLINE_SYSCALL_ERROR_RETURN_VALUE (-result); + return INLINE_SYSCALL_ERROR_RETURN_VALUE (INTERNAL_SYSCALL_ERRNO (result, + err)); if (fl64.l_type == F_UNLCK || fl64.l_pid == __getpid ()) return 0; return INLINE_SYSCALL_ERROR_RETURN_VALUE (EACCES); -- cgit v1.2.3