]> git.lizzy.rs Git - rust.git/commit
wasi: Use raw syscalls for stdio
authorAlex Crichton <alex@alexcrichton.com>
Sun, 31 Mar 2019 21:56:56 +0000 (14:56 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 1 Apr 2019 12:31:48 +0000 (05:31 -0700)
commit60f6cbd0028c61bcca181318f48cdf0c6be61231
tree65010d199b9a0ece6c8aa57f99ea6b2d06027122
parent382f9a7a3d15580c15531428f39bf47f55093d42
wasi: Use raw syscalls for stdio

I've since learned that the mapping between libc fds and wasi fds are
expected to be one-to-one, so we can use the raw syscalls for writing to
stdout/stderr and reading from stdin! This should help ensure that we
don't depend on a C library too unnecessarily.
src/libstd/sys/wasi/stdio.rs