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/macos_os.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/macos_os.rs') diff --git a/src/lib/macos_os.rs b/src/lib/macos_os.rs index f9734de3..9633c14c 100644 --- a/src/lib/macos_os.rs +++ b/src/lib/macos_os.rs @@ -15,6 +15,7 @@ native mod libc = "libc.dylib" { 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