summaryrefslogtreecommitdiff
path: root/src/os/proc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/proc.go')
-rw-r--r--src/os/proc.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/proc.go b/src/os/proc.go
index 38c436ec5..b63c85ad9 100644
--- a/src/os/proc.go
+++ b/src/os/proc.go
@@ -11,6 +11,12 @@ import "syscall"
// Args hold the command-line arguments, starting with the program name.
var Args []string
+func init() {
+ Args = runtime_args()
+}
+
+func runtime_args() []string // in package runtime
+
// Getuid returns the numeric user id of the caller.
func Getuid() int { return syscall.Getuid() }