mirror of
https://github.com/reactos/syzkaller.git
synced 2025-03-04 09:37:03 +00:00

all: add openbsd support squash of the following commits: * openbsd: add mandatory bits * report: add OpenBSD support * executor: skip building kvm on OpenBSD * executor: add OpenBSD support Linking against libutil is necessary due to usage of openpty(3). * executor: fix typo in fail() message * fixup! report: add OpenBSD support * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! report: add OpenBSD support * gometalinter: skip sys/openbsd
30 lines
536 B
Go
30 lines
536 B
Go
// Copyright 2017 syzkaller project authors. All rights reserved.
|
|
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
// +build freebsd,!appengine netbsd,!appengine openbsd,!appengine
|
|
|
|
package osutil
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
func RemoveAll(dir string) error {
|
|
return os.RemoveAll(dir)
|
|
}
|
|
|
|
func prolongPipe(r, w *os.File) {
|
|
}
|
|
|
|
func Sandbox(cmd *exec.Cmd, user, net bool) error {
|
|
return nil
|
|
}
|
|
|
|
func SandboxChown(file string) error {
|
|
return nil
|
|
}
|
|
|
|
func setPdeathsig(cmd *exec.Cmd) {
|
|
}
|