diff options
| author | Marijn Haverbeke <[email protected]> | 2011-03-10 16:02:53 +0100 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-14 14:57:13 -0700 |
| commit | 441697ab359ae2a17c531e5b8e26f66ffcf72992 (patch) | |
| tree | b094368c6bedb50bf52acb2e4fe775e47aef7741 /src/lib/win32_os.rs | |
| parent | Add basic file-system functionality (diff) | |
| download | rust-441697ab359ae2a17c531e5b8e26f66ffcf72992.tar.xz rust-441697ab359ae2a17c531e5b8e26f66ffcf72992.zip | |
Extend stream functionality
Writer and reader streams now come with methods to write and read
little-endian numbers. Whether that is the right place for such
methods is debatable, but for now, that's where they live.
Diffstat (limited to 'src/lib/win32_os.rs')
| -rw-r--r-- | src/lib/win32_os.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs index 0c6a23a6..1c037c77 100644 --- a/src/lib/win32_os.rs +++ b/src/lib/win32_os.rs @@ -12,6 +12,8 @@ native mod libc = "msvcrt.dll" { fn fclose(FILE f); fn fgetc(FILE f) -> int; fn ungetc(int c, FILE f); + fn fread(vbuf buf, uint size, uint n, FILE f) -> uint; + fn fseek(FILE f, int offset, int whence) -> int; } mod libc_constants { |