mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Change sigaction_f to match sysv signature (#585)
This commit is contained in:
parent
33b5b5b312
commit
263711965f
23 changed files with 46 additions and 35 deletions
|
@ -43,7 +43,7 @@ TEST(signal, test) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// signal round-trip delivery takes about 1µs
|
||||
|
||||
void OnSigTrap(int sig, struct siginfo *si, struct ucontext *ctx) {
|
||||
void OnSigTrap(int sig, struct siginfo *si, void *ctx) {
|
||||
}
|
||||
|
||||
void TrapBench(int n) {
|
||||
|
@ -72,7 +72,8 @@ BENCH(signal, trapBenchSiginfo) {
|
|||
sigaction(SIGTRAP, &old, 0);
|
||||
}
|
||||
|
||||
void OnSigHlt(int sig, struct siginfo *si, struct ucontext *ctx) {
|
||||
void OnSigHlt(int sig, struct siginfo *si, void *vctx) {
|
||||
struct ucontext *ctx = vctx;
|
||||
ctx->uc_mcontext.rip += 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue