mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: include constants and defs_*_*.h types in generated Go defs
I had to rename Kevent and Sigaction to avoid the functions of the same (lowercase) name. LGTM=iant, r R=golang-codereviews, r, iant, aram.h CC=dvyukov, golang-codereviews, khr https://golang.org/cl/140740043
This commit is contained in:
parent
7f2e68e982
commit
9a75c74836
31 changed files with 91 additions and 77 deletions
|
|
@ -263,12 +263,12 @@ typedef struct sigaction {
|
|||
} __sigaction_u; /* signal handler */
|
||||
uint32 sa_mask; /* signal mask to apply */
|
||||
int32 sa_flags; /* see signal options below */
|
||||
} Sigaction;
|
||||
} SigactionT;
|
||||
|
||||
void
|
||||
runtime·setsig(int32 i, GoSighandler *fn, bool restart)
|
||||
{
|
||||
Sigaction sa;
|
||||
SigactionT sa;
|
||||
|
||||
runtime·memclr((byte*)&sa, sizeof sa);
|
||||
sa.sa_flags = SA_SIGINFO|SA_ONSTACK;
|
||||
|
|
@ -284,7 +284,7 @@ runtime·setsig(int32 i, GoSighandler *fn, bool restart)
|
|||
GoSighandler*
|
||||
runtime·getsig(int32 i)
|
||||
{
|
||||
Sigaction sa;
|
||||
SigactionT sa;
|
||||
|
||||
runtime·memclr((byte*)&sa, sizeof sa);
|
||||
runtime·sigaction(i, nil, &sa);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue