summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/arm/mmap64.S3
-rw-r--r--sysdeps/unix/sysv/linux/i386/fxstat.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/mmap64.S b/sysdeps/unix/sysv/linux/arm/mmap64.S
index 604bb76137..904c56404d 100644
--- a/sysdeps/unix/sysv/linux/arm/mmap64.S
+++ b/sysdeps/unix/sysv/linux/arm/mmap64.S
@@ -19,6 +19,7 @@
#include <sysdep.h>
#define EINVAL 22
+#define ENOSYS 38
/* The mmap2 system call takes six arguments, all in registers. */
.text
@@ -38,7 +39,7 @@ ENTRY (__mmap64)
swi SYS_ify (mmap2)
cmn r0, $4096
LOADREGS(ccfd, sp!, {r4, r5, pc})
- teq r0, $-ENOSYS
+ cmn r0, $(ENOSYS - 1)
ldmnefd sp!, {r4, r5, lr}
bne PLTJMP(syscall_error)
/* The current kernel does not support mmap2. Fall back to plain
diff --git a/sysdeps/unix/sysv/linux/i386/fxstat.c b/sysdeps/unix/sysv/linux/i386/fxstat.c
index 192325e6b0..532341d284 100644
--- a/sysdeps/unix/sysv/linux/i386/fxstat.c
+++ b/sysdeps/unix/sysv/linux/i386/fxstat.c
@@ -53,7 +53,7 @@ __fxstat (int vers, int fd, struct stat *buf)
return INLINE_SYSCALL (fstat, 2, fd, (struct kernel_stat *) buf);
}
#if __ASSUME_STAT64_SYSCALL > 0
- result = INLINE_SYSCALL (fstat64, 2, name, &buf64);
+ result = INLINE_SYSCALL (fstat64, 2, fd, &buf64);
if (result == 0)
result = xstat32_conv (vers, &buf64, buf);
return result;
@@ -66,7 +66,7 @@ __fxstat (int vers, int fd, struct stat *buf)
{
struct stat64 buf64;
- result = INLINE_SYSCALL (fstat64, 2, name, &buf64);
+ result = INLINE_SYSCALL (fstat64, 2, fd, &buf64);
if (result == 0)
result = xstat32_conv (vers, &buf64, buf);