From b5866494eaabd03a8eaeaabd05bd2e043e2795b5 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Tue, 15 Dec 2009 18:21:29 -0800 Subject: os/signal: new package Fixes #71. R=rsc, r https://golang.org/cl/162056 --- src/pkg/runtime/runtime.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 54bc9d8f2d..46df412b39 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -235,6 +235,7 @@ enum SigCatch = 1<<0, SigIgnore = 1<<1, SigRestart = 1<<2, + SigQueue = 1<<3, }; // (will be) shared with go; edit ../cmd/6g/sys.go too. @@ -373,6 +374,10 @@ void breakpoint(void); void gosched(void); void goexit(void); void runcgo(void (*fn)(void*), void*); +void entersyscall(void); +void exitsyscall(void); +void siginit(void); +void sigsend(int32 sig); #pragma varargck argpos printf 1 @@ -485,6 +490,8 @@ float64 ldexp(float64 d, int32 e); float64 modf(float64 d, float64 *ip); void semacquire(uint32*); void semrelease(uint32*); +String signame(int32 sig); + void mapassign(Hmap*, byte*, byte*); void mapaccess(Hmap*, byte*, byte*, bool*); -- cgit v1.3