github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/signal/signal_linux.go (about) 1 // +build !mips,!mipsle,!mips64,!mips64le 2 3 package signal // import "github.com/demonoid81/moby/pkg/signal" 4 5 import ( 6 "syscall" 7 8 "golang.org/x/sys/unix" 9 ) 10 11 const ( 12 sigrtmin = 34 13 sigrtmax = 64 14 ) 15 16 // SignalMap is a map of Linux signals. 17 var SignalMap = map[string]syscall.Signal{ 18 "ABRT": unix.SIGABRT, 19 "ALRM": unix.SIGALRM, 20 "BUS": unix.SIGBUS, 21 "CHLD": unix.SIGCHLD, 22 "CLD": unix.SIGCLD, 23 "CONT": unix.SIGCONT, 24 "FPE": unix.SIGFPE, 25 "HUP": unix.SIGHUP, 26 "ILL": unix.SIGILL, 27 "INT": unix.SIGINT, 28 "IO": unix.SIGIO, 29 "IOT": unix.SIGIOT, 30 "KILL": unix.SIGKILL, 31 "PIPE": unix.SIGPIPE, 32 "POLL": unix.SIGPOLL, 33 "PROF": unix.SIGPROF, 34 "PWR": unix.SIGPWR, 35 "QUIT": unix.SIGQUIT, 36 "SEGV": unix.SIGSEGV, 37 "STKFLT": unix.SIGSTKFLT, 38 "STOP": unix.SIGSTOP, 39 "SYS": unix.SIGSYS, 40 "TERM": unix.SIGTERM, 41 "TRAP": unix.SIGTRAP, 42 "TSTP": unix.SIGTSTP, 43 "TTIN": unix.SIGTTIN, 44 "TTOU": unix.SIGTTOU, 45 "URG": unix.SIGURG, 46 "USR1": unix.SIGUSR1, 47 "USR2": unix.SIGUSR2, 48 "VTALRM": unix.SIGVTALRM, 49 "WINCH": unix.SIGWINCH, 50 "XCPU": unix.SIGXCPU, 51 "XFSZ": unix.SIGXFSZ, 52 "RTMIN": sigrtmin, 53 "RTMIN+1": sigrtmin + 1, 54 "RTMIN+2": sigrtmin + 2, 55 "RTMIN+3": sigrtmin + 3, 56 "RTMIN+4": sigrtmin + 4, 57 "RTMIN+5": sigrtmin + 5, 58 "RTMIN+6": sigrtmin + 6, 59 "RTMIN+7": sigrtmin + 7, 60 "RTMIN+8": sigrtmin + 8, 61 "RTMIN+9": sigrtmin + 9, 62 "RTMIN+10": sigrtmin + 10, 63 "RTMIN+11": sigrtmin + 11, 64 "RTMIN+12": sigrtmin + 12, 65 "RTMIN+13": sigrtmin + 13, 66 "RTMIN+14": sigrtmin + 14, 67 "RTMIN+15": sigrtmin + 15, 68 "RTMAX-14": sigrtmax - 14, 69 "RTMAX-13": sigrtmax - 13, 70 "RTMAX-12": sigrtmax - 12, 71 "RTMAX-11": sigrtmax - 11, 72 "RTMAX-10": sigrtmax - 10, 73 "RTMAX-9": sigrtmax - 9, 74 "RTMAX-8": sigrtmax - 8, 75 "RTMAX-7": sigrtmax - 7, 76 "RTMAX-6": sigrtmax - 6, 77 "RTMAX-5": sigrtmax - 5, 78 "RTMAX-4": sigrtmax - 4, 79 "RTMAX-3": sigrtmax - 3, 80 "RTMAX-2": sigrtmax - 2, 81 "RTMAX-1": sigrtmax - 1, 82 "RTMAX": sigrtmax, 83 }