// 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 windows

package signal

import (
	
	
)

// Defined by the runtime package.
func (uint32)
func (uint32)
func (uint32)
func (uint32) bool
func () uint32

func () {
	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
		}
		return 
	default:
		return -1
	}
}

func ( int) {
	signal_enable(uint32())
}

func ( int) {
	signal_disable(uint32())
}

func ( int) {
	signal_ignore(uint32())
}

func ( int) bool {
	return signal_ignored(uint32())
}