aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.h
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-21 15:36:23 -0700
committerRob Pike <r@golang.org>2008-06-21 15:36:23 -0700
commitaeb43984ec7c86aee220cc56146e0127de4ce2e3 (patch)
tree7e4f626347e842638a70c0fd9a09bd26b8a586b0 /src/runtime/runtime.h
parent54abac678ac9d92e168360e961214100712ceb4f (diff)
downloadgo-aeb43984ec7c86aee220cc56146e0127de4ce2e3.tar.xz
add signal handling and traceback support therein.
factor the runtime into architecture-dependent and -independent pieces. ditto for the OS dependence. SVN=124020
Diffstat (limited to 'src/runtime/runtime.h')
-rw-r--r--src/runtime/runtime.h8
1 files changed, 8 insertions, 0 deletions
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