github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/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 "fmt" 10 "os" 11 "os/exec" 12 ) 13 14 func HandleInterrupts(shutdown chan struct{}) { 15 } 16 17 func RemoveAll(dir string) error { 18 return os.RemoveAll(dir) 19 } 20 21 func SystemMemorySize() uint64 { 22 return 0 23 } 24 25 func CreateMemMappedFile(size int) (f *os.File, mem []byte, err error) { 26 return nil, nil, fmt.Errorf("CreateMemMappedFile is not implemented") 27 } 28 29 func CloseMemMappedFile(f *os.File, mem []byte) error { 30 return fmt.Errorf("CloseMemMappedFile is not implemented") 31 } 32 33 func ProcessExitStatus(ps *os.ProcessState) int { 34 // TODO: can be extracted from ExitStatus string. 35 return 0 36 } 37 38 func prolongPipe(r, w *os.File) { 39 } 40 41 func Sandbox(cmd *exec.Cmd, user, net bool) error { 42 return nil 43 } 44 45 func SandboxChown(file string) error { 46 return nil 47 } 48 49 func setPdeathsig(cmd *exec.Cmd, hardKill bool) { 50 } 51 52 func killPgroup(cmd *exec.Cmd) { 53 }