]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/arch-x86/syscalls/ftruncate64.S
Merge "syslog needs a valid socket path for _PATH_LOG"
[android-sdk/platform-bionic.git] / libc / arch-x86 / syscalls / ftruncate64.S
1 /* autogenerated by gensyscalls.py */
2 #include <linux/err.h>
3 #include <machine/asm.h>
4 #include <asm/unistd.h>
6 ENTRY(ftruncate64)
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_ftruncate64, %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
22 1:
23     popl    %edx
24     popl    %ecx
25     popl    %ebx
26     ret
27 END(ftruncate64)