From aeb43984ec7c86aee220cc56146e0127de4ce2e3 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sat, 21 Jun 2008 15:36:23 -0700 Subject: add signal handling and traceback support therein. factor the runtime into architecture-dependent and -independent pieces. ditto for the OS dependence. SVN=124020 --- src/runtime/runtime.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/runtime/runtime.h') diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h index 898c7b4083..fa9395f1be 100644 --- a/src/runtime/runtime.h +++ b/src/runtime/runtime.h @@ -88,6 +88,12 @@ void prints(int8*); void mcpy(byte*, byte*, uint32); void* mal(uint32); uint32 cmpstring(string, string); +void initsig(void); +void traceback(uint8 *pc, uint8 *sp); +struct SigTab { + int32 catch; + int8 *name; +}; /* * low level go -called @@ -98,6 +104,8 @@ void sys_breakpoint(void); uint8* sys_mmap(byte*, uint32, int32, int32, int32, uint32); void sys_memclr(byte*, uint32); void* sys_getcallerpc(void*); +void sys_sigaction(int64, void*, void*); +void sys_rt_sigaction(int64, void*, void*, uint64); /* * runtime go-called -- cgit v1.3