2014-02-25 23:19:13 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
2014-05-01 01:20:01 +00:00
|
|
|
"os"
|
2014-02-25 23:19:13 +00:00
|
|
|
"os/exec"
|
|
|
|
)
|
|
|
|
|
|
|
|
func SetCloneFlags(cmd *exec.Cmd, flag uintptr) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func UsetCloseOnExec(fd uintptr) error {
|
|
|
|
return ErrNotSupportedPlatform
|
|
|
|
}
|
2014-04-07 21:43:50 +00:00
|
|
|
|
|
|
|
func Gettid() int {
|
|
|
|
return 0
|
|
|
|
}
|
2014-04-21 17:26:03 +00:00
|
|
|
|
|
|
|
func GetClockTicks() int {
|
|
|
|
// when we cannot call out to C to get the sysconf it is fairly safe to
|
|
|
|
// just return 100
|
|
|
|
return 100
|
|
|
|
}
|
2014-05-01 01:20:01 +00:00
|
|
|
|
|
|
|
func CreateMasterAndConsole() (*os.File, string, error) {
|
|
|
|
return nil, "", ErrNotSupportedPlatform
|
|
|
|
}
|