syscall: define common notes on Plan 9

There is no signal list on Plan 9, since notes
are strings. However, some programs expect
signals to be defined in the syscall package.
Hence, we define a list of the most common notes.

Updates #11975.

Change-Id: I852e14fd98777c9595a406e04125be1cbebed0fb
Reviewed-on: https://go-review.googlesource.com/16301
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
David du Colombier 2015-10-24 13:28:00 +02:00
parent d093bf489b
commit 8993f79eac
1 changed files with 10 additions and 0 deletions

View File

@ -46,3 +46,13 @@ var (
EACCES = NewError("access permission denied") EACCES = NewError("access permission denied")
EAFNOSUPPORT = NewError("address family not supported by protocol") EAFNOSUPPORT = NewError("address family not supported by protocol")
) )
// Notes
const (
SIGABRT = Note("abort")
SIGALRM = Note("alarm")
SIGHUP = Note("hangup")
SIGINT = Note("interrupt")
SIGKILL = Note("kill")
SIGTERM = Note("interrupt")
)