github.com/ssdev-go/moby@v17.12.1-ce-rc2+incompatible/pkg/system/syscall_unix.go (about)

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