diff options
Diffstat (limited to 'src/os/proc.go')
-rw-r--r-- | src/os/proc.go | 6 |
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() } |