diff options
| author | Patrick Walton <[email protected]> | 2011-03-22 16:38:47 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-03-22 16:40:22 -0700 |
| commit | b33f0df152fd2242a1ea88d0961065caecd228ac (patch) | |
| tree | eaf1ef79e516e842b1c16f2e955a2bfc3964740c /src/lib/win32_os.rs | |
| parent | Change the type of the second argument of upcalls to be a %task*. (diff) | |
| download | rust-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.rs | 1 |
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; |