Skip to content

Commit 63e3932

Browse files
committed
Disabled MAP_SHARED_VALIDATE and MAP_FIXED_NOREPLACE on musl for now.
Because we cannot yet bring a more recent musl to the mips and mipsel architectures, we disable support for these constant until a cascading update with rust-lang/rust has been done.
1 parent 6a97d64 commit 63e3932

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/unix/notbsd/linux/mips/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ pub const MAP_LOCKED: ::c_int = 0x8000;
334334
pub const MAP_POPULATE: ::c_int = 0x10000;
335335
pub const MAP_NONBLOCK: ::c_int = 0x20000;
336336
pub const MAP_STACK: ::c_int = 0x40000;
337+
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
338+
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
337339

338340
pub const SOCK_STREAM: ::c_int = 2;
339341
pub const SOCK_DGRAM: ::c_int = 1;

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,6 @@ pub const LIO_NOP: ::c_int = 2;
12561256
pub const LIO_WAIT: ::c_int = 0;
12571257
pub const LIO_NOWAIT: ::c_int = 1;
12581258

1259-
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
1260-
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
1261-
12621259
pub const MREMAP_MAYMOVE: ::c_int = 1;
12631260
pub const MREMAP_FIXED: ::c_int = 2;
12641261

src/unix/notbsd/linux/other/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ pub const MAP_EXECUTABLE: ::c_int = 0x01000;
377377
pub const MAP_POPULATE: ::c_int = 0x08000;
378378
pub const MAP_NONBLOCK: ::c_int = 0x010000;
379379
pub const MAP_STACK: ::c_int = 0x020000;
380+
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
381+
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
380382

381383
pub const ENOTSUP: ::c_int = EOPNOTSUPP;
382384
pub const EUCLEAN: ::c_int = 117;

src/unix/notbsd/linux/s390x/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ pub const MAP_NORESERVE: ::c_int = 0x04000;
517517
pub const MAP_POPULATE: ::c_int = 0x08000;
518518
pub const MAP_NONBLOCK: ::c_int = 0x010000;
519519
pub const MAP_STACK: ::c_int = 0x020000;
520+
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
521+
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
520522

521523
pub const EDEADLOCK: ::c_int = 35;
522524
pub const ENAMETOOLONG: ::c_int = 36;

0 commit comments

Comments
 (0)