blob: 99b71b0a6006dd0923a2bb24644ddb8de3392b39 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Elliott Hughesb4f76162013-09-19 16:27:24 -07004
5ENTRY(truncate64)
6 pushl %ebx
7 pushl %ecx
8 pushl %edx
Christopher Ferrise4bc7562014-01-06 16:39:10 -08009 .cfi_def_cfa_offset 12
10 .cfi_rel_offset ebx, 0
11 .cfi_rel_offset ecx, 4
12 .cfi_rel_offset edx, 8
Elliott Hughesb4f76162013-09-19 16:27:24 -070013 mov 16(%esp), %ebx
14 mov 20(%esp), %ecx
15 mov 24(%esp), %edx
16 movl $__NR_truncate64, %eax
17 int $0x80
18 cmpl $-MAX_ERRNO, %eax
19 jb 1f
20 negl %eax
21 pushl %eax
22 call __set_errno
23 addl $4, %esp
24 orl $-1, %eax
251:
26 popl %edx
27 popl %ecx
28 popl %ebx
29 ret
30END(truncate64)