Source File
signal_unix.go
Belonging Package
os/signal
// Copyright 2012 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris windowspackage signalimport ()// Defined by the runtime package.func (uint32)func (uint32)func (uint32)func (uint32) boolfunc () uint32func () {for {process(syscall.Signal(signal_recv()))}}func () {watchSignalLoop = loop}const (numSig = 65 // max across all systems)func ( os.Signal) int {switch sig := .(type) {case syscall.Signal::= int()if < 0 || >= numSig {return -1}returndefault:return -1}}func ( int) {signal_enable(uint32())}func ( int) {signal_disable(uint32())}func ( int) {signal_ignore(uint32())}func ( int) bool {return signal_ignored(uint32())}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)