github.com/OpenFlowLabs/moby@v17.12.1-ce-rc2+incompatible/pkg/parsers/kernel/uname_solaris.go (about)

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