1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
11 var sigset_all
= sigset
{^uint32(0), ^uint32(0)}
13 func sigaddset(mask
*sigset
, i
int) {
14 (*mask
)[(i
-1)/32] |
= 1 << ((uint32(i
) - 1) & 31)
17 func sigdelset(mask
*sigset
, i
int) {
18 (*mask
)[(i
-1)/32] &^= 1 << ((uint32(i
) - 1) & 31)
21 func sigfillset(mask
*uint64) {
25 func sigcopyset(mask
*sigset
, m sigmask
) {
26 copy((*mask
)[:], m
[:])