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