github.com/mizzy/docker@v1.5.0/pkg/parsers/kernel/uname_linux.go (about)

     1  package kernel
     2  
     3  import (
     4  	"syscall"
     5  )
     6  
     7  type Utsname syscall.Utsname
     8  
     9  func uname() (*syscall.Utsname, error) {
    10  	uts := &syscall.Utsname{}
    11  
    12  	if err := syscall.Uname(uts); err != nil {
    13  		return nil, err
    14  	}
    15  	return uts, nil
    16  }