diff options
Diffstat (limited to 'libc/arch-x86/syscalls/sendto.S')
-rw-r--r-- | libc/arch-x86/syscalls/sendto.S | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/sendto.S b/libc/arch-x86/syscalls/sendto.S new file mode 100644 index 000000000..2df5e4f87 --- /dev/null +++ b/libc/arch-x86/syscalls/sendto.S @@ -0,0 +1,35 @@ +/* Generated by gensyscalls.py. Do not edit. */ + +#include <private/bionic_asm.h> + +ENTRY(sendto) + pushl %ebx + .cfi_def_cfa_offset 8 + .cfi_rel_offset ebx, 0 + pushl %ecx + .cfi_adjust_cfa_offset 4 + .cfi_rel_offset ecx, 0 + + call __kernel_syscall + pushl %eax + .cfi_adjust_cfa_offset 4 + .cfi_rel_offset eax, 0 + + mov $11, %ebx + mov %esp, %ecx + addl $16, %ecx + movl $__NR_socketcall, %eax + call *(%esp) + addl $4, %esp + + cmpl $-MAX_ERRNO, %eax + jb 1f + negl %eax + pushl %eax + call __set_errno_internal + addl $4, %esp +1: + popl %ecx + popl %ebx + ret +END(sendto) |