Skip to content

Commit

Permalink
Merge pull request #1893 from sunfishcode/main
Browse files Browse the repository at this point in the history
Define some `sysconf` constants for WASI.
  • Loading branch information
JohnTitor committed Sep 19, 2020
2 parents 999e5e1 + 51af18d commit 87d3a32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ pub const ENOTCAPABLE: c_int = 76;
pub const EOPNOTSUPP: c_int = ENOTSUP;
pub const EWOULDBLOCK: c_int = EAGAIN;

pub const _SC_PAGESIZE: c_int = 30;
pub const _SC_PAGE_SIZE: ::c_int = _SC_PAGESIZE;
pub const _SC_IOV_MAX: c_int = 60;
pub const _SC_SYMLOOP_MAX: c_int = 173;

#[cfg_attr(
feature = "rustc-dep-of-std",
link(name = "c", kind = "static", cfg(target_feature = "crt-static"))
Expand Down

0 comments on commit 87d3a32

Please sign in to comment.