]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/arch-x86/syscalls/execve.S
Initial Contribution
[android-sdk/platform-bionic.git] / libc / arch-x86 / syscalls / execve.S
1 /* autogenerated by gensyscalls.py */
2 #include <sys/linux-syscalls.h>
4     .text
5     .type execve, @function
6     .globl execve
7     .align 4
9 execve:
10     pushl   %ebx
11     pushl   %ecx
12     pushl   %edx
13     mov     16(%esp), %ebx
14     mov     20(%esp), %ecx
15     mov     24(%esp), %edx
16     movl    $__NR_execve, %eax
17     int     $0x80
18     cmpl    $-129, %eax
19     jb      1f
20     negl    %eax
21     pushl   %eax
22     call    __set_errno
23     addl    $4, %esp
24     orl     $-1, %eax
25 1:
26     popl    %edx
27     popl    %ecx
28     popl    %ebx
29     ret