OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update to current version of Go library.
[pf3gnuchains/gcc-fork.git]
/
libgo
/
syscalls
/
syscall_unix.go
diff --git
a/libgo/syscalls/syscall_unix.go
b/libgo/syscalls/syscall_unix.go
index
b5a660e
..
e633ea1
100644
(file)
--- a/
libgo/syscalls/syscall_unix.go
+++ b/
libgo/syscalls/syscall_unix.go
@@
-56,3
+56,12
@@
func munmap(addr uintptr, length uintptr) (errno int) {
}
return
}
+
+func libc_getrusage(who int, rusage *Rusage) int __asm__ ("getrusage")
+
+func Getrusage(who int, rusage *Rusage) (errno int) {
+ if libc_getrusage(who, rusage) < 0 {
+ errno = GetErrno()
+ }
+ return
+}