Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: src/pkg/runtime/signal_netbsd_386.c

Issue 5490053: code review 5490053: runtime: make more build-friendly (Closed)
Patch Set: diff -r 046739c8299b https://go.googlecode.com/hg/ Created 13 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/runtime/signal_linux_arm.c ('k') | src/pkg/runtime/signal_netbsd_amd64.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "runtime.h" 5 #include "runtime.h"
6 #include "defs.h" 6 #include "defs_GOOS_GOARCH.h"
7 #include "signals.h" 7 #include "signals_GOOS.h"
8 #include "os.h" 8 #include "os_GOOS.h"
9 9
10 extern void runtime·sigtramp(void); 10 extern void runtime·sigtramp(void);
11 11
12 typedef struct sigaction { 12 typedef struct sigaction {
13 union { 13 union {
14 void (*__sa_handler)(int32); 14 void (*__sa_handler)(int32);
15 void (*__sa_sigaction)(int32, Siginfo*, void *); 15 void (*__sa_sigaction)(int32, Siginfo*, void *);
16 } __sigaction_u; /* signal handler */ 16 } __sigaction_u; /* signal handler */
17 uint32 sa_mask; /* signal mask to apply */ 17 uint32 sa_mask; /* signal mask to apply */
18 int32 sa_flags; /* see signal options below */ 18 int32 sa_flags; /* see signal options below */
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 180 }
181 m->profilehz = hz; 181 m->profilehz = hz;
182 } 182 }
183 183
184 void 184 void
185 os·sigpipe(void) 185 os·sigpipe(void)
186 { 186 {
187 sigaction(SIGPIPE, SIG_DFL, false); 187 sigaction(SIGPIPE, SIG_DFL, false);
188 runtime·raisesigpipe(); 188 runtime·raisesigpipe();
189 } 189 }
OLDNEW
« no previous file with comments | « src/pkg/runtime/signal_linux_arm.c ('k') | src/pkg/runtime/signal_netbsd_amd64.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b