Skip to content

Commit 94bf82a

Browse files
committed
Auto merge of #2343 - devnexen:haiku_beta3_upd, r=JohnTitor
haiku mmap/madvise new flags
2 parents 402f84a + 10681f2 commit 94bf82a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ pub const MAP_SHARED: ::c_int = 0x01;
680680
pub const MAP_PRIVATE: ::c_int = 0x02;
681681
pub const MAP_FIXED: ::c_int = 0x04;
682682
pub const MAP_ANONYMOUS: ::c_int = 0x08;
683+
pub const MAP_NORESERVE: ::c_int = 0x10;
683684
pub const MAP_ANON: ::c_int = MAP_ANONYMOUS;
684685

685686
pub const MAP_FAILED: *mut ::c_void = !0 as *mut ::c_void;
@@ -786,6 +787,7 @@ pub const MADV_SEQUENTIAL: ::c_int = 2;
786787
pub const MADV_RANDOM: ::c_int = 3;
787788
pub const MADV_WILLNEED: ::c_int = 4;
788789
pub const MADV_DONTNEED: ::c_int = 5;
790+
pub const MADV_FREE: ::c_int = 6;
789791

790792
// https://github.com/haiku/haiku/blob/master/headers/posix/net/if.h#L80
791793
pub const IFF_UP: ::c_int = 0x0001;

0 commit comments

Comments
 (0)