moby/utils/uname_linux.go
2014-01-31 03:16:42 -07:00

18 lines
238 B
Go

// +build amd64
package utils
import (
"syscall"
)
type Utsname syscall.Utsname
func uname() (*syscall.Utsname, error) {
uts := &syscall.Utsname{}
if err := syscall.Uname(uts); err != nil {
return nil, err
}
return uts, nil
}