Skip to content

Commit

Permalink
Auto merge of #3326 - devnexen:fbsd_mman_upd, r=JohnTitor
Browse files Browse the repository at this point in the history
freebsd adding few mmap constants related to page alignment
  • Loading branch information
bors committed Sep 22, 2023
2 parents 8c29d78 + bcb05a4 commit f6f46ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libc-test/semver/freebsd.txt
Expand Up @@ -721,6 +721,8 @@ MALLOCX_TCACHE
MALLOCX_ZERO
MAP_ALIGNED
MAP_ALIGNED_SUPER
MAP_ALIGNMENT_MASK
MAP_ALIGNMENT_SHIFT
MAP_COPY
MAP_EXCL
MAP_FILE
Expand Down
4 changes: 3 additions & 1 deletion src/unix/bsd/freebsdlike/freebsd/mod.rs
Expand Up @@ -2664,7 +2664,9 @@ pub const Q_SETQUOTA: ::c_int = 0x800;
pub const MAP_GUARD: ::c_int = 0x00002000;
pub const MAP_EXCL: ::c_int = 0x00004000;
pub const MAP_PREFAULT_READ: ::c_int = 0x00040000;
pub const MAP_ALIGNED_SUPER: ::c_int = 1 << 24;
pub const MAP_ALIGNMENT_SHIFT: ::c_int = 24;
pub const MAP_ALIGNMENT_MASK: ::c_int = 0xff << MAP_ALIGNMENT_SHIFT;
pub const MAP_ALIGNED_SUPER: ::c_int = 1 << MAP_ALIGNMENT_SHIFT;

pub const POSIX_FADV_NORMAL: ::c_int = 0;
pub const POSIX_FADV_RANDOM: ::c_int = 1;
Expand Down

0 comments on commit f6f46ae

Please sign in to comment.