mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
065dd231dd
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
18 lines
238 B
Go
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
|
|
}
|