diff options
author | Elliott Hughes <enh@google.com> | 2013-10-15 11:23:57 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-10-15 11:23:57 -0700 |
commit | 19e62325c268a668692e2b65fde2284079f369aa (patch) | |
tree | 364b827a4b7504b5f00c18a2f1bafc5b7d1d83b8 /libc/arch-x86 | |
parent | abeafbd6d5e11044dd305e48134bc3d84319a3da (diff) | |
download | bionic-19e62325c268a668692e2b65fde2284079f369aa.zip bionic-19e62325c268a668692e2b65fde2284079f369aa.tar.gz bionic-19e62325c268a668692e2b65fde2284079f369aa.tar.bz2 |
Clean up the sigprocmask/pthread_sigmask implementation.
Let's have both use rt_sigprocmask, like in glibc. The 64-bit ABIs
can share the same code as the 32-bit ABIs.
Also, let's test the return side of these calls, not just the
setting.
Bug: 11069919
Change-Id: I11da99f85b5b481870943c520d05ec929b15eddb
Diffstat (limited to 'libc/arch-x86')
-rw-r--r-- | libc/arch-x86/syscalls.mk | 1 | ||||
-rw-r--r-- | libc/arch-x86/syscalls/sigprocmask.S | 27 |
2 files changed, 0 insertions, 28 deletions
diff --git a/libc/arch-x86/syscalls.mk b/libc/arch-x86/syscalls.mk index 79b4f2c..a704905 100644 --- a/libc/arch-x86/syscalls.mk +++ b/libc/arch-x86/syscalls.mk @@ -156,7 +156,6 @@ syscall_src += arch-x86/syscalls/timerfd_create.S syscall_src += arch-x86/syscalls/timerfd_settime.S syscall_src += arch-x86/syscalls/timerfd_gettime.S syscall_src += arch-x86/syscalls/sigaction.S -syscall_src += arch-x86/syscalls/sigprocmask.S syscall_src += arch-x86/syscalls/__sigsuspend.S syscall_src += arch-x86/syscalls/__rt_sigaction.S syscall_src += arch-x86/syscalls/__rt_sigprocmask.S diff --git a/libc/arch-x86/syscalls/sigprocmask.S b/libc/arch-x86/syscalls/sigprocmask.S deleted file mode 100644 index 0ac052e..0000000 --- a/libc/arch-x86/syscalls/sigprocmask.S +++ /dev/null @@ -1,27 +0,0 @@ -/* autogenerated by gensyscalls.py */ -#include <asm/unistd.h> -#include <linux/err.h> -#include <machine/asm.h> - -ENTRY(sigprocmask) - pushl %ebx - pushl %ecx - pushl %edx - mov 16(%esp), %ebx - mov 20(%esp), %ecx - mov 24(%esp), %edx - movl $__NR_sigprocmask, %eax - int $0x80 - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno - addl $4, %esp - orl $-1, %eax -1: - popl %edx - popl %ecx - popl %ebx - ret -END(sigprocmask) |