2013-10-16 23:27:59 +02:00
|
|
|
/* Generated by gensyscalls.py. Do not edit. */
|
|
|
|
|
2013-11-07 19:31:05 +01:00
|
|
|
#include <private/bionic_asm.h>
|
2013-10-01 22:29:43 +02:00
|
|
|
|
|
|
|
ENTRY(truncate)
|
|
|
|
movl $__NR_truncate, %eax
|
|
|
|
syscall
|
|
|
|
cmpq $-MAX_ERRNO, %rax
|
|
|
|
jb 1f
|
|
|
|
negl %eax
|
|
|
|
movl %eax, %edi
|
|
|
|
call __set_errno
|
|
|
|
1:
|
|
|
|
ret
|
|
|
|
END(truncate)
|
2013-10-18 01:56:40 +02:00
|
|
|
|
2014-02-19 01:42:36 +01:00
|
|
|
.globl truncate64
|
|
|
|
.equ truncate64, truncate
|