Skip to content

Commit 328f221

Browse files
committed
Auto merge of #2402 - devnexen:fbsd_map_prefault_read, r=JohnTitor
freebsd/dragonfly adding MAP_PREFAULT_READ/MAP_VPAGETABLE mmap flags.
2 parents e2aabf1 + 2010f46 commit 328f221

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/freebsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ MAP_FILE
676676
MAP_HASSEMAPHORE
677677
MAP_NOCORE
678678
MAP_NOSYNC
679+
MAP_PREFAULT_READ
679680
MAP_STACK
680681
MAXFREQ
681682
MAXPHASE

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

+1
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ pub const Q_SETQUOTA: ::c_int = 0x800;
624624

625625
pub const MAP_GUARD: ::c_int = 0x00002000;
626626
pub const MAP_EXCL: ::c_int = 0x00004000;
627+
pub const MAP_PREFAULT_READ: ::c_int = 0x00040000;
627628
pub const MAP_ALIGNED_SUPER: ::c_int = 1 << 24;
628629

629630
pub const POSIX_FADV_NORMAL: ::c_int = 0;

0 commit comments

Comments
 (0)