6fe4e87954
This patch adds an optional alias list to SYSCALLS.TXT. It is used to create aliases for a syscall. For x86-64, lseek64 is an alias for lseek. Change-Id: Icb11fd2bb461ea4f5f0a26bfc585471d7d7cc468 Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
21 lines
393 B
ArmAsm
21 lines
393 B
ArmAsm
/* autogenerated by gensyscalls.py */
|
|
#include <asm/unistd.h>
|
|
#include <linux/err.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(lseek)
|
|
movl $__NR_lseek, %eax
|
|
syscall
|
|
cmpq $-MAX_ERRNO, %rax
|
|
jb 1f
|
|
negl %eax
|
|
movl %eax, %edi
|
|
call __set_errno
|
|
orq $-1, %rax
|
|
1:
|
|
ret
|
|
END(lseek)
|
|
|
|
.globl _C_LABEL(lseek64)
|
|
.equ _C_LABEL(lseek64), _C_LABEL(lseek)
|