summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mach2/src/vm_purgable.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
commit9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /third_party/rust/mach2/src/vm_purgable.rs
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/mach2/src/vm_purgable.rs')
-rw-r--r--third_party/rust/mach2/src/vm_purgable.rs42
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/rust/mach2/src/vm_purgable.rs b/third_party/rust/mach2/src/vm_purgable.rs
new file mode 100644
index 0000000000..79fc297cb0
--- /dev/null
+++ b/third_party/rust/mach2/src/vm_purgable.rs
@@ -0,0 +1,42 @@
+//! This module corresponds to `mach/vm_purgable.h`.
+
+pub type vm_purgable_t = ::libc::c_int;
+
+pub const VM_PURGABLE_SET_STATE: vm_purgable_t = 0;
+pub const VM_PURGABLE_GET_STATE: vm_purgable_t = 1;
+
+pub const VM_VOLATILE_GROUP_SHIFT: ::libc::c_int = 8;
+pub const VM_VOLATILE_GROUP_MASK: ::libc::c_int = 7 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_DEFAULT: ::libc::c_int = VM_VOLATILE_GROUP_0;
+
+pub const VM_VOLATILE_GROUP_0: ::libc::c_int = 0 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_1: ::libc::c_int = 1 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_2: ::libc::c_int = 2 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_3: ::libc::c_int = 3 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_4: ::libc::c_int = 4 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_5: ::libc::c_int = 5 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_6: ::libc::c_int = 6 << VM_VOLATILE_GROUP_SHIFT;
+pub const VM_VOLATILE_GROUP_7: ::libc::c_int = 7 << VM_VOLATILE_GROUP_SHIFT;
+
+pub const VM_PURGABLE_BEHAVIOR_SHIFT: ::libc::c_int = 6;
+pub const VM_PURGABLE_BEHAVIOR_MASK: ::libc::c_int = 1 << VM_PURGABLE_BEHAVIOR_SHIFT;
+pub const VM_PURGABLE_BEHAVIOR_FIFO: ::libc::c_int = 0 << VM_PURGABLE_BEHAVIOR_SHIFT;
+pub const VM_PURGABLE_BEHAVIOR_LIFO: ::libc::c_int = 1 << VM_PURGABLE_BEHAVIOR_SHIFT;
+
+pub const VM_PURGABLE_ORDERING_SHIFT: ::libc::c_int = 5;
+pub const VM_PURGABLE_ORDERING_MASK: ::libc::c_int = 1 << VM_PURGABLE_ORDERING_SHIFT;
+pub const VM_PURGABLE_ORDERING_OBSOLETE: ::libc::c_int = 1 << VM_PURGABLE_ORDERING_SHIFT;
+pub const VM_PURGABLE_ORDERING_NORMAL: ::libc::c_int = 0 << VM_PURGABLE_ORDERING_SHIFT;
+
+pub const VM_VOLATILE_ORDER_SHIFT: ::libc::c_int = 4;
+pub const VM_VOLATILE_ORDER_MASK: ::libc::c_int = 1 << VM_VOLATILE_ORDER_SHIFT;
+pub const VM_VOLATILE_MAKE_FIRST_IN_GROUP: ::libc::c_int = 1 << VM_VOLATILE_ORDER_SHIFT;
+pub const VM_VOLATILE_MAKE_LAST_IN_GROUP: ::libc::c_int = 0 << VM_VOLATILE_ORDER_SHIFT;
+
+pub const VM_PURGABLE_STATE_MIN: ::libc::c_int = 0;
+pub const VM_PURGABLE_STATE_MAX: ::libc::c_int = 3;
+pub const VM_PURGABLE_STATE_MASK: ::libc::c_int = 3;
+pub const VM_PURGABLE_NONVOLATILE: ::libc::c_int = 0;
+pub const VM_PURGABLE_VOLATILE: ::libc::c_int = 1;
+pub const VM_PURGABLE_EMPTY: ::libc::c_int = 2;
+pub const VM_PURGABLE_DENY: ::libc::c_int = 3;