aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-19 11:33:46 -0500
committerRuss Cox <rsc@golang.org>2015-01-21 00:44:50 +0000
commitc4dd7fac89a845d4c9e5e9f1e079d9d7013269de (patch)
treeeb182480048f5810a2e8f8593f476a25c5402616 /include
parent3b2de80309d6a788d33304c1ac9af289a74501e8 (diff)
downloadgo-c4dd7fac89a845d4c9e5e9f1e079d9d7013269de.tar.xz
[dev.cc] cmd/dist, lib9: make GOHOSTARCH, GOHOSTOS available to C programs
Needed for invoking a Go subprocess in the C code. The Go tools live in $GOROOT/pkg/tool/$GOHOSTARCH_$GOHOSTOS. Change-Id: I961b6b8a07de912de174b758b2fb87d77080546d Reviewed-on: https://go-review.googlesource.com/3042 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'include')
-rw-r--r--include/libc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index e4d8799077..d82a19ccce 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -292,6 +292,8 @@ extern char* getgoversion(void);
extern char* getgoarm(void);
extern char* getgo386(void);
extern char* getgoextlinkenabled(void);
+extern char* getgohostos(void);
+extern char* getgohostarch(void);
extern char* mktempdir(void);
extern void removeall(char*);