c91872166b
functions to pkg/parsers/kernel, and parsing filters to pkg/parsers/filter. Adjust imports and package references. Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
18 lines
239 B
Go
18 lines
239 B
Go
// +build amd64
|
|
|
|
package kernel
|
|
|
|
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
|
|
}
|