safa_abi/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3#[cfg(not(any(target_os = "safaos", target_os = "none")))]
4compile_error!("abi should only be used for SafaOS or freestanding targets");
5
6pub mod errors;
7pub mod ffi;
8pub mod fs;
9pub mod mem;
10pub mod process;
11pub mod syscalls;
12
13pub mod consts {
14    /// defines the max byte length for file names and process names
15    pub const MAX_NAME_LENGTH: usize = 128;
16    /// defines the max byte length for paths
17    pub const MAX_PATH_LENGTH: usize = 1024;
18    /// defines the max byte length for drive names (not counted in [`MAX_PATH_LENGTH`])
19    pub const MAX_DRIVE_NAME_LENGTH: usize = 8;
20}