a6519d6306
See the comment in SYSCALLS.TXT for an explanation. Change-Id: I33d4056e84160c3cca74b7b588e9924a569753ed
22 lines
428 B
ArmAsm
22 lines
428 B
ArmAsm
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
#include <asm/unistd.h>
|
|
#include <linux/err.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(ftruncate)
|
|
movl $__NR_ftruncate, %eax
|
|
syscall
|
|
cmpq $-MAX_ERRNO, %rax
|
|
jb 1f
|
|
negl %eax
|
|
movl %eax, %edi
|
|
call __set_errno
|
|
orq $-1, %rax
|
|
1:
|
|
ret
|
|
END(ftruncate)
|
|
|
|
.globl _C_LABEL(ftruncate64)
|
|
.equ _C_LABEL(ftruncate64), _C_LABEL(ftruncate)
|