diff options
author | Russ Cox <rsc@golang.org> | 2010-06-21 20:53:49 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-06-21 20:53:49 -0700 |
commit | f9ef281e90769afebd63a42f3606d12cf9b63e38 (patch) | |
tree | 6b1e78dda59993b1838d8b1ba5406b5afd7c7c08 /src/pkg/runtime/sig.go | |
parent | 52c4f3e4ddeeb956b74d41ab6a0c80bc1f2b315d (diff) | |
download | golang-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.go | 16 |
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() |