LEFT | RIGHT |
(no file at all) | |
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 int32 sa_flags; /* see signal options below */ | 17 int32 sa_flags; /* see signal options below */ |
18 int64 sa_mask; /* signal mask to apply */ | 18 int64 sa_mask; /* signal mask to apply */ |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 184 } |
185 m->profilehz = hz; | 185 m->profilehz = hz; |
186 } | 186 } |
187 | 187 |
188 void | 188 void |
189 os·sigpipe(void) | 189 os·sigpipe(void) |
190 { | 190 { |
191 sigaction(SIGPIPE, SIG_DFL, false); | 191 sigaction(SIGPIPE, SIG_DFL, false); |
192 runtime·raisesigpipe(); | 192 runtime·raisesigpipe(); |
193 } | 193 } |
LEFT | RIGHT |