...
Run Format

Source file src/runtime/export_unix_test.go

Documentation: runtime

     1  // Copyright 2017 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.
     4  
     5  // +build darwin dragonfly freebsd linux netbsd openbsd solaris
     6  
     7  package runtime
     8  
     9  func sigismember(mask *sigset, i int) bool {
    10  	clear := *mask
    11  	sigdelset(&clear, i)
    12  	return clear != *mask
    13  }
    14  
    15  func Sigisblocked(i int) bool {
    16  	var sigmask sigset
    17  	sigprocmask(_SIG_SETMASK, nil, &sigmask)
    18  	return sigismember(&sigmask, i)
    19  }
    20  

View as plain text