diff options
author | bors <bors@rust-lang.org> | 2022-09-30 00:11:07 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-09-30 00:11:07 +0000 |
commit | 5ffe00e1d34bc0cf056a515e71c5a68e22c46209 (patch) | |
tree | d075217ab83b2ad8cecb2b7c6854254f432db09d | |
parent | a15719442d7231dc01baaf71c26d5228e02f60f2 (diff) | |
parent | 73d674b61a0b229b18259e9e0ee855433ddd241d (diff) | |
download | rust-libc-5ffe00e1d34bc0cf056a515e71c5a68e22c46209.tar.gz |
Auto merge of #2922 - devnexen:mman_update_solarish, r=JohnTitor
mmap/madvise specific solaris additional flags.
-rw-r--r-- | src/unix/solarish/illumos.rs | 2 | ||||
-rw-r--r-- | src/unix/solarish/mod.rs | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/solarish/illumos.rs b/src/unix/solarish/illumos.rs index daf9e69758..7d491d382a 100644 --- a/src/unix/solarish/illumos.rs +++ b/src/unix/solarish/illumos.rs @@ -54,6 +54,8 @@ pub const FILF_AUTO: ::c_int = 0x2; pub const FILF_BYPASS: ::c_int = 0x4; pub const SOL_FILTER: ::c_int = 0xfffc; +pub const MADV_PURGE: ::c_int = 9; + pub const MR_HDR_AOUT: ::c_uint = 0x3; pub const B1000000: ::speed_t = 24; diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index eb924b5618..4041c67cf8 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -1440,6 +1440,7 @@ pub const MAP_RENAME: ::c_int = 0x20; pub const MAP_ALIGN: ::c_int = 0x200; pub const MAP_TEXT: ::c_int = 0x400; pub const MAP_INITDATA: ::c_int = 0x800; +pub const MAP_32BIT: ::c_int = 0x80; pub const MAP_FAILED: *mut ::c_void = !0 as *mut ::c_void; pub const MCL_CURRENT: ::c_int = 0x0001; @@ -1683,6 +1684,9 @@ pub const MADV_SEQUENTIAL: ::c_int = 2; pub const MADV_WILLNEED: ::c_int = 3; pub const MADV_DONTNEED: ::c_int = 4; pub const MADV_FREE: ::c_int = 5; +pub const MADV_ACCESS_DEFAULT: ::c_int = 6; +pub const MADV_ACCESS_LWP: ::c_int = 7; +pub const MADV_ACCESS_MANY: ::c_int = 8; pub const AF_UNSPEC: ::c_int = 0; pub const AF_UNIX: ::c_int = 1; |