2015-09-09 22:23:06 -04:00
|
|
|
// +build linux freebsd
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
2015-10-26 16:34:49 -04:00
|
|
|
// Unmount is a platform-specific helper function to call
|
2015-09-09 22:23:06 -04:00
|
|
|
// the unmount syscall.
|
2015-11-02 16:18:07 -05:00
|
|
|
func Unmount(dest string) error {
|
|
|
|
return syscall.Unmount(dest, 0)
|
2015-09-09 22:23:06 -04:00
|
|
|
}
|
2016-03-18 14:50:19 -04: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
|
|
|
|
}
|