diff options
Diffstat (limited to 'src/pkg/os/proc.go')
-rw-r--r-- | src/pkg/os/proc.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/os/proc.go b/src/pkg/os/proc.go index dfe388f25..61545f445 100644 --- a/src/pkg/os/proc.go +++ b/src/pkg/os/proc.go @@ -8,8 +8,8 @@ package os import "syscall" -var Args []string // provided by runtime -var Envs []string // provided by runtime +// Args hold the command-line arguments, starting with the program name. +var Args []string // Getuid returns the numeric user id of the caller. func Getuid() int { return syscall.Getuid() } @@ -24,7 +24,7 @@ func Getgid() int { return syscall.Getgid() } func Getegid() int { return syscall.Getegid() } // Getgroups returns a list of the numeric ids of groups that the caller belongs to. -func Getgroups() ([]int, Error) { +func Getgroups() ([]int, error) { gids, e := syscall.Getgroups() return gids, NewSyscallError("getgroups", e) } |