github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/osutil/osutil_fuchsia.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 //go:build fuchsia 5 6 package osutil 7 8 import ( 9 "os" 10 "os/exec" 11 "time" 12 ) 13 14 func creationTime(fi os.FileInfo) time.Time { 15 return time.Time{} 16 } 17 18 func HandleInterrupts(shutdown chan struct{}) { 19 } 20 21 func RemoveAll(dir string) error { 22 return os.RemoveAll(dir) 23 } 24 25 func SystemMemorySize() uint64 { 26 return 0 27 } 28 29 func ProcessExitStatus(ps *os.ProcessState) int { 30 // TODO: can be extracted from ExitStatus string. 31 return 0 32 } 33 34 func prolongPipe(r, w *os.File) { 35 } 36 37 func Sandbox(cmd *exec.Cmd, user, net bool) error { 38 return nil 39 } 40 41 func SandboxChown(file string) error { 42 return nil 43 } 44 45 func setPdeathsig(cmd *exec.Cmd, hardKill bool) { 46 } 47 48 func killPgroup(cmd *exec.Cmd) { 49 }