Skip to content

Commit 64b919f

Browse files
authored
Merge pull request #1694 from JohnTitor/map-sync
Tweak `MAP_SYNC`
2 parents 886329b + 5e10268 commit 64b919f

File tree

15 files changed

+14
-2
lines changed

15 files changed

+14
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ pub const MAP_NONBLOCK: ::c_int = 0x010000;
212212
pub const MAP_STACK: ::c_int = 0x020000;
213213
pub const MAP_HUGETLB: ::c_int = 0x040000;
214214
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
215+
pub const MAP_SYNC : ::c_int = 0x080000;
215216

216217
pub const SOL_SOCKET: ::c_int = 1;
217218

src/unix/linux_like/linux/gnu/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ pub const MAP_NONBLOCK: ::c_int = 0x010000;
213213
pub const MAP_STACK: ::c_int = 0x020000;
214214
pub const MAP_HUGETLB: ::c_int = 0x040000;
215215
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
216+
pub const MAP_SYNC : ::c_int = 0x080000;
216217

217218
pub const SOL_SOCKET: ::c_int = 1;
218219

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
245245
pub const MAP_NONBLOCK: ::c_int = 0x010000;
246246
pub const MAP_STACK: ::c_int = 0x020000;
247247
pub const MAP_HUGETLB: ::c_int = 0x040000;
248+
pub const MAP_SYNC : ::c_int = 0x080000;
248249

249250
pub const EDEADLK: ::c_int = 78;
250251
pub const ENAMETOOLONG: ::c_int = 63;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ pub const MAP_NONBLOCK: ::c_int = 0x010000;
416416
pub const MAP_STACK: ::c_int = 0x020000;
417417
pub const MAP_HUGETLB: ::c_int = 0x040000;
418418
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
419+
pub const MAP_SYNC : ::c_int = 0x080000;
419420

420421
pub const EDEADLOCK: ::c_int = 35;
421422
pub const EUCLEAN: ::c_int = 117;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
533533
pub const MAP_NONBLOCK: ::c_int = 0x010000;
534534
pub const MAP_STACK: ::c_int = 0x020000;
535535
pub const MAP_HUGETLB: ::c_int = 0x040000;
536+
pub const MAP_SYNC : ::c_int = 0x080000;
536537

537538
pub const EDEADLOCK: ::c_int = 35;
538539

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ pub const O_DIRECT: ::c_int = 0x20000;
544544

545545
pub const MAP_LOCKED: ::c_int = 0x00080;
546546
pub const MAP_NORESERVE: ::c_int = 0x00040;
547+
pub const MAP_SYNC : ::c_int = 0x080000;
547548

548549
pub const EDEADLOCK: ::c_int = 58;
549550
pub const EUCLEAN: ::c_int = 117;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ pub const MAP_EXECUTABLE: ::c_int = 4096;
474474
pub const MAP_POPULATE: ::c_int = 32768;
475475
pub const MAP_NONBLOCK: ::c_int = 65536;
476476
pub const MAP_STACK: ::c_int = 131072;
477+
pub const MAP_SYNC : ::c_int = 0x080000;
477478
pub const EDEADLOCK: ::c_int = 35;
478479
pub const EUCLEAN: ::c_int = 117;
479480
pub const ENOTNAM: ::c_int = 118;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ pub const MAP_POPULATE: ::c_int = 0x08000;
247247
pub const MAP_NONBLOCK: ::c_int = 0x010000;
248248
pub const MAP_STACK: ::c_int = 0x020000;
249249
pub const MAP_HUGETLB: ::c_int = 0x040000;
250+
pub const MAP_SYNC : ::c_int = 0x080000;
250251

251252
pub const EDEADLK: ::c_int = 78;
252253
pub const ENAMETOOLONG: ::c_int = 63;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@ pub const MAP_EXECUTABLE: ::c_int = 0x01000;
701701
pub const MAP_POPULATE: ::c_int = 0x08000;
702702
pub const MAP_NONBLOCK: ::c_int = 0x010000;
703703
pub const MAP_STACK: ::c_int = 0x020000;
704+
pub const MAP_SYNC : ::c_int = 0x080000;
704705

705706
pub const EDEADLOCK: ::c_int = 35;
706707
pub const EUCLEAN: ::c_int = 117;

src/unix/linux_like/linux/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,8 +2310,6 @@ pub const ALG_OP_ENCRYPT: ::c_int = 1;
23102310
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
23112311

23122312
// include/uapi/asm-generic/mman-common.h
2313-
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
2314-
pub const MAP_SYNC : ::c_int = 0x080000;
23152313
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
23162314

23172315
// uapi/linux/vm_sockets.h

0 commit comments

Comments
 (0)