blob: e4e3760813341740c5210b6bd3ee3a807b155290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall
// Process operations for Linux
// TODO:
// - getrlimit, setrlimit
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
}
|