cc33cd3410
This duplicates some of the Exec code but I think it it worth it because the native driver is more straight forward and does not have the complexity have handling the type issues for now. Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
30 lines
462 B
Go
30 lines
462 B
Go
// +build !linux
|
|
|
|
package system
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
func SetCloneFlags(cmd *exec.Cmd, flag uintptr) {
|
|
|
|
}
|
|
|
|
func UsetCloseOnExec(fd uintptr) error {
|
|
return ErrNotSupportedPlatform
|
|
}
|
|
|
|
func Gettid() int {
|
|
return 0
|
|
}
|
|
|
|
func GetClockTicks() int {
|
|
// when we cannot call out to C to get the sysconf it is fairly safe to
|
|
// just return 100
|
|
return 100
|
|
}
|
|
|
|
func CreateMasterAndConsole() (*os.File, string, error) {
|
|
return nil, "", ErrNotSupportedPlatform
|
|
}
|