Skip to main content

Module os

Module os 

Source
Expand description

OS operations for Seq

Provides portable OS interaction primitives: environment variables, paths, and system information.

These functions are exported with C ABI for LLVM codegen to call.

Functions§

patch_seq_current_dir⚠
Get the current working directory
patch_seq_exit⚠
Exit the process with the given exit code
patch_seq_getenv⚠
Get an environment variable
patch_seq_home_dir⚠
Get the user’s home directory
patch_seq_os_arch⚠
Get the CPU architecture
patch_seq_os_name⚠
Get the operating system name
patch_seq_path_exists⚠
Check if a path exists
patch_seq_path_filename⚠
Get the filename component of a path
patch_seq_path_is_dir⚠
Check if a path is a directory
patch_seq_path_is_file⚠
Check if a path is a regular file
patch_seq_path_join⚠
Join two path components
patch_seq_path_parent⚠
Get the parent directory of a path