syscall_unix.go 447 B

1234567891011121314151617
  1. // +build linux freebsd
  2. package system
  3. import "golang.org/x/sys/unix"
  4. // Unmount is a platform-specific helper function to call
  5. // the unmount syscall.
  6. func Unmount(dest string) error {
  7. return unix.Unmount(dest, 0)
  8. }
  9. // CommandLineToArgv should not be used on Unix.
  10. // It simply returns commandLine in the only element in the returned array.
  11. func CommandLineToArgv(commandLine string) ([]string, error) {
  12. return []string{commandLine}, nil
  13. }