aboutsummaryrefslogtreecommitdiff
path: root/src/lib/win32_os.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/win32_os.rs')
-rw-r--r--src/lib/win32_os.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs
index 3d8e5f3a..3e1ce65f 100644
--- a/src/lib/win32_os.rs
+++ b/src/lib/win32_os.rs
@@ -6,6 +6,11 @@ native mod libc = "msvcrt.dll" {
fn read(int fd, vbuf buf, uint count) -> int = "_read";
fn write(int fd, vbuf buf, uint count) -> int = "_write";
fn close(int fd) -> int = "_close";
+
+ type FILE;
+ fn fopen(sbuf path, sbuf mode) -> FILE;
+ fn fclose(FILE f);
+ fn fgetc(FILE f) -> int;
}
mod libc_constants {