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