aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2014-03-13 09:00:12 -0700
committerAnthony Martin <ality@pbrane.org>2014-03-13 09:00:12 -0700
commit41aa887be5981844a425c8c71aa7e24cea21a258 (patch)
treeff293e29d7dd55ab4f5406c6652d772201253b6a /src/pkg/runtime/runtime.h
parentc115cda22c82e219654056f6864e9819b922febc (diff)
downloadgo-41aa887be5981844a425c8c71aa7e24cea21a258.tar.xz
runtime: fix signal handling on Plan 9
LGTM=rsc R=rsc, 0intro, aram, jeremyjackins, iant CC=golang-codereviews, lucio.dere, minux.ma, paurea, r https://golang.org/cl/9796043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 8e5e9a1294..01294b70a0 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -468,6 +468,7 @@ enum
SigDefault = 1<<4, // if the signal isn't explicitly requested, don't monitor it
SigHandling = 1<<5, // our signal handler is registered
SigIgnored = 1<<6, // the signal was ignored before we registered for it
+ SigGoExit = 1<<7, // cause all runtime procs to exit (only used on Plan 9).
};
// Layout of in-memory per-function information prepared by linker
@@ -792,6 +793,7 @@ extern uintptr runtime·maxstacksize;
* common functions and data
*/
int32 runtime·strcmp(byte*, byte*);
+int32 runtime·strncmp(byte*, byte*, uintptr);
byte* runtime·strstr(byte*, byte*);
intgo runtime·findnull(byte*);
intgo runtime·findnullw(uint16*);
@@ -840,6 +842,7 @@ void runtime·panicstring(int8*);
bool runtime·canpanic(G*);
void runtime·prints(int8*);
void runtime·printf(int8*, ...);
+int32 runtime·snprintf(byte*, int32, int8*, ...);
byte* runtime·mchr(byte*, byte, byte*);
int32 runtime·mcmp(byte*, byte*, uintptr);
void runtime·memmove(void*, void*, uintptr);