Skip to content

Commit 5ffe00e

Browse files
committed
Auto merge of #2922 - devnexen:mman_update_solarish, r=JohnTitor
mmap/madvise specific solaris additional flags.
2 parents a157194 + 73d674b commit 5ffe00e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/unix/solarish/illumos.rs

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ pub const FILF_AUTO: ::c_int = 0x2;
5454
pub const FILF_BYPASS: ::c_int = 0x4;
5555
pub const SOL_FILTER: ::c_int = 0xfffc;
5656

57+
pub const MADV_PURGE: ::c_int = 9;
58+
5759
pub const MR_HDR_AOUT: ::c_uint = 0x3;
5860

5961
pub const B1000000: ::speed_t = 24;

src/unix/solarish/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,7 @@ pub const MAP_RENAME: ::c_int = 0x20;
14401440
pub const MAP_ALIGN: ::c_int = 0x200;
14411441
pub const MAP_TEXT: ::c_int = 0x400;
14421442
pub const MAP_INITDATA: ::c_int = 0x800;
1443+
pub const MAP_32BIT: ::c_int = 0x80;
14431444
pub const MAP_FAILED: *mut ::c_void = !0 as *mut ::c_void;
14441445

14451446
pub const MCL_CURRENT: ::c_int = 0x0001;
@@ -1683,6 +1684,9 @@ pub const MADV_SEQUENTIAL: ::c_int = 2;
16831684
pub const MADV_WILLNEED: ::c_int = 3;
16841685
pub const MADV_DONTNEED: ::c_int = 4;
16851686
pub const MADV_FREE: ::c_int = 5;
1687+
pub const MADV_ACCESS_DEFAULT: ::c_int = 6;
1688+
pub const MADV_ACCESS_LWP: ::c_int = 7;
1689+
pub const MADV_ACCESS_MANY: ::c_int = 8;
16861690

16871691
pub const AF_UNSPEC: ::c_int = 0;
16881692
pub const AF_UNIX: ::c_int = 1;

0 commit comments

Comments
 (0)