43 lines
1 KiB
Go
43 lines
1 KiB
Go
|
package signal
|
||
|
|
||
|
import (
|
||
|
"syscall"
|
||
|
)
|
||
|
|
||
|
// SignalMap is a map of Solaris signals.
|
||
|
// SIGINFO and SIGTHR not defined for Solaris
|
||
|
var SignalMap = map[string]syscall.Signal{
|
||
|
"ABRT": syscall.SIGABRT,
|
||
|
"ALRM": syscall.SIGALRM,
|
||
|
"BUF": syscall.SIGBUS,
|
||
|
"CHLD": syscall.SIGCHLD,
|
||
|
"CONT": syscall.SIGCONT,
|
||
|
"EMT": syscall.SIGEMT,
|
||
|
"FPE": syscall.SIGFPE,
|
||
|
"HUP": syscall.SIGHUP,
|
||
|
"ILL": syscall.SIGILL,
|
||
|
"INT": syscall.SIGINT,
|
||
|
"IO": syscall.SIGIO,
|
||
|
"IOT": syscall.SIGIOT,
|
||
|
"KILL": syscall.SIGKILL,
|
||
|
"LWP": syscall.SIGLWP,
|
||
|
"PIPE": syscall.SIGPIPE,
|
||
|
"PROF": syscall.SIGPROF,
|
||
|
"QUIT": syscall.SIGQUIT,
|
||
|
"SEGV": syscall.SIGSEGV,
|
||
|
"STOP": syscall.SIGSTOP,
|
||
|
"SYS": syscall.SIGSYS,
|
||
|
"TERM": syscall.SIGTERM,
|
||
|
"TRAP": syscall.SIGTRAP,
|
||
|
"TSTP": syscall.SIGTSTP,
|
||
|
"TTIN": syscall.SIGTTIN,
|
||
|
"TTOU": syscall.SIGTTOU,
|
||
|
"URG": syscall.SIGURG,
|
||
|
"USR1": syscall.SIGUSR1,
|
||
|
"USR2": syscall.SIGUSR2,
|
||
|
"VTALRM": syscall.SIGVTALRM,
|
||
|
"WINCH": syscall.SIGWINCH,
|
||
|
"XCPU": syscall.SIGXCPU,
|
||
|
"XFSZ": syscall.SIGXFSZ,
|
||
|
}
|