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§
- Child
Status - Outcome of waiting for a child process.
- Fork
Outcome - Result of a fork operation.
Functions§
- close
- Close a file descriptor.
- dup2
- Duplicate
srcontodst. - dup2_
and_ close - Duplicate
srcontodst, then closesrcif 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).