diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2019-05-12 02:39:08 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2019-05-12 02:39:08 +0200 |
commit | 0abdc827c9aa9e3f64d31d62663ea232863e4e76 (patch) | |
tree | 47f3bcda0a0b9b6d2305953493f849faf31dfb80 /src/c/posix.rs | |
download | neco-0abdc827c9aa9e3f64d31d62663ea232863e4e76.tar neco-0abdc827c9aa9e3f64d31d62663ea232863e4e76.zip |
Safe libc test code
Diffstat (limited to 'src/c/posix.rs')
-rw-r--r-- | src/c/posix.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/c/posix.rs b/src/c/posix.rs new file mode 100644 index 0000000..3933a2e --- /dev/null +++ b/src/c/posix.rs @@ -0,0 +1,8 @@ +extern "C" { + pub fn strndup(cs: *const libc::c_char, n: libc::size_t) -> *mut libc::c_char; + + pub static mut stdin: *mut libc::FILE; + pub static mut stdout: *mut libc::FILE; + pub static mut stderr: *mut libc::FILE; + +} |