2015-09-10 02:23:06 +00:00
|
|
|
// +build linux freebsd
|
|
|
|
|
2018-02-05 21:05:59 +00:00
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
2015-09-10 02:23:06 +00:00
|
|
|
|
2017-05-23 14:22:32 +00:00
|
|
|
import "golang.org/x/sys/unix"
|
2015-09-10 02:23:06 +00:00
|
|
|
|
2015-10-26 20:34:49 +00:00
|
|
|
// Unmount is a platform-specific helper function to call
|
2015-09-10 02:23:06 +00:00
|
|
|
// the unmount syscall.
|
2015-11-02 21:18:07 +00:00
|
|
|
func Unmount(dest string) error {
|
2017-05-23 14:22:32 +00:00
|
|
|
return unix.Unmount(dest, 0)
|
2015-09-10 02:23:06 +00:00
|
|
|
}
|
2016-03-18 18:50:19 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|