Skip to content
Snippets Groups Projects
Commit 51af18df authored by Dan Gohman's avatar Dan Gohman
Browse files

Define some `sysconf` constants for WASI.

parent 999e5e1f
No related branches found
No related tags found
Loading
...@@ -322,6 +322,11 @@ pub const ENOTCAPABLE: c_int = 76; ...@@ -322,6 +322,11 @@ pub const ENOTCAPABLE: c_int = 76;
pub const EOPNOTSUPP: c_int = ENOTSUP; pub const EOPNOTSUPP: c_int = ENOTSUP;
pub const EWOULDBLOCK: c_int = EAGAIN; 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( #[cfg_attr(
feature = "rustc-dep-of-std", feature = "rustc-dep-of-std",
link(name = "c", kind = "static", cfg(target_feature = "crt-static")) link(name = "c", kind = "static", cfg(target_feature = "crt-static"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment