1
0
mirror of https://github.com/golang/go synced 2024-11-05 17:46:16 -07:00

getrusage on darwin; untested but builds.

R=dsymonds
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=29424
CL=29447
This commit is contained in:
Russ Cox 2009-05-27 10:05:23 -07:00
parent fec0c01e7f
commit 5f460b38f9

View File

@ -13,3 +13,8 @@ import (
"syscall";
"unsafe";
)
func Getrusage(who int64, usage *Rusage) (ret, errno int64) {
r1, r2, err := Syscall(SYS_GETRUSAGE, who, int64(uintptr(unsafe.Pointer(usage))), 0);
return r1, err
}