diff options
| author | Graydon Hoare <[email protected]> | 2010-08-18 15:40:27 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-08-18 15:41:24 -0700 |
| commit | f0d4e6c5119b377b6f3744aa77263a65136eb63b (patch) | |
| tree | 5feefac9a0abf3ad73e9edc05b7ca6da9d9a1b4f /src/lib/linux_os.rs | |
| parent | Don't complain about \r when core.autocrlf is on in Git (now working with Pyt... (diff) | |
| download | rust-f0d4e6c5119b377b6f3744aa77263a65136eb63b.tar.xz rust-f0d4e6c5119b377b6f3744aa77263a65136eb63b.zip | |
Add stdio_reader to io, just use FILE* values for now. We have things to do.
Diffstat (limited to 'src/lib/linux_os.rs')
| -rw-r--r-- | src/lib/linux_os.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/linux_os.rs b/src/lib/linux_os.rs index 3f096e99..2ff61dc3 100644 --- a/src/lib/linux_os.rs +++ b/src/lib/linux_os.rs @@ -8,6 +8,11 @@ native mod libc = "libc.so.6" { fn write(int fd, vbuf buf, uint count) -> int; fn close(int fd) -> int; + type FILE; + fn fopen(sbuf path, sbuf mode) -> FILE; + fn fclose(FILE f); + fn fgetc(FILE f) -> int; + type dir; // readdir is a mess; handle via wrapper function in rustrt. fn opendir(sbuf d) -> dir; |