]> git.lizzy.rs Git - rust.git/commit
Implement `AsRawFd` for `StdinLock` etc. on WASI.
authorDan Gohman <dev@sunfishcode.online>
Thu, 8 Oct 2020 14:31:55 +0000 (07:31 -0700)
committerDan Gohman <dev@sunfishcode.online>
Thu, 8 Oct 2020 21:34:54 +0000 (14:34 -0700)
commit8d2c622d48fc3e39c466e67608450ce078f900ea
tree5c49196eeaf0772033a25a89eb97ab8c7b6932f8
parent6b8d7911a1d329d0d98b90606d8c2cb808af090a
Implement `AsRawFd` for `StdinLock` etc. on WASI.

WASI implements `AsRawFd` for `Stdin`, `Stdout`, and `Stderr`, so
implement it for `StdinLock`, `StdoutLock`, and `StderrLock` as well.
library/std/src/sys/wasi/ext/io.rs