aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/os_linux.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-08-29 16:00:31 -0400
committerRuss Cox <rsc@golang.org>2014-08-29 16:00:31 -0400
commit9a75c748367c2ff84de355b136c33760a6b6928a (patch)
tree0ec3266254b42c228fb02878440c2fa9645fd54d /src/pkg/runtime/os_linux.c
parent7f2e68e9822ce8736d66035d0a3ed3677c2db459 (diff)
downloadgo-9a75c748367c2ff84de355b136c33760a6b6928a.tar.xz
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
Diffstat (limited to 'src/pkg/runtime/os_linux.c')
-rw-r--r--src/pkg/runtime/os_linux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/os_linux.c b/src/pkg/runtime/os_linux.c
index 33c7563743..d3677f2e6c 100644
--- a/src/pkg/runtime/os_linux.c
+++ b/src/pkg/runtime/os_linux.c
@@ -293,7 +293,7 @@ extern void runtime·sigreturn(void); // calls rt_sigreturn, only used with SA_R
void
runtime·setsig(int32 i, GoSighandler *fn, bool restart)
{
- Sigaction sa;
+ SigactionT sa;
runtime·memclr((byte*)&sa, sizeof sa);
sa.sa_flags = SA_ONSTACK | SA_SIGINFO | SA_RESTORER;
@@ -319,7 +319,7 @@ runtime·setsig(int32 i, GoSighandler *fn, bool restart)
GoSighandler*
runtime·getsig(int32 i)
{
- Sigaction sa;
+ SigactionT sa;
runtime·memclr((byte*)&sa, sizeof sa);
if(runtime·rt_sigaction(i, nil, &sa, sizeof(sa.sa_mask)) != 0)