Skip to main content

Module sys

Module sys 

Source
Expand description

Platform abstraction layer.

Isolates all OS-specific system calls (fork, exec, pipe, dup2, open, close, wait) behind a clean interface so the rest of frost-exec remains portable across Unix variants and architectures.

Structs§

Pipe
A pipe pair as raw file descriptors.

Enums§

ChildStatus
Outcome of waiting for a child process.
ForkOutcome
Result of a fork operation.

Functions§

close
Close a file descriptor.
dup2
Duplicate src onto dst.
dup2_and_close
Duplicate src onto dst, then close src if they differ.
exec
Replace the current process image with a new program.
fork
Fork the current process.
open
Open a file, returning a raw file descriptor.
pipe
Create a pipe, returning raw file descriptors.
try_wait_pid
Wait for a child process (non-blocking).
wait_pid
Wait for a specific child process (blocking).