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