summaryrefslogtreecommitdiffstats
path: root/safe_libc/src/lib.rs
blob: aec5acc05890a054e3a1afac577df6d6e57c3445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![no_std]

pub use libc::*;

mod util;

pub mod boxed;
pub mod errno;
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;
}