aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/osutil_unix.go
Commit message (Collapse)AuthorAgeFilesLines
* all: delete dead codeTaras Madan2025-02-101-40/+0
| | | | | go install golang.org/x/tools/cmd/deadcode@latest deadcode -test ./...
* all: go fix everythingDmitry Vyukov2024-04-261-1/+0
|
* all: use special placeholder for errorsTaras Madan2023-07-241-3/+3
|
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-2/+1
|
* pkg/osutil: use memfd_create on LinuxAleksandr Nogikh2021-12-031-26/+12
| | | | | | | | | | Mmapping plain files as shared memory leads to extra burden on the system being fuzzed, because the OS will periodically sync that data to the disk. On Linux, use memfd_create to obtain a file handle for the shared memory region. Experiments have demonstrated than it leads to 5-10% increase in the fuzzing performance.
* pkg: update generated files to go 1.17Alexey Kardashevskiy2021-07-071-0/+1
| | | | | | | | | | | "make generate" produces this diff when go 1.17 (go1.17-c95464f0ea3f==upstream) is used. Seems compatible with >=1.16. https://github.com/golang/go/commit/4d2d89ff42ca documents the syntax. https://github.com/golang/go/commit/eeadce2d8713 enforces "ignore" for unsatisfiable tags hence the pkg/csource/gen.go change. Signed-off-by: Alexey Kardashevskiy <aik@linux.ibm.com>
* pkg/osutil: remove appengine tagDmitry Vyukov2020-07-061-1/+1
| | | | | Appengine doesn't provide appengine tag anymore. Resort to use of syscall package for ExitStatus instead.
* .golangci.yml: enable nestif checkerDmitry Vyukov2020-06-051-14/+18
| | | | Prevents functions with too many nested if's.
* Add mandatory OpenBSD bits (#689)Anton Lindqvist2018-08-281-1/+1
| | | | | | | | | | | | | | | | | | 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
* pkg/ipc: remove abort signal and buffer sizeDmitry Vyukov2018-08-031-11/+0
| | | | | | They were needed for intermediate gvisor support. Now that we have end-to-end support for gvisor, they are not needed anymore. Remove.
* all: basic building on netbsdDmitry Vyukov2017-10-231-1/+1
| | | | | This just makes make TARGETOS=netbsd succeed. We don't yet have prog target for netbsd.
* executor, pkg/ipc: unify ipc protocol between linux and other OSesDmitry Vyukov2017-10-161-0/+65
| | | | | | | | | | | | | | | | | We currently use more complex and functional protocol on linux, and a simple ad-hoc protocol on other OSes. This leads to code duplication in both ipc and executor. Linux supports coverage, shared memory communication and fork server, which would also be useful for most other OSes. Unify communication protocol and parametrize it by (1) use of shmem or only pipes, (2) use of fork server. This reduces duplication in ipc and executor and will allow to support the useful features for other OSes easily. Finally, this fixes akaros support as it currently uses syz-stress running on host (linux) and executor running on akaros.
* all: basic freebsd supportDmitry Vyukov2017-10-021-1/+1
| | | | For now we just make Go part build for freebsd.
* syz-fuzzer: use osutil.HandleInterrupts instead of custom codeDmitry Vyukov2017-10-021-1/+1
| | | | | We already have osutil.HandleInterrupts for this. Simplifies porting to new OSes.
* pkg/osutil: windows portDmitry Vyukov2017-09-251-20/+0
|
* all: more assorted fuchsia supportDmitry Vyukov2017-09-221-0/+20
|
* pkg/osutil: don't depend on syscall in appengine buildDmitry Vyukov2017-07-031-0/+92
Dashboard app now depends on osutil through config package. Reshuffle functions so that the package does not depend on syscall in appengine build.