syscall: darwin: more complete list of signals

Grepped straight out of the appropriate signal.h, with order and comments preserved verbatim.

Makes 1.18 tests happier.
Этот коммит содержится в:
Dan Kegel 2022-03-19 13:22:32 -07:00 коммит произвёл Ron Evans
родитель f159573975
коммит e259598b68

Просмотреть файл

@ -74,13 +74,20 @@ const (
type Signal int type Signal int
// Source: https://opensource.apple.com/source/xnu/xnu-7195.81.3/bsd/sys/signal.h
const ( const (
SIGCHLD Signal = 0x14 SIGINT Signal = 2 /* interrupt */
SIGINT Signal = 0x2 SIGQUIT Signal = 3 /* quit */
SIGKILL Signal = 0x9 SIGILL Signal = 4 /* illegal instruction (not reset when caught) */
SIGTRAP Signal = 0x5 SIGTRAP Signal = 5 /* trace trap (not reset when caught) */
SIGQUIT Signal = 0x3 SIGABRT Signal = 6 /* abort() */
SIGTERM Signal = 0xf SIGFPE Signal = 8 /* floating point exception */
SIGKILL Signal = 9 /* kill (cannot be caught or ignored) */
SIGBUS Signal = 10 /* bus error */
SIGSEGV Signal = 11 /* segmentation violation */
SIGPIPE Signal = 13 /* write on a pipe with no one to read it */
SIGTERM Signal = 15 /* software termination signal from kill */
SIGCHLD Signal = 20 /* to parent on child stop or exit */
) )
func (s Signal) Signal() {} func (s Signal) Signal() {}