mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 14:52:28 +00:00
Favor siginfo_t over struct siginfo
This commit is contained in:
parent
c638eabfe0
commit
deaef81463
20 changed files with 37 additions and 39 deletions
|
@ -48,7 +48,7 @@ TEST(signal, test) {
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// signal round-trip delivery takes about 1µs
|
||||
|
||||
void OnSigTrap(int sig, struct siginfo *si, void *ctx) {
|
||||
void OnSigTrap(int sig, siginfo_t *si, void *ctx) {
|
||||
}
|
||||
|
||||
void TrapBench(int n) {
|
||||
|
@ -79,7 +79,7 @@ BENCH(signal, trapBenchSiginfo) {
|
|||
|
||||
#ifdef __x86_64__
|
||||
|
||||
void OnSigHlt(int sig, struct siginfo *si, void *vctx) {
|
||||
void OnSigHlt(int sig, siginfo_t *si, void *vctx) {
|
||||
struct ucontext *ctx = vctx;
|
||||
ctx->uc_mcontext.rip += 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue