stdlib: Make writers seekable; switch file writers to the C FILE interface to make this work

This commit is contained in:
Patrick Walton
2011-03-22 16:38:47 -07:00
parent dcf122ede0
commit b33f0df152
5 changed files with 101 additions and 14 deletions

View File

@@ -18,6 +18,7 @@ native mod libc = "libc.so.6" {
fn fgetc(FILE f) -> int;
fn ungetc(int c, FILE f);
fn fread(vbuf buf, uint size, uint n, FILE f) -> uint;
fn fwrite(vbuf buf, uint size, uint n, FILE f) -> uint;
fn fseek(FILE f, int offset, int whence) -> int;
fn ftell(FILE f) -> int;