Commit 5f460b38 authored by Russ Cox's avatar Russ Cox

getrusage on darwin; untested but builds.

R=dsymonds
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=29424
CL=29447
parent fec0c01e
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment