github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/pkg/osutil/osutil_windows.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  	"fmt"
     8  	"os"
     9  	"os/exec"
    10  	"syscall"
    11  )
    12  
    13  func HandleInterrupts(shutdown chan struct{}) {
    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 CreateMemMappedFile(size int) (f *os.File, mem []byte, err error) {
    28  	return nil, nil, fmt.Errorf("CreateMemMappedFile is not implemented")
    29  }
    30  
    31  func CloseMemMappedFile(f *os.File, mem []byte) error {
    32  	return fmt.Errorf("CloseMemMappedFile is not implemented")
    33  }
    34  
    35  func ProcessExitStatus(ps *os.ProcessState) int {
    36  	return ps.Sys().(syscall.WaitStatus).ExitStatus()
    37  }
    38  
    39  func Sandbox(cmd *exec.Cmd, user, net bool) error {
    40  	return nil
    41  }
    42  
    43  func SandboxChown(file string) error {
    44  	return nil
    45  }
    46  
    47  func setPdeathsig(cmd *exec.Cmd, hardKill bool) {
    48  }
    49  
    50  func killPgroup(cmd *exec.Cmd) {
    51  }