Skip to content

Commit 4582e7d

Browse files
authored
Provide DIRCOOKIE_START, FD_STDIN, FD_STDOUT, and FD_STDERR. (WebAssembly#38)
Fixes WebAssembly#36.
1 parent e1bf9e4 commit 4582e7d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/lib.rs

+12
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,15 @@
3434
mod error;
3535
mod lib_generated;
3636
pub use lib_generated::*;
37+
38+
/// Special `Dircookie` value indicating the start of a directory.
39+
pub const DIRCOOKIE_START: Dircookie = 0;
40+
41+
/// The "standard input" descriptor number.
42+
pub const FD_STDIN: Fd = 0;
43+
44+
/// The "standard output" descriptor number.
45+
pub const FD_STDOUT: Fd = 1;
46+
47+
/// The "standard error" descriptor number.
48+
pub const FD_STDERR: Fd = 2;

0 commit comments

Comments
 (0)