From b33f0df152fd2242a1ea88d0961065caecd228ac Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 22 Mar 2011 16:38:47 -0700 Subject: stdlib: Make writers seekable; switch file writers to the C FILE interface to make this work --- src/lib/linux_os.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/linux_os.rs') diff --git a/src/lib/linux_os.rs b/src/lib/linux_os.rs index bce85956..51f2943d 100644 --- a/src/lib/linux_os.rs +++ b/src/lib/linux_os.rs @@ -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; -- cgit v1.2.3