diff options
author | Andreas Schwab <schwab@suse.de> | 2015-10-22 14:38:52 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2015-10-22 14:59:29 +0200 |
commit | 751709fec943a853c2543eb6f7995cae723f7b78 (patch) | |
tree | 2c2fedf574659ea0247dac53564db1040b5a8845 /sysdeps/unix/sysv/linux/i386/fxstat.c | |
parent | 1ee1218e3f9b6eda8bc07303027158a4f660fdab (diff) | |
download | glibc-751709fec943a853c2543eb6f7995cae723f7b78.tar.gz glibc-751709fec943a853c2543eb6f7995cae723f7b78.tar.xz glibc-751709fec943a853c2543eb6f7995cae723f7b78.zip |
Always use INTERNAL_SYSCALL_ERRNO with INTERNAL_SYSCALL
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/fxstat.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/fxstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/fxstat.c b/sysdeps/unix/sysv/linux/i386/fxstat.c index 646d616c60..d2a2b8d486 100644 --- a/sysdeps/unix/sysv/linux/i386/fxstat.c +++ b/sysdeps/unix/sysv/linux/i386/fxstat.c @@ -45,7 +45,8 @@ __fxstat (int vers, int fd, struct stat *buf) INTERNAL_SYSCALL_DECL (err); result = INTERNAL_SYSCALL (fstat64, err, 2, fd, &buf64); 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)); else return __xstat32_conv (vers, &buf64, buf); } |