Module libafl_bolts::os
source · Expand description
Operating System specific abstractions
Modules§
- Unix
pipe
wrapper forLibAFL
- On
Android
, we can only share maps between processes by serializing fds over sockets. OnMacOS
, we cannot rely on reference counting for Maps. Hence, theunix_shmem_server
keeps track of existing maps, creates new maps for clients, and forwards them over unix domain sockets. - Signal handling for unix
Structs§
- Child Process Handle
Enums§
- The
ForkResult
(result of a fork)
Functions§
- “Safe” wrapper around
dup
, duplicating the given file descriptor - “Safe” wrapper around dup2
- fork⚠Unix has forks.
- Gets the stringified version of the last
errno
. This is roughly equivalent tostrerror(errno)
in C. - Get a file descriptor (
RawFd
) pointing to “/dev/null” - Executes the current process from the beginning, as subprocess. use
start_self.status()?
to wait for the child