DescriptionIntroduce sys_sigprocmask and sys_sigaction.
This is preparation of nacl_helper_nonsfi's secompbpf sandbox
implementation.
PNaCl toolchain's signal ABI is incompatible with Linux's.
For example, the length of sigset_t is shoter than Linux's.
(Android has also same problem).
siginfo_t has different memory layout.
Some signal numbers, including SIGBUS, SIGCHLD and SIGSYS,
or some signal flags are different.
This CL fills the gap, by introducing linux_signal.h and
two syscalls, sys_sigprocmask and sys_sigaction.
Also, as signal.h provides ucontext_t, but PNaCl toolchain
does not provides ucontext_t, this CL re-use the
android_ucontext.h (by renaming it to linux_ucontext.h).
TEST=Ran bots.
BUG=358465
CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_chromium_trusty32_rel,linux_arm
Committed: https://crrev.com/3a315e3246a5191cee27216c09e669ea2d6c33d3
Cr-Commit-Position: refs/heads/master@{#325634}
Patch Set 1 : #
Total comments: 18
Patch Set 2 : Rebase #Patch Set 3 : #Patch Set 4 : Rebase #Patch Set 5 : #Messages
Total messages: 25 (9 generated)
|