#[cfg(feature = "alloc")]
use alloc::string::{String, ToString};

pub fn errno() -> i32 {
    0
}

pub fn is_interrupted(_code: i32) -> bool {
    false
}

pub fn decode_error_kind(_code: i32) -> crate::io::ErrorKind {
    crate::io::ErrorKind::Uncategorized
}

#[cfg(feature = "alloc")]
pub fn error_string(_errno: i32) -> String {
    "operation successful".to_string()
}

pub fn error_str(_errno: i32) -> &'static str {
    "operation successful"
}
