github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/osutil/osutil_windows.go (about) 1 // Copyright 2017 syzkaller project authors. All rights reserved. 2 // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 package osutil 5 6 import ( 7 "os" 8 "os/exec" 9 "syscall" 10 "time" 11 ) 12 13 func creationTime(fi os.FileInfo) time.Time { 14 return time.Time{} 15 } 16 17 func HandleInterrupts(shutdown chan struct{}) { 18 } 19 20 func RemoveAll(dir string) error { 21 return os.RemoveAll(dir) 22 } 23 24 func SystemMemorySize() uint64 { 25 return 0 26 } 27 28 func prolongPipe(r, w *os.File) { 29 } 30 31 func ProcessExitStatus(ps *os.ProcessState) int { 32 return ps.Sys().(syscall.WaitStatus).ExitStatus() 33 } 34 35 func Sandbox(cmd *exec.Cmd, user, net bool) error { 36 return nil 37 } 38 39 func SandboxChown(file string) error { 40 return nil 41 } 42 43 func setPdeathsig(cmd *exec.Cmd, hardKill bool) { 44 } 45 46 func killPgroup(cmd *exec.Cmd) { 47 }