Skip to content

Commit a8df508

Browse files
committed
Add stdin, stdout, stderr globals
CC rust-lang#7.
1 parent b9a0e23 commit a8df508

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ cfg_if! {
152152
pub enum FILE {}
153153
pub enum fpos_t {} // TODO: fill this out with a struct
154154

155+
extern {
156+
pub static mut stdin: *mut FILE;
157+
pub static mut stdout: *mut FILE;
158+
pub static mut stderr: *mut FILE;
159+
}
160+
155161
pub const INT_MIN: c_int = -2147483648;
156162
pub const INT_MAX: c_int = 2147483647;
157163

0 commit comments

Comments
 (0)