Files
ygglibc/src/header/locale/mod.rs
T

85 lines
1.9 KiB
Rust

use core::ffi::{c_char, c_int};
#[derive(Clone, Copy)]
#[repr(C)]
pub struct lconv {
pub currency_symbol: *mut c_char,
pub decimal_point: *mut c_char,
pub frac_digits: c_char,
pub grouping: *mut c_char,
pub int_curr_symbol: *mut c_char,
pub int_frac_digits: c_char,
pub int_n_cs_precedes: c_char,
pub int_n_sep_by_space: c_char,
pub int_n_sign_posn: c_char,
pub int_p_cs_precedes: c_char,
pub int_p_sep_by_space: c_char,
pub int_p_sign_posn: c_char,
pub mon_decimal_point: *mut c_char,
pub mon_grouping: *mut c_char,
pub mon_thousands_sep: *mut c_char,
pub negative_sign: *mut c_char,
pub n_cs_precedes: c_char,
pub n_sep_by_space: c_char,
pub n_sign_posn: c_char,
pub positive_sign: *mut c_char,
pub p_cs_precedes: c_char,
pub p_sep_by_space: c_char,
pub p_sign_posn: c_char,
pub thousands_sep: *mut c_char,
}
pub struct __locale_data {}
#[derive(Clone, Copy)]
#[repr(C)]
pub struct __locale_struct {
pub __locales: [*mut __locale_data; __LC_LAST],
}
pub type locale_t = *mut __locale_struct;
pub const LC_COLLATE: c_int = 0;
pub const LC_CTYPE: c_int = 1;
pub const LC_MESSAGES: c_int = 2;
pub const LC_MONETARY: c_int = 3;
pub const LC_NUMERIC: c_int = 4;
pub const LC_TIME: c_int = 5;
pub const LC_ALL: c_int = 6;
pub const __LC_LAST: usize = 6;
#[no_mangle]
unsafe extern "C" fn duplocale(locobj: locale_t) -> locale_t {
todo!()
}
#[no_mangle]
unsafe extern "C" fn freelocale(locobj: locale_t) {
todo!()
}
#[no_mangle]
unsafe extern "C" fn localeconv() -> *mut lconv {
todo!()
}
#[no_mangle]
unsafe extern "C" fn newlocale(
category_mask: c_int,
locale: *const c_char,
base: locale_t,
) -> locale_t {
todo!()
}
#[no_mangle]
unsafe extern "C" fn setlocale(category: c_int, locale: *const c_char) -> *mut c_char {
todo!()
}
#[no_mangle]
unsafe extern "C" fn uselocale(locobj: locale_t) -> locale_t {
todo!()
}