Skip to content

Commit ec61db3

Browse files
committed
Auto merge of #2281 - devnexen:fbsd_map_excl, r=JohnTitor
freebsd add MAP_EXCL, with MAP_FIXED is equivalent to Linux's MAP_FIX… …ED_NOREPLACE
2 parents 13c8ceb + 5fbc561 commit ec61db3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ MADV_RANDOM
646646
MADV_SEQUENTIAL
647647
MADV_WILLNEED
648648
MAP_COPY
649+
MAP_EXCL
649650
MAP_FILE
650651
MAP_HASSEMAPHORE
651652
MAP_NOCORE

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ pub const Q_GETQUOTA: ::c_int = 0x700;
507507
pub const Q_SETQUOTA: ::c_int = 0x800;
508508

509509
pub const MAP_GUARD: ::c_int = 0x00002000;
510+
pub const MAP_EXCL: ::c_int = 0x00004000;
510511
pub const MAP_ALIGNED_SUPER: ::c_int = 1 << 24;
511512

512513
pub const POSIX_FADV_NORMAL: ::c_int = 0;

0 commit comments

Comments
 (0)