aboutsummaryrefslogtreecommitdiff
path: root/src/lib/win32_os.rs
blob: f770a5de4edec8d1c0df4a9252a80ef2bc534439 (plain) (blame)
1
2
3
4
5
6
7
8
9
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";
}