signames

package
v0.0.0-...-4c3641f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package signames converts strings to signals.

Index

Constants

View Source
const (
	SIGABRT   = "SIGABRT"
	SIGALRM   = "SIGALRM"
	SIGBUS    = "SIGBUS"
	SIGCHLD   = "SIGCHLD"
	SIGCLD    = "SIGCLD"
	SIGCONT   = "SIGCONT"
	SIGFPE    = "SIGFPE"
	SIGHUP    = "SIGHUP"
	SIGILL    = "SIGILL"
	SIGINT    = "SIGINT"
	SIGIO     = "SIGIO"
	SIGIOT    = "SIGIOT"
	SIGKILL   = "SIGKILL"
	SIGPIPE   = "SIGPIPE"
	SIGPOLL   = "SIGPOLL"
	SIGPROF   = "SIGPROF"
	SIGPWR    = "SIGPWR"
	SIGQUIT   = "SIGQUIT"
	SIGSEGV   = "SIGSEGV"
	SIGSTKFLT = "SIGSTKFLT"
	SIGSTOP   = "SIGSTOP"
	SIGSYS    = "SIGSYS"
	SIGTERM   = "SIGTERM"
	SIGTRAP   = "SIGTRAP"
	SIGTSTP   = "SIGTSTP"
	SIGTTIN   = "SIGTTIN"
	SIGTTOU   = "SIGTTOU"
	SIGUNUSED = "SIGUNUSED"
	SIGURG    = "SIGURG"
	SIGUSR1   = "SIGUSR1"
	SIGUSR2   = "SIGUSR2"
	SIGVTALRM = "SIGVTALRM"
	SIGWINCH  = "SIGWINCH"
	SIGXCPU   = "SIGXCPU"
	SIGXFSZ   = "SIGXFSZ"
)

Signal strings. Names are the same as the signal constants names in package syscall. The values are the names as strings.

View Source
const NoSignal syscall.Signal = syscall.Signal(0)

NoSignal is returned when a candidate string does not represent a valid signal.

Variables

This section is empty.

Functions

func ParseSignalName

func ParseSignalName(candidate string) (signal syscall.Signal, ok bool)

ParseSignalName parses a string to a signal. If the string does not represent a valid signal, ok is false and signal is NoSignal.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL