aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/extern.go
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2009-12-15 18:21:29 -0800
committerRuss Cox <rsc@golang.org>2009-12-15 18:21:29 -0800
commitb5866494eaabd03a8eaeaabd05bd2e043e2795b5 (patch)
tree84efb708e358a0c126fa11d918d75f2cc0e78a05 /src/pkg/runtime/extern.go
parenta47a45ec7741d677ea6582cdeee3419325ac9488 (diff)
downloadgo-b5866494eaabd03a8eaeaabd05bd2e043e2795b5.tar.xz
os/signal: new package
Fixes #71. R=rsc, r https://golang.org/cl/162056
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 575caf1f21..27cb73c558 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