Skip to content

Commit

Permalink
rename get_errno to sys_get_errno
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Feb 28, 2024
1 parent ad539e8 commit 2f6bd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,13 @@ pub(crate) static mut ERRNO: i32 = 0;
/// Get the error number from the thread local storage
#[cfg(all(not(feature = "common-os"), not(target_arch = "riscv64")))]
#[no_mangle]
pub extern "C" fn get_errno() -> i32 {
pub extern "C" fn sys_get_errno() -> i32 {
unsafe { ERRNO }
}

#[cfg(all(not(feature = "common-os"), target_arch = "riscv64"))]
#[no_mangle]
pub extern "C" fn get_errno() -> i32 {
pub extern "C" fn sys_get_errno() -> i32 {
0
}

Expand Down

0 comments on commit 2f6bd5c

Please sign in to comment.