aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_dragonfly.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-09-27 13:42:28 -0700
committerIan Lance Taylor <iant@golang.org>2016-09-27 21:33:44 +0000
commitfdc167164ecde259bd356cc8e7ae5ccb0903469c (patch)
tree0b4eee66e1530b4f35966e30ac1ee0a0b29e5148 /src/runtime/os_dragonfly.go
parente13df02e5fbf2c0cd8811b826a8c8567efa882dd (diff)
downloadgo-fdc167164ecde259bd356cc8e7ae5ccb0903469c.tar.gz
go-fdc167164ecde259bd356cc8e7ae5ccb0903469c.zip
runtime: remove sigmask type, use sigset instead
The OS-independent sigmask type was not pulling its weight. Replace it with the OS-dependent sigset type. This requires adding an OS-specific sigaddset function, but permits removing the OS-specific sigmaskToSigset function. Change-Id: I43307b512b0264ec291baadaea902f05ce212305 Reviewed-on: https://go-review.googlesource.com/29950 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/os_dragonfly.go')
-rw-r--r--src/runtime/os_dragonfly.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/os_dragonfly.go b/src/runtime/os_dragonfly.go
index df73346a18..495f41805b 100644
--- a/src/runtime/os_dragonfly.go
+++ b/src/runtime/os_dragonfly.go
@@ -273,10 +273,8 @@ func setSignalstackSP(s *stackt, sp uintptr) {
//go:nosplit
//go:nowritebarrierrec
-func sigmaskToSigset(m sigmask) sigset {
- var set sigset
- copy(set.__bits[:], m[:])
- return set
+func sigaddset(mask *sigset, i int) {
+ mask.__bits[(i-1)/32] |= 1 << ((uint32(i) - 1) & 31)
}
func sigdelset(mask *sigset, i int) {