diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-04-04 13:22:18 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2020-04-04 14:23:00 +0200 |
commit | f0b3d5166ef1255fac880b146875ef46d2599a13 (patch) | |
tree | 61c993cf32dedc1172bcf40cd5207e05a3b032a9 /safe_libc/src/lib.rs | |
parent | 52b498494534784c77bfa4a93706be40620ebd9a (diff) | |
download | neco-f0b3d5166ef1255fac880b146875ef46d2599a13.tar neco-f0b3d5166ef1255fac880b146875ef46d2599a13.zip |
Reorganize
Diffstat (limited to 'safe_libc/src/lib.rs')
-rw-r--r-- | safe_libc/src/lib.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/safe_libc/src/lib.rs b/safe_libc/src/lib.rs new file mode 100644 index 0000000..0ab0e89 --- /dev/null +++ b/safe_libc/src/lib.rs @@ -0,0 +1,18 @@ +#![no_std] + +pub use libc::*; + +mod util; + +pub mod boxed; +pub mod stdio; +pub mod string; + + +extern "C" { + pub fn strndup(cs: *const libc::c_char, n: libc::size_t) -> *mut libc::c_char; + + // pub static stdin: *mut libc::FILE; + pub static stdout: *mut libc::FILE; + pub static stderr: *mut libc::FILE; +} |