23 lines
510 B
Rust

use core::ffi::{c_int, c_void};
use crate::{error::CIntZeroResult, process};
#[no_mangle]
unsafe extern "C" fn __cxa_atexit(
destructor: extern "C" fn(*mut c_void),
arg: *mut c_void,
dso_handle: *mut c_void,
) -> CIntZeroResult {
process::at_dso_exit(destructor, arg, dso_handle);
CIntZeroResult::SUCCESS
}
#[no_mangle]
unsafe extern "C" fn __cxa_thread_atexit(
_destructor: extern "C" fn(*mut c_void),
_arg: *mut c_void,
_dso_handle: *mut c_void,
) -> c_int {
todo!()
}