Skip to content

Commit 87d3a32

Browse files
authored
Merge pull request #1893 from sunfishcode/main
Define some `sysconf` constants for WASI.
2 parents 999e5e1 + 51af18d commit 87d3a32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/wasi.rs

+5
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ pub const ENOTCAPABLE: c_int = 76;
322322
pub const EOPNOTSUPP: c_int = ENOTSUP;
323323
pub const EWOULDBLOCK: c_int = EAGAIN;
324324

325+
pub const _SC_PAGESIZE: c_int = 30;
326+
pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
327+
pub const _SC_IOV_MAX: c_int = 60;
328+
pub const _SC_SYMLOOP_MAX: c_int = 173;
329+
325330
#[cfg_attr(
326331
feature = "rustc-dep-of-std",
327332
link(name = "c", kind = "static", cfg(target_feature = "crt-static"))

0 commit comments

Comments
 (0)