aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2015-10-24 13:28:00 +0200
committerDavid du Colombier <0intro@gmail.com>2015-10-26 22:12:46 +0000
commit8993f79eaccbb27455e2280fa2275fe80b75bde6 (patch)
tree545d9563f37585f311fb272bc575c3d104c57347
parentd093bf489b81310b2ce4a78e4a233868e961d0d8 (diff)
downloadgo-8993f79eaccbb27455e2280fa2275fe80b75bde6.tar.xz
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>
-rw-r--r--src/syscall/errors_plan9.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/syscall/errors_plan9.go b/src/syscall/errors_plan9.go
index ede3d6a329..d7634c995e 100644
--- a/src/syscall/errors_plan9.go
+++ b/src/syscall/errors_plan9.go
@@ -46,3 +46,13 @@ var (
EACCES = NewError("access permission denied")
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")
+)