Skip to content

Commit 56bd417

Browse files
author
Connor Kuehl
committed
Move mmap flag 'MAP_SHARED_VALIDATE' to linux/mod.rs from gnu/mod.rs
1 parent a185332 commit 56bd417

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

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

484-
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
485484
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
486-
487485
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
488486

489487
pub const SOCK_SEQPACKET: ::c_int = 5;

src/unix/linux_like/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,6 +2304,9 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
23042304
pub const ALG_OP_DECRYPT: ::c_int = 0;
23052305
pub const ALG_OP_ENCRYPT: ::c_int = 1;
23062306

2307+
// include/uapi/linux/mman.h
2308+
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
2309+
23072310
// uapi/linux/vm_sockets.h
23082311
pub const VMADDR_CID_ANY: ::c_uint = 0xFFFFFFFF;
23092312
pub const VMADDR_CID_HYPERVISOR: ::c_uint = 0;

0 commit comments

Comments
 (0)