Add ungetc and re-indent _io.rs.

This commit is contained in:
Graydon Hoare
2010-08-20 12:12:11 -07:00
parent 34e5e98cf7
commit 1db0cb208d
4 changed files with 102 additions and 95 deletions

View File

@@ -12,6 +12,7 @@ native mod libc = "libc.so.6" {
fn fopen(sbuf path, sbuf mode) -> FILE;
fn fclose(FILE f);
fn fgetc(FILE f) -> int;
fn ungetc(int c, FILE f);
type dir;
// readdir is a mess; handle via wrapper function in rustrt.