1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Update vendor/

This commit is contained in:
Darren Shepherd
2016-06-01 01:42:22 -07:00
parent 8ab32c820f
commit 03db5d1058
832 changed files with 125590 additions and 26 deletions

22
vendor/github.com/cloudfoundry/gosigar/sigar_util.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
// Copyright (c) 2012 VMware, Inc.
package sigar
import (
"unsafe"
)
func bytePtrToString(ptr *int8) string {
bytes := (*[10000]byte)(unsafe.Pointer(ptr))
n := 0
for bytes[n] != 0 {
n++
}
return string(bytes[0:n])
}
func chop(buf []byte) []byte {
return buf[0 : len(buf)-1]
}