blob: 04f794aaa0099bc8a05ff6757beb85dd43d9fc63 [file] [log] [blame]
Elliott Hughesb4f76162013-09-19 16:27:24 -07001/* autogenerated by gensyscalls.py */
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07002#include <asm/unistd.h>
Elliott Hughesb4f76162013-09-19 16:27:24 -07003#include <linux/err.h>
4#include <machine/asm.h>
Elliott Hughesb4f76162013-09-19 16:27:24 -07005
6ENTRY(truncate64)
7 pushl %ebx
8 pushl %ecx
9 pushl %edx
10 mov 16(%esp), %ebx
11 mov 20(%esp), %ecx
12 mov 24(%esp), %edx
13 movl $__NR_truncate64, %eax
14 int $0x80
15 cmpl $-MAX_ERRNO, %eax
16 jb 1f
17 negl %eax
18 pushl %eax
19 call __set_errno
20 addl $4, %esp
21 orl $-1, %eax
221:
23 popl %edx
24 popl %ecx
25 popl %ebx
26 ret
27END(truncate64)