summaryrefslogtreecommitdiff
path: root/src/pkg/os/proc.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-06 14:24:38 -0800
committerRobert Griesemer <gri@golang.org>2009-11-06 14:24:38 -0800
commit828334dd95ce8e4bf3662bd5c89d7c417f0741d0 (patch)
treefd7e0c9961bc3af2ddf105e9cc1943f2509ac584 /src/pkg/os/proc.go
parenteb5cdfd67ff6d32df4c4c27840eaee027c5e3512 (diff)
downloadgolang-828334dd95ce8e4bf3662bd5c89d7c417f0741d0.tar.gz
- fine-tuning of one-line func heuristic (nodes.go)
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
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) }