How gavinnl/pseudonix works
PseudoNix is an embeddable, header-only Linux-like process environment. Its main workflow registers and spawns coroutine processes, then advances them through the System scheduler; process streams support pipelines, while the shell offers interactive command execution and scripts. The library also provides a virtual filesystem with host and archive mounts, plus an optional ImGui terminal. Relationships below are limited to the README and sampled source references; unsampled implementation details are not inferred.
Main entry points: System.h System scheduler · FileSystem.h Virtual filesystem · FileSystemMount.h Mount interface · Shell.h Shell process
Components 18
Process Runtime
- System scheduler
include/PseudoNix/System.h - Process coroutines
include/PseudoNix/task.h - Process I/O streams
include/PseudoNix/ReaderWriterStream.h
Shell Interface
- Shell process
include/PseudoNix/Shell.h - Terminal launcher
include/PseudoNix/Launcher.h
Virtual Filesystem
- Host mount commands
include/PseudoNix/HostMount.h - Virtual filesystem
include/PseudoNix/FileSystem.h - Mount interface
include/PseudoNix/FileSystemMount.h - Host filesystem mount
include/PseudoNix/HostMount.h - Archive mount
include/PseudoNix/ArchiveMount.h - Filesystem path helpers
include/PseudoNix/FileSystemHelpers.h
Terminal UI
- ImGui terminal
include/PseudoNix/ImGuiTerminal.h - ImGui console widget
include/PseudoNix/ImGuiConsoleWidget.h
Coroutine Utilities
- Coroutine task type
include/PseudoNix/task.h - Coroutine generator
include/PseudoNix/generator.h - Scope-exit helper
include/PseudoNix/defer.h - General helpers
include/PseudoNix/helpers.h
Other components
- Application user
Connections 18
- Application user → System scheduler: spawns processes
README.md - System scheduler → Process coroutines: resumes coroutines
README.md - System scheduler → Process I/O streams: uses process I/O
include/PseudoNix/System.h - Shell process → System scheduler: dispatches commands
include/PseudoNix/Shell.h - Application user → Terminal launcher: enters commands
README.md - Terminal launcher → System scheduler: launches shell
README.md - System scheduler → Virtual filesystem: uses filesystem
include/PseudoNix/System.h - Virtual filesystem → Mount interface: dispatches mount operations
include/PseudoNix/FileSystem.h - Host filesystem mount → Mount interface: implements mount interface
include/PseudoNix/HostMount.h - Archive mount → Mount interface: implements mount interface
include/PseudoNix/ArchiveMount.h - Virtual filesystem → Filesystem path helpers: normalizes paths
include/PseudoNix/FileSystem.h - Host mount commands → Virtual filesystem: mounts host paths
include/PseudoNix/HostMount.h - ImGui terminal → ImGui console widget: uses console widget
include/PseudoNix/ImGuiTerminal.h - ImGui terminal → System scheduler: connects to runtime
include/PseudoNix/ImGuiTerminal.h - Shell process → Scope-exit helper: uses scope cleanup
include/PseudoNix/Shell.h - Mount interface → Coroutine generator: returns directory entries
include/PseudoNix/FileSystemMount.h - System scheduler → Coroutine task type: uses coroutine tasks
include/PseudoNix/System.h - System scheduler → General helpers: uses utilities
include/PseudoNix/System.h