Skip to content

Commit bc68163

Browse files
author
Connor Kuehl
committed
Add mmap flag 'MAP_SYNC' to linux/mod.rs
1 parent 56bd417 commit bc68163

File tree

1 file changed

+4
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+4
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,6 +2307,10 @@ pub const ALG_OP_ENCRYPT: ::c_int = 1;
23072307
// include/uapi/linux/mman.h
23082308
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
23092309

2310+
// include/uapi/asm-generic/mman-common.h
2311+
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
2312+
pub const MAP_SYNC : ::c_int = 0x080000;
2313+
23102314
// uapi/linux/vm_sockets.h
23112315
pub const VMADDR_CID_ANY: ::c_uint = 0xFFFFFFFF;
23122316
pub const VMADDR_CID_HYPERVISOR: ::c_uint = 0;

0 commit comments

Comments
 (0)