rust/src/lib/win32_os.rs

10 lines
275 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
import _str.sbuf;
import _vec.vbuf;
native mod libc = "msvcrt.dll" {
fn open(sbuf s, int flags) -> int = "_open";
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";
}