e95f4619cd
Changes most references of syscall to golang.org/x/sys/ Ones aren't changes include, Errno, Signal and SysProcAttr as they haven't been implemented in /x/sys/. Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com> [s390x] switch utsname from unsigned to signed per https://github.com/golang/sys/commit/33267e036fd93fcd26ea95b7bdaf2d8306cb743c char in s390x in the /x/sys/unix package is now signed, so change the buildtags Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com> Upstream-commit: 069fdc8a083cb1663e4f86fe3fd9b9a1aebc3e54 Component: engine
18 lines
447 B
Go
18 lines
447 B
Go
// +build linux freebsd
|
|
|
|
package system
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
// Unmount is a platform-specific helper function to call
|
|
// the unmount syscall.
|
|
func Unmount(dest string) error {
|
|
return unix.Unmount(dest, 0)
|
|
}
|
|
|
|
// CommandLineToArgv should not be used on Unix.
|
|
// It simply returns commandLine in the only element in the returned array.
|
|
func CommandLineToArgv(commandLine string) ([]string, error) {
|
|
return []string{commandLine}, nil
|
|
}
|