summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/extern.go
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2009-12-15 18:21:29 -0800
committerDavid Symonds <dsymonds@golang.org>2009-12-15 18:21:29 -0800
commit8deb0f24ce1432b9d5a862f80127c5ff095021c8 (patch)
treed9296c7945356dd65d421c452c4b1836d91e3ca6 /src/pkg/runtime/extern.go
parent75d3ba0eecd2fdc9137e55436f88d0671beb37a5 (diff)
downloadgolang-8deb0f24ce1432b9d5a862f80127c5ff095021c8.tar.gz
os/signal: new package
Fixes issue 71. R=rsc, r http://codereview.appspot.com/162056 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/pkg/runtime/extern.go')
-rw-r--r--src/pkg/runtime/extern.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go
index 575caf1f2..27cb73c55 100644
--- a/src/pkg/runtime/extern.go
+++ b/src/pkg/runtime/extern.go
@@ -59,3 +59,10 @@ func Semacquire(s *uint32)
// It is intended as a simple wakeup primitive for use by the synchronization
// library and should not be used directly.
func Semrelease(s *uint32)
+
+// 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