diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:03:48 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:03:48 -0800 |
commit | 4e468ed2eb86a2406e14f1eca82072ee501d05fd (patch) | |
tree | 4e05b3c66eef86531e464521a3bf96a1864d4bf5 /libc/arch-x86/syscalls | |
parent | a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 (diff) | |
download | bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.zip bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.gz bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'libc/arch-x86/syscalls')
25 files changed, 519 insertions, 41 deletions
diff --git a/libc/arch-x86/syscalls/fork.S b/libc/arch-x86/syscalls/__fork.S index fbc1af3..4b5d1c6 100644 --- a/libc/arch-x86/syscalls/fork.S +++ b/libc/arch-x86/syscalls/__fork.S @@ -2,11 +2,11 @@ #include <sys/linux-syscalls.h> .text - .type fork, @function - .globl fork + .type __fork, @function + .globl __fork .align 4 -fork: +__fork: pushl %ebx mov 8(%esp), %ebx movl $__NR_fork, %eax diff --git a/libc/arch-x86/syscalls/__pread64.S b/libc/arch-x86/syscalls/__pread64.S new file mode 100644 index 0000000..3114673 --- /dev/null +++ b/libc/arch-x86/syscalls/__pread64.S @@ -0,0 +1,35 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type __pread64, @function + .globl __pread64 + .align 4 + +__pread64: + pushl %ebx + pushl %ecx + pushl %edx + pushl %esi + pushl %edi + mov 24(%esp), %ebx + mov 28(%esp), %ecx + mov 32(%esp), %edx + mov 36(%esp), %esi + mov 40(%esp), %edi + movl $__NR_pread64, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %edi + popl %esi + popl %edx + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/__pwrite64.S b/libc/arch-x86/syscalls/__pwrite64.S new file mode 100644 index 0000000..28f6536 --- /dev/null +++ b/libc/arch-x86/syscalls/__pwrite64.S @@ -0,0 +1,35 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type __pwrite64, @function + .globl __pwrite64 + .align 4 + +__pwrite64: + pushl %ebx + pushl %ecx + pushl %edx + pushl %esi + pushl %edi + mov 24(%esp), %ebx + mov 28(%esp), %ecx + mov 32(%esp), %edx + mov 36(%esp), %esi + mov 40(%esp), %edi + movl $__NR_pwrite64, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %edi + popl %esi + popl %edx + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/timer_create.S b/libc/arch-x86/syscalls/__timer_create.S index a215210..66b0cea 100644 --- a/libc/arch-x86/syscalls/timer_create.S +++ b/libc/arch-x86/syscalls/__timer_create.S @@ -2,11 +2,11 @@ #include <sys/linux-syscalls.h> .text - .type timer_create, @function - .globl timer_create + .type __timer_create, @function + .globl __timer_create .align 4 -timer_create: +__timer_create: pushl %ebx pushl %ecx pushl %edx diff --git a/libc/arch-x86/syscalls/timer_delete.S b/libc/arch-x86/syscalls/__timer_delete.S index f939db6..4344d08 100644 --- a/libc/arch-x86/syscalls/timer_delete.S +++ b/libc/arch-x86/syscalls/__timer_delete.S @@ -2,11 +2,11 @@ #include <sys/linux-syscalls.h> .text - .type timer_delete, @function - .globl timer_delete + .type __timer_delete, @function + .globl __timer_delete .align 4 -timer_delete: +__timer_delete: pushl %ebx mov 8(%esp), %ebx movl $__NR_timer_delete, %eax diff --git a/libc/arch-x86/syscalls/timer_getoverrun.S b/libc/arch-x86/syscalls/__timer_getoverrun.S index 0a1fa1d..4371415 100644 --- a/libc/arch-x86/syscalls/timer_getoverrun.S +++ b/libc/arch-x86/syscalls/__timer_getoverrun.S @@ -2,11 +2,11 @@ #include <sys/linux-syscalls.h> .text - .type timer_getoverrun, @function - .globl timer_getoverrun + .type __timer_getoverrun, @function + .globl __timer_getoverrun .align 4 -timer_getoverrun: +__timer_getoverrun: pushl %ebx mov 8(%esp), %ebx movl $__NR_timer_getoverrun, %eax diff --git a/libc/arch-x86/syscalls/timer_gettime.S b/libc/arch-x86/syscalls/__timer_gettime.S index 07258be..3923b0a 100644 --- a/libc/arch-x86/syscalls/timer_gettime.S +++ b/libc/arch-x86/syscalls/__timer_gettime.S @@ -2,11 +2,11 @@ #include <sys/linux-syscalls.h> .text - .type timer_gettime, @function - .globl timer_gettime + .type __timer_gettime, @function + .globl __timer_gettime .align 4 -timer_gettime: +__timer_gettime: pushl %ebx pushl %ecx mov 12(%esp), %ebx diff --git a/libc/arch-x86/syscalls/timer_settime.S b/libc/arch-x86/syscalls/__timer_settime.S index 6c3784a..cabb7df 100644 --- a/libc/arch-x86/syscalls/timer_settime.S +++ b/libc/arch-x86/syscalls/__timer_settime.S @@ -2,11 +2,11 @@ #include <sys/linux-syscalls.h> .text - .type timer_settime, @function - .globl timer_settime + .type __timer_settime, @function + .globl __timer_settime .align 4 -timer_settime: +__timer_settime: pushl %ebx pushl %ecx pushl %edx diff --git a/libc/arch-x86/syscalls/accept.S b/libc/arch-x86/syscalls/accept.S new file mode 100644 index 0000000..ccd56e7 --- /dev/null +++ b/libc/arch-x86/syscalls/accept.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type accept, @function + .globl accept + .align 4 + +accept: + pushl %ebx + pushl %ecx + mov $5, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/bind.S b/libc/arch-x86/syscalls/bind.S new file mode 100644 index 0000000..2172cfb --- /dev/null +++ b/libc/arch-x86/syscalls/bind.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type bind, @function + .globl bind + .align 4 + +bind: + pushl %ebx + pushl %ecx + mov $2, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/connect.S b/libc/arch-x86/syscalls/connect.S new file mode 100644 index 0000000..8b8ce4e --- /dev/null +++ b/libc/arch-x86/syscalls/connect.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type connect, @function + .globl connect + .align 4 + +connect: + pushl %ebx + pushl %ecx + mov $3, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/getitimer.S b/libc/arch-x86/syscalls/getitimer.S new file mode 100644 index 0000000..f170ebf --- /dev/null +++ b/libc/arch-x86/syscalls/getitimer.S @@ -0,0 +1,26 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type getitimer, @function + .globl getitimer + .align 4 + +getitimer: + pushl %ebx + pushl %ecx + mov 12(%esp), %ebx + mov 16(%esp), %ecx + movl $__NR_getitimer, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/getpeername.S b/libc/arch-x86/syscalls/getpeername.S new file mode 100644 index 0000000..b6f8eb8 --- /dev/null +++ b/libc/arch-x86/syscalls/getpeername.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type getpeername, @function + .globl getpeername + .align 4 + +getpeername: + pushl %ebx + pushl %ecx + mov $7, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/getsockname.S b/libc/arch-x86/syscalls/getsockname.S new file mode 100644 index 0000000..884acd9 --- /dev/null +++ b/libc/arch-x86/syscalls/getsockname.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type getsockname, @function + .globl getsockname + .align 4 + +getsockname: + pushl %ebx + pushl %ecx + mov $6, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/getsockopt.S b/libc/arch-x86/syscalls/getsockopt.S new file mode 100644 index 0000000..a606532 --- /dev/null +++ b/libc/arch-x86/syscalls/getsockopt.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type getsockopt, @function + .globl getsockopt + .align 4 + +getsockopt: + pushl %ebx + pushl %ecx + mov $15, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/listen.S b/libc/arch-x86/syscalls/listen.S new file mode 100644 index 0000000..de310cf --- /dev/null +++ b/libc/arch-x86/syscalls/listen.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type listen, @function + .globl listen + .align 4 + +listen: + pushl %ebx + pushl %ecx + mov $4, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/recvfrom.S b/libc/arch-x86/syscalls/recvfrom.S new file mode 100644 index 0000000..3a38518 --- /dev/null +++ b/libc/arch-x86/syscalls/recvfrom.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type recvfrom, @function + .globl recvfrom + .align 4 + +recvfrom: + pushl %ebx + pushl %ecx + mov $12, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/recvmsg.S b/libc/arch-x86/syscalls/recvmsg.S new file mode 100644 index 0000000..aee69d6 --- /dev/null +++ b/libc/arch-x86/syscalls/recvmsg.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type recvmsg, @function + .globl recvmsg + .align 4 + +recvmsg: + pushl %ebx + pushl %ecx + mov $17, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/sendmsg.S b/libc/arch-x86/syscalls/sendmsg.S new file mode 100644 index 0000000..5f26623 --- /dev/null +++ b/libc/arch-x86/syscalls/sendmsg.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type sendmsg, @function + .globl sendmsg + .align 4 + +sendmsg: + pushl %ebx + pushl %ecx + mov $16, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S new file mode 100644 index 0000000..d79a2ba --- /dev/null +++ b/libc/arch-x86/syscalls/sendto.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type sendto, @function + .globl sendto + .align 4 + +sendto: + pushl %ebx + pushl %ecx + mov $11, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/setsockopt.S b/libc/arch-x86/syscalls/setsockopt.S new file mode 100644 index 0000000..d1c986a --- /dev/null +++ b/libc/arch-x86/syscalls/setsockopt.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type setsockopt, @function + .globl setsockopt + .align 4 + +setsockopt: + pushl %ebx + pushl %ecx + mov $14, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/shutdown.S b/libc/arch-x86/syscalls/shutdown.S new file mode 100644 index 0000000..45f0664 --- /dev/null +++ b/libc/arch-x86/syscalls/shutdown.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type shutdown, @function + .globl shutdown + .align 4 + +shutdown: + pushl %ebx + pushl %ecx + mov $13, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/socket.S b/libc/arch-x86/syscalls/socket.S new file mode 100644 index 0000000..89a8358 --- /dev/null +++ b/libc/arch-x86/syscalls/socket.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type socket, @function + .globl socket + .align 4 + +socket: + pushl %ebx + pushl %ecx + mov $1, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/socketpair.S b/libc/arch-x86/syscalls/socketpair.S new file mode 100644 index 0000000..0222989 --- /dev/null +++ b/libc/arch-x86/syscalls/socketpair.S @@ -0,0 +1,27 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type socketpair, @function + .globl socketpair + .align 4 + +socketpair: + pushl %ebx + pushl %ecx + mov $8, %ebx + mov %esp, %ecx + addl $12, %ecx + movl $__NR_socketcall, %eax + int $0x80 + cmpl $-129, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno + addl $4, %esp + orl $-1, %eax +1: + popl %ecx + popl %ebx + ret diff --git a/libc/arch-x86/syscalls/vfork.S b/libc/arch-x86/syscalls/vfork.S deleted file mode 100644 index 55cb9f0..0000000 --- a/libc/arch-x86/syscalls/vfork.S +++ /dev/null @@ -1,23 +0,0 @@ -/* autogenerated by gensyscalls.py */ -#include <sys/linux-syscalls.h> - - .text - .type vfork, @function - .globl vfork - .align 4 - -vfork: - pushl %ebx - mov 8(%esp), %ebx - movl $__NR_vfork, %eax - int $0x80 - cmpl $-129, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno - addl $4, %esp - orl $-1, %eax -1: - popl %ebx - ret |