2023-03-26 23:23:05 +08:00
|
|
|
#[allow(non_snake_case)]
|
|
|
|
pub fn MB_CUR_MAX() -> usize {
|
|
|
|
unsafe { C_MB_CUR_MAX() }
|
|
|
|
}
|
|
|
|
|
2023-04-09 19:54:41 +08:00
|
|
|
pub fn cur_term() -> bool {
|
|
|
|
unsafe { has_cur_term() }
|
|
|
|
}
|
|
|
|
|
2023-04-09 20:33:20 +08:00
|
|
|
#[allow(non_snake_case)]
|
|
|
|
pub fn ST_LOCAL() -> u64 {
|
|
|
|
unsafe { C_ST_LOCAL() }
|
|
|
|
}
|
|
|
|
|
|
|
|
#[allow(non_snake_case)]
|
|
|
|
pub fn MNT_LOCAL() -> u64 {
|
|
|
|
unsafe { C_MNT_LOCAL() }
|
|
|
|
}
|
|
|
|
|
2023-03-26 23:23:05 +08:00
|
|
|
extern "C" {
|
|
|
|
fn C_MB_CUR_MAX() -> usize;
|
2023-04-09 19:54:41 +08:00
|
|
|
fn has_cur_term() -> bool;
|
2023-04-09 20:33:20 +08:00
|
|
|
fn C_ST_LOCAL() -> u64;
|
|
|
|
fn C_MNT_LOCAL() -> u64;
|
2023-03-26 23:23:05 +08:00
|
|
|
}
|