aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/runtime.c')
-rw-r--r--libgo/runtime/runtime.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/runtime/runtime.c b/libgo/runtime/runtime.c
index e0a7925..8611596 100644
--- a/libgo/runtime/runtime.c
+++ b/libgo/runtime/runtime.c
@@ -117,6 +117,12 @@ runtime_args(int32 c, byte **v)
runtime_sysargs(c, v);
}
+byte*
+runtime_progname()
+{
+ return argc == 0 ? nil : argv[0];
+}
+
void
runtime_goargs(void)
{