blob: 6da31407888341329ccdbe1a8a1a146995f9cdbc [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07003#include <asm/unistd.h>
4#include <linux/err.h>
5#include <machine/asm.h>
6
7ENTRY(truncate)
8 movl $__NR_truncate, %eax
9 syscall
10 cmpq $-MAX_ERRNO, %rax
11 jb 1f
12 negl %eax
13 movl %eax, %edi
14 call __set_errno
15 orq $-1, %rax
161:
17 ret
18END(truncate)
Elliott Hughesa6519d62013-10-17 16:56:40 -070019
20 .globl _C_LABEL(truncate64)
21 .equ _C_LABEL(truncate64), _C_LABEL(truncate)