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 process;
10pub mod syscalls;
11
12pub mod consts {
13 /// defines the max byte length for file names and process names
14 pub const MAX_NAME_LENGTH: usize = 128;
15 /// defines the max byte length for paths
16 pub const MAX_PATH_LENGTH: usize = 1024;
17 /// defines the max byte length for drive names (not counted in [`MAX_PATH_LENGTH`])
18 pub const MAX_DRIVE_NAME_LENGTH: usize = 8;
19}