286bd69270
Signed-off-by: Andrew Page <admwiggin@gmail.com>
16 lines
222 B
Go
16 lines
222 B
Go
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
|
|
}
|