Skip to content

Commit ae46b45

Browse files
author
Connor Kuehl
committed
Move mmap flag 'MAP_FIXED_NOREPLACE' from gnu/mod.rs to linux/mod.rs
1 parent bc68163 commit ae46b45

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ pub const LC_ALL_MASK: ::c_int = ::LC_CTYPE_MASK
481481
| LC_MEASUREMENT_MASK
482482
| LC_IDENTIFICATION_MASK;
483483

484-
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
485484
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
486485

487486
pub const SOCK_SEQPACKET: ::c_int = 5;

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,6 +2310,7 @@ pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
23102310
// include/uapi/asm-generic/mman-common.h
23112311
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
23122312
pub const MAP_SYNC : ::c_int = 0x080000;
2313+
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
23132314

23142315
// uapi/linux/vm_sockets.h
23152316
pub const VMADDR_CID_ANY: ::c_uint = 0xFFFFFFFF;

0 commit comments

Comments
 (0)