summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/sig.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-06-21 20:53:49 -0700
committerRuss Cox <rsc@golang.org>2010-06-21 20:53:49 -0700
commitf9ef281e90769afebd63a42f3606d12cf9b63e38 (patch)
tree6b1e78dda59993b1838d8b1ba5406b5afd7c7c08 /src/pkg/runtime/sig.go
parent52c4f3e4ddeeb956b74d41ab6a0c80bc1f2b315d (diff)
downloadgolang-f9ef281e90769afebd63a42f3606d12cf9b63e38.tar.gz
runtime: split extern.go into debug.go, extern.go, sig.go.
move mal next to the other malloc functions. R=r CC=golang-dev http://codereview.appspot.com/1701045
Diffstat (limited to 'src/pkg/runtime/sig.go')
-rw-r--r--src/pkg/runtime/sig.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pkg/runtime/sig.go b/src/pkg/runtime/sig.go
new file mode 100644
index 000000000..6d560b900
--- /dev/null
+++ b/src/pkg/runtime/sig.go
@@ -0,0 +1,16 @@
+// Copyright 2009 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package runtime
+
+// Sigrecv returns a bitmask of signals that have arrived since the last call to Sigrecv.
+// It blocks until at least one signal arrives.
+func Sigrecv() uint32
+
+// Signame returns a string describing the signal, or "" if the signal is unknown.
+func Signame(sig int32) string
+
+// Siginit enables receipt of signals via Sigrecv. It should typically
+// be called during initialization.
+func Siginit()