summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/i386/lockf64.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2015-10-22 14:38:52 +0200
committerAndreas Schwab <schwab@suse.de>2015-10-22 14:59:29 +0200
commit751709fec943a853c2543eb6f7995cae723f7b78 (patch)
tree2c2fedf574659ea0247dac53564db1040b5a8845 /sysdeps/unix/sysv/linux/i386/lockf64.c
parent1ee1218e3f9b6eda8bc07303027158a4f660fdab (diff)
downloadglibc-751709fec943a853c2543eb6f7995cae723f7b78.tar.gz
Always use INTERNAL_SYSCALL_ERRNO with INTERNAL_SYSCALL
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/lockf64.c')
-rw-r--r--sysdeps/unix/sysv/linux/i386/lockf64.c3
1 files changed, 2 insertions, 1 deletions
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);