github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/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  )
    12  
    13  func RemoveAll(dir string) error {
    14  	return os.RemoveAll(dir)
    15  }
    16  
    17  func SystemMemorySize() uint64 {
    18  	return 0
    19  }
    20  
    21  func prolongPipe(r, w *os.File) {
    22  }
    23  
    24  func Sandbox(cmd *exec.Cmd, user, net bool) error {
    25  	return nil
    26  }
    27  
    28  func SandboxChown(file string) error {
    29  	return nil
    30  }
    31  
    32  func setPdeathsig(cmd *exec.Cmd, hardKill bool) {
    33  }
    34  
    35  func killPgroup(cmd *exec.Cmd) {
    36  }