Created
November 29, 2020 21:44
-
-
Save ryankurte/df961a7c36b6c2c4fa13fc052e60bf0c to your computer and use it in GitHub Desktop.
Rust newlib stubs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[no_mangle] | |
pub extern "C" fn _sbrk() {} | |
#[no_mangle] | |
pub extern "C" fn _write() {} | |
#[no_mangle] | |
pub extern "C" fn _close() {} | |
#[no_mangle] | |
pub extern "C" fn _lseek() {} | |
#[no_mangle] | |
pub extern "C" fn _read() -> i32 { -1 } | |
#[no_mangle] | |
pub extern "C" fn _fstat() -> i32 { -1 } | |
#[no_mangle] | |
pub extern "C" fn _isatty() {} | |
#[no_mangle] | |
pub extern "C" fn _exit() {} | |
#[no_mangle] | |
pub extern "C" fn _open() -> i32 { -1 } | |
#[no_mangle] | |
pub extern "C" fn _kill() {} | |
#[no_mangle] | |
pub extern "C" fn _getpid() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment