aboutsummaryrefslogtreecommitdiff
path: root/src/lib/win32_os.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-22 16:38:47 -0700
committerPatrick Walton <[email protected]>2011-03-22 16:40:22 -0700
commitb33f0df152fd2242a1ea88d0961065caecd228ac (patch)
treeeaf1ef79e516e842b1c16f2e955a2bfc3964740c /src/lib/win32_os.rs
parentChange the type of the second argument of upcalls to be a %task*. (diff)
downloadrust-b33f0df152fd2242a1ea88d0961065caecd228ac.tar.xz
rust-b33f0df152fd2242a1ea88d0961065caecd228ac.zip
stdlib: Make writers seekable; switch file writers to the C FILE interface to make this work
Diffstat (limited to 'src/lib/win32_os.rs')
-rw-r--r--src/lib/win32_os.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs
index 3ca76e77..7f113b27 100644
--- a/src/lib/win32_os.rs
+++ b/src/lib/win32_os.rs
@@ -14,6 +14,7 @@ native mod libc = "msvcrt.dll" {
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;