diff options
| author | Andrei Popescu <andreip@google.com> | 2010-02-25 13:27:46 +0000 |
|---|---|---|
| committer | Andrei Popescu <andreip@google.com> | 2010-03-02 11:43:24 +0000 |
| commit | eb9d5ed3477ef8cd9ccfa424ea585541ea3af84a (patch) | |
| tree | 57860bc44d54d743b05f8a7680267170af3f3069 /libc/arch-x86/syscalls | |
| parent | 8f8b5310d2c3fe8782377bd66b65ed14dc6511a4 (diff) | |
| download | bionic-eb9d5ed3477ef8cd9ccfa424ea585541ea3af84a.zip bionic-eb9d5ed3477ef8cd9ccfa424ea585541ea3af84a.tar.gz bionic-eb9d5ed3477ef8cd9ccfa424ea585541ea3af84a.tar.bz2 | |
add sigaltstack syscall
Diffstat (limited to 'libc/arch-x86/syscalls')
| -rw-r--r-- | libc/arch-x86/syscalls/sigaltstack.S | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/sigaltstack.S b/libc/arch-x86/syscalls/sigaltstack.S new file mode 100644 index 0000000..d39419d --- /dev/null +++ b/libc/arch-x86/syscalls/sigaltstack.S @@ -0,0 +1,26 @@ +/* autogenerated by gensyscalls.py */ +#include <sys/linux-syscalls.h> + + .text + .type sigaltstack, @function + .globl sigaltstack + .align 4 + +sigaltstack: + pushl %ebx + pushl %ecx + mov 12(%esp), %ebx + mov 16(%esp), %ecx + movl $__NR_sigaltstack, %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 |
