From 441697ab359ae2a17c531e5b8e26f66ffcf72992 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 10 Mar 2011 16:02:53 +0100 Subject: 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. --- src/lib/linux_os.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/linux_os.rs') diff --git a/src/lib/linux_os.rs b/src/lib/linux_os.rs index e05a69b3..bed8fdbc 100644 --- a/src/lib/linux_os.rs +++ b/src/lib/linux_os.rs @@ -13,6 +13,8 @@ native mod libc = "libc.so.6" { 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; type dir; fn opendir(sbuf d) -> dir; -- cgit v1.2.3