Skip to content

Commit 748e872

Browse files
committed
Add MADV_*DUMP on Android
1 parent c9e6f55 commit 748e872

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,6 @@ pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
581581
pub const TMPFS_MAGIC: ::c_long = 0x01021994;
582582
pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
583583

584-
pub const MADV_HUGEPAGE: ::c_int = 14;
585-
pub const MADV_NOHUGEPAGE: ::c_int = 15;
586584
pub const MAP_HUGETLB: ::c_int = 0x040000;
587585

588586
pub const PTRACE_TRACEME: ::c_int = 0;

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,8 @@ pub const PTRACE_INTERRUPT: ::c_int = 0x4207;
185185
pub const PTRACE_LISTEN: ::c_int = 0x4208;
186186
pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
187187

188-
pub const MADV_DODUMP: ::c_int = 17;
189-
pub const MADV_DONTDUMP: ::c_int = 16;
190-
191188
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
192189

193-
pub const MADV_HUGEPAGE: ::c_int = 14;
194-
pub const MADV_NOHUGEPAGE: ::c_int = 15;
195-
196190
pub const PTRACE_GETFPREGS: ::c_uint = 14;
197191
pub const PTRACE_SETFPREGS: ::c_uint = 15;
198192
pub const PTRACE_GETFPXREGS: ::c_uint = 18;

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,8 @@ pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
410410
pub const PTRACE_LISTEN: ::c_uint = 0x4208;
411411
pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209;
412412

413-
pub const MADV_DODUMP: ::c_int = 17;
414-
pub const MADV_DONTDUMP: ::c_int = 16;
415-
416413
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
417414

418-
pub const MADV_HUGEPAGE: ::c_int = 14;
419-
pub const MADV_NOHUGEPAGE: ::c_int = 15;
420415
pub const MAP_HUGETLB: ::c_int = 0x040000;
421416

422417
pub const SEEK_DATA: ::c_int = 3;

src/unix/notbsd/linux/s390x.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,13 +698,8 @@ pub const PTRACE_INTERRUPT: ::c_uint = 0x4207;
698698
pub const PTRACE_LISTEN: ::c_uint = 0x4208;
699699
pub const PTRACE_PEEKSIGINFO: ::c_uint = 0x4209;
700700

701-
pub const MADV_DODUMP: ::c_int = 17;
702-
pub const MADV_DONTDUMP: ::c_int = 16;
703-
704701
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
705702

706-
pub const MADV_HUGEPAGE: ::c_int = 14;
707-
pub const MADV_NOHUGEPAGE: ::c_int = 15;
708703
pub const MAP_HUGETLB: ::c_int = 0x040000;
709704

710705
pub const EFD_NONBLOCK: ::c_int = 0x800;

src/unix/notbsd/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ pub const MADV_DONTFORK: ::c_int = 10;
417417
pub const MADV_DOFORK: ::c_int = 11;
418418
pub const MADV_MERGEABLE: ::c_int = 12;
419419
pub const MADV_UNMERGEABLE: ::c_int = 13;
420+
pub const MADV_HUGEPAGE: ::c_int = 14;
421+
pub const MADV_NOHUGEPAGE: ::c_int = 15;
422+
pub const MADV_DONTDUMP: ::c_int = 16;
423+
pub const MADV_DODUMP: ::c_int = 17;
420424
pub const MADV_HWPOISON: ::c_int = 100;
421425
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
422426

0 commit comments

Comments
 (0)