github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/osutil/osutil_bsd.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 freebsd || netbsd || openbsd 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 RemoveAll(dir string) error { 19 return os.RemoveAll(dir) 20 } 21 22 func SystemMemorySize() uint64 { 23 return 0 24 } 25 26 func prolongPipe(r, w *os.File) { 27 } 28 29 func Sandbox(cmd *exec.Cmd, user, net bool) error { 30 return nil 31 } 32 33 func SandboxChown(file string) error { 34 return nil 35 } 36 37 func setPdeathsig(cmd *exec.Cmd, hardKill bool) { 38 } 39 40 func killPgroup(cmd *exec.Cmd) { 41 }