f8fcfbc85a
Modern architectures only get the *at(2) system calls. For example, aarch64 doesn't have open(2), and expects userspace to use openat(2) instead. Change-Id: I87b4ed79790cb8a80844f5544ac1a13fda26c7b5
19 lines
362 B
ArmAsm
19 lines
362 B
ArmAsm
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
#include <asm/unistd.h>
|
|
#include <linux/err.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(fstatat)
|
|
movq %rcx, %r10
|
|
movl $__NR_newfstatat, %eax
|
|
syscall
|
|
cmpq $-MAX_ERRNO, %rax
|
|
jb 1f
|
|
negl %eax
|
|
movl %eax, %edi
|
|
call __set_errno
|
|
orq $-1, %rax
|
|
1:
|
|
ret
|
|
END(fstatat)
|