make errno a static instead of TLS

This commit is contained in:
nora 2023-10-03 08:52:40 +02:00
parent 00f78e9749
commit 7a16d84b25
15 changed files with 57 additions and 55 deletions

View file

@ -1,4 +1,4 @@
fn main() {
println!("cargo:rustc-link-arg=-nostartfiles");
println!("cargo:rustc-link-arg=-nostdlib");
}
}

View file

@ -13,7 +13,6 @@ pub unsafe extern "C" fn memcmp(s1: *const u8, s2: *const u8, size: usize) -> i3
libuwuc::mem::memcmp(s1, s2, size)
}
#[no_mangle]
pub unsafe extern "C" fn bcmp(s1: *const u8, s2: *const u8, size: usize) -> i32 {
libuwuc::mem::memcmp(s1, s2, size)