Skip to content

Commit f6f46ae

Browse files
committed
Auto merge of #3326 - devnexen:fbsd_mman_upd, r=JohnTitor
freebsd adding few mmap constants related to page alignment
2 parents 8c29d78 + bcb05a4 commit f6f46ae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

libc-test/semver/freebsd.txt

+2
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,8 @@ MALLOCX_TCACHE
721721
MALLOCX_ZERO
722722
MAP_ALIGNED
723723
MAP_ALIGNED_SUPER
724+
MAP_ALIGNMENT_MASK
725+
MAP_ALIGNMENT_SHIFT
724726
MAP_COPY
725727
MAP_EXCL
726728
MAP_FILE

src/unix/bsd/freebsdlike/freebsd/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,9 @@ pub const Q_SETQUOTA: ::c_int = 0x800;
26642664
pub const MAP_GUARD: ::c_int = 0x00002000;
26652665
pub const MAP_EXCL: ::c_int = 0x00004000;
26662666
pub const MAP_PREFAULT_READ: ::c_int = 0x00040000;
2667-
pub const MAP_ALIGNED_SUPER: ::c_int = 1 << 24;
2667+
pub const MAP_ALIGNMENT_SHIFT: ::c_int = 24;
2668+
pub const MAP_ALIGNMENT_MASK: ::c_int = 0xff << MAP_ALIGNMENT_SHIFT;
2669+
pub const MAP_ALIGNED_SUPER: ::c_int = 1 << MAP_ALIGNMENT_SHIFT;
26682670

26692671
pub const POSIX_FADV_NORMAL: ::c_int = 0;
26702672
pub const POSIX_FADV_RANDOM: ::c_int = 1;

0 commit comments

Comments
 (0)