2015-09-10 02:23:06 +00:00
|
|
|
// +build linux freebsd
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
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 {
|
|
|
|
return syscall.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
|
|
|
|
}
|