mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-26 19:15:27 +00:00
First commit
This commit is contained in:
20
third_party/github.com/fsouza/go-dockerclient/utils/uname_linux.go
vendored
Normal file
20
third_party/github.com/fsouza/go-dockerclient/utils/uname_linux.go
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright 2014 Docker authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the DOCKER-LICENSE file.
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user