summaryrefslogtreecommitdiff
path: root/src/pkg/os/proc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/os/proc.go')
-rw-r--r--src/pkg/os/proc.go20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/pkg/os/proc.go b/src/pkg/os/proc.go
index 0dd295edf..e780cfc9a 100644
--- a/src/pkg/os/proc.go
+++ b/src/pkg/os/proc.go
@@ -13,24 +13,16 @@ var Envs []string // provided by runtime
// Getuid returns the numeric user id of the caller.
-func Getuid() int {
- return syscall.Getuid();
-}
+func Getuid() int { return syscall.Getuid() }
// Geteuid returns the numeric effective user id of the caller.
-func Geteuid() int {
- return syscall.Geteuid();
-}
+func Geteuid() int { return syscall.Geteuid() }
// Getgid returns the numeric group id of the caller.
-func Getgid() int {
- return syscall.Getgid();
-}
+func Getgid() int { return syscall.Getgid() }
// Getegid returns the numeric effective group id of the caller.
-func Getegid() int {
- return syscall.Getegid();
-}
+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) {
@@ -40,6 +32,4 @@ func Getgroups() ([]int, Error) {
// Exit causes the current program to exit with the given status code.
// Conventionally, code zero indicates success, non-zero an error.
-func Exit(code int) {
- syscall.Exit(code);
-}
+func Exit(code int) { syscall.Exit(code) }