commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
2592fa388f453582bde569191f2c24398fd9f829
Graham Esau
2019-08-04T15:55:59
Fix loop termination condition in make_unique_name
diff --git a/schemars/src/generator.rs b/schemars/src/generator.rs index 9d20905..aa4f9e6 100644 --- a/schemars/src/generator.rs +++ b/schemars/src/generator.rs @@ -79,7 +79,7 @@ impl SchemaGenerator { if self.names.contains(&base_name) { for i in 2.. { let name = format!("{}{}", ...
1
1
1
fcb9d5d1c0907b15282b5fdbd6a80dc8ae352356
Graham Esau
2019-08-04T12:48:16
Derive PartialEq on Schema structs
diff --git a/schemars/src/schema.rs b/schemars/src/schema.rs index 2ac72c0..10fdc99 100644 --- a/schemars/src/schema.rs +++ b/schemars/src/schema.rs @@ -2,7 +2,7 @@ use serde::{Deserialize, Serialize}; use serde_json::Value; use std::collections::BTreeMap as Map; -#[derive(Serialize, Deserialize, Debug, Clone)] +#[...
1
5
5
cbbc883038a66943dee930b0ed91668f5ffe9371
Graham Esau
2019-08-04T12:42:22
Change generates_ref_schema default to true
diff --git a/schemars/src/make_schema.rs b/schemars/src/make_schema.rs index 1c7d986..9b08437 100644 --- a/schemars/src/make_schema.rs +++ b/schemars/src/make_schema.rs @@ -21,14 +21,20 @@ pub trait MakeSchema { } fn generates_ref_schema() -> bool { - // TODO default this to true as it's safer - ...
1
28
5
21a29dc6b5890bcecf6c75b072cfa60d317231cf
Graham Esau
2019-08-04T11:30:16
Remove various 'static bounds Currently using an unreliable hack - assuming type name is unique D:
diff --git a/schemars/src/generator.rs b/schemars/src/generator.rs index 52c5b41..6bde36f 100644 --- a/schemars/src/generator.rs +++ b/schemars/src/generator.rs @@ -1,6 +1,5 @@ -use crate::make_schema::MakeSchema; +use crate::make_schema::{MakeSchema, SchemaTypeId}; use crate::schema::*; -use core::any::TypeId; use s...
3
31
16
4f9956631efd2307e741f9249b567ae811544319
Graham Esau
2019-08-04T09:11:56
Enforce unique subschema names
diff --git a/schemars/src/generator.rs b/schemars/src/generator.rs index 511b840..52c5b41 100644 --- a/schemars/src/generator.rs +++ b/schemars/src/generator.rs @@ -1,8 +1,9 @@ use crate::make_schema::MakeSchema; use crate::schema::*; -use core::any::{type_name, TypeId}; -use std::collections::HashMap as Map; -use st...
1
24
11
2e580cb91496c53c89523b252e70af34e4b40ab4
Graham Esau
2019-08-04T08:20:10
Change override_schema_name to schema_name
diff --git a/schemars/src/generator.rs b/schemars/src/generator.rs index be32c61..511b840 100644 --- a/schemars/src/generator.rs +++ b/schemars/src/generator.rs @@ -47,7 +47,7 @@ impl SchemaGenerator { let schema = T::make_schema(self); if let Schema::Object(mut o) = schema { o.schema = S...
2
5
9
42013cff01f1166f9f45f3772aea43f5bcc39c14
Graham Esau
2019-08-04T00:45:51
Allow opting out of ref schema generation
diff --git a/schemars/src/generator.rs b/schemars/src/generator.rs index 6d6e183..be32c61 100644 --- a/schemars/src/generator.rs +++ b/schemars/src/generator.rs @@ -18,6 +18,10 @@ impl SchemaGenerator { } pub fn subschema_for<T: MakeSchema + 'static>(&mut self) -> Schema { + if !T::generates_ref_sche...
2
21
9
b3924feb87b4792a01b70096f30d15f23a5158c9
Graham Esau
2019-08-03T20:22:21
Extend SchemaObject
diff --git a/schemars/src/schema.rs b/schemars/src/schema.rs index 3a97a2b..b8f97ff 100644 --- a/schemars/src/schema.rs +++ b/schemars/src/schema.rs @@ -26,18 +26,22 @@ impl From<bool> for Schema { pub struct SchemaObject { #[serde(rename = "$schema", skip_serializing_if = "Option::is_none")] pub schema: Opt...
1
7
3
3c03d910caa7dcbc5a3ae52141cd51d8039d2d3e
Graham Esau
2019-08-03T18:16:30
Allow boolean "trivial" schemas
diff --git a/schemars/src/make_schema.rs b/schemars/src/make_schema.rs index 37fecda..3f07def 100644 --- a/schemars/src/make_schema.rs +++ b/schemars/src/make_schema.rs @@ -23,10 +23,11 @@ macro_rules! simple_impl { ($type:tt => $instance_type:expr) => { impl MakeSchema for $type { fn make_sc...
2
53
29
1cc9bb5564c7696979520e0af50a2bf91dd4b178
Graham Esau
2019-08-03T17:35:36
Simplify generated schema for Map types
diff --git a/schemars/src/make_schema.rs b/schemars/src/make_schema.rs index 2b27308..37fecda 100644 --- a/schemars/src/make_schema.rs +++ b/schemars/src/make_schema.rs @@ -168,8 +168,8 @@ macro_rules! map_impl { { let mut extra_properties = Map::new(); extra_properties.in...
1
2
2
4a1afb757429457a39980da0d6cf5e1e9dae11b0
Graham Esau
2019-08-03T17:30:14
Add a few more MakeSchema implementations
diff --git a/src/make_schema.rs b/src/make_schema.rs index 437918d..2b27308 100644 --- a/src/make_schema.rs +++ b/src/make_schema.rs @@ -8,19 +8,19 @@ pub trait MakeSchema { // TODO structs, enums, tuples -// TODO serde json value, any other serde values? +// TODO any other serde types other than serde_json value?...
2
44
6
6e55cace2c817809fd96f0af84463d03935dfebf
Paul Mabileau
2026-03-20T14:20:48
Chore(traps): Rename `task_for_pid`'s last argument Just passing by, the last argument of `task_for_pid` is renamed in order to match the original headers more closely (`t`) while the newly-added `task_name_for_pid` uses its own (`tn`). Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
diff --git a/src/traps.rs b/src/traps.rs index 6e22b5f..03f3655 100644 --- a/src/traps.rs +++ b/src/traps.rs @@ -9,7 +9,7 @@ unsafe extern "C" { pub fn task_for_pid( target_tport: mach_port_name_t, pid: c_int, - tn: *mut mach_port_name_t, + t: *mut mach_port_name_t, ) -> kern_r...
1
1
1
c87982f01112a3b57f32d7f5789f1e1b7e7b24c9
Paul Mabileau
2026-03-20T14:12:33
Feat(traps): Add `task_name_for_pid` This adds a new binding definition for the `task_name_for_pid` mach trap. It is defined here: https://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/osfmk/mach/mach_traps.h#L358-L361. It has the exact same API/ABI as `task_for_pid`, only the sy...
diff --git a/src/traps.rs b/src/traps.rs index f2f360a..6e22b5f 100644 --- a/src/traps.rs +++ b/src/traps.rs @@ -5,11 +5,18 @@ use core::ffi::c_int; unsafe extern "C" { static mach_task_self_: mach_port_t; + pub fn task_for_pid( target_tport: mach_port_name_t, pid: c_int, tn: *mu...
1
7
0
6ec9c9dfe94cbc5a03e083619c7719447ae8f81c
Yuki Okushi
2026-02-26T12:10:42
fix: correct `BOOTSTRAP_*` consts
diff --git a/src/bootstrap.rs b/src/bootstrap.rs index aaf3719..87cfabc 100644 --- a/src/bootstrap.rs +++ b/src/bootstrap.rs @@ -10,18 +10,18 @@ pub const BOOTSTRAP_MAX_CMD_LEN: c_uint = 512; pub const BOOTSTRAP_MAX_LOOKUP_COUNT: c_uint = 20; -pub const BOOTSTRAP_SUCCESS: c_uint = 0; -pub const BOOTSTRAP_NOT_PRIVI...
1
11
11
8062388db614d2aa8db609086a6329410c46ad41
Yuki Okushi
2026-01-29T21:26:22
Apply suggestion from @JohnTitor
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 01557f9..e716b0d 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" mach2 = { path = ".." } [build-dependencies] -ctest = "=0.5.0" +ctest = "0.5.0" [[test]] name = "main"
1
1
1
a939b8f75a4b7e2bbbf8f73aa0844ee44a287249
Yuki Okushi
2025-11-16T00:56:35
feat: cleanup ctest
diff --git a/mach-test/build.rs b/mach-test/build.rs index 9c6a6de..323fe84 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -129,44 +129,19 @@ fn main() { .header("mach/vm_task.h") .header("mach/vm_types.h"); - // The below doesn't exist in Xcode 14: - if xcode < Xcode(14, 0) { - ...
3
5
52
fae72705e414fca50945b8a954c4c80041303dd6
Yuki Okushi
2025-11-15T23:25:47
feat: sync existing modules
diff --git a/mach-test/test/main.rs b/mach-test/test/main.rs index 4e08efb..5bb9f0f 100644 --- a/mach-test/test/main.rs +++ b/mach-test/test/main.rs @@ -8,10 +8,13 @@ use mach2::clock_reply::*; use mach2::clock_types::*; use mach2::dyld::*; use mach2::dyld_kernel::*; +use mach2::error::*; use mach2::exc::*; use ma...
17
739
11
a8782c4b3cc111f50d12fd243dd5c2adad04fe57
Yuki Okushi
2025-11-15T08:07:51
feat: add definitions from latest task.h
diff --git a/src/task.rs b/src/task.rs index a5aaa0e..8af5997 100644 --- a/src/task.rs +++ b/src/task.rs @@ -1,31 +1,65 @@ //! This module corresponds to `mach/task.defs`. +use crate::boolean::boolean_t; +use crate::exception_types::{ + exception_behavior_array_t, exception_behavior_t, exception_flavor_array_t, +...
1
822
13
4cf4ddd15ea63906f57ea2f6a778a01df97a2057
Yuki Okushi
2025-11-15T04:17:30
chore: use newer ctest
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 4453fda..2832657 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -3,13 +3,14 @@ name = "mach-test" version = "0.1.0" authors = ["gnzlbg <gonzalobg88@gmail.com>"] build = "build.rs" +edition = "2024" [dependencies] mach2 = { path = ".....
2
15
18
e1019e7fb2988fcf7489165c3190b67254cd15f9
Peyton
2025-08-16T09:04:08
Update thread_get_state Parameter Names The correct names for the thread_get_state function parameters start with old instead of new. https://developer.apple.com/documentation/kernel/1418576-thread_get_state
diff --git a/src/thread_act.rs b/src/thread_act.rs index fa2409f..b74d8b4 100644 --- a/src/thread_act.rs +++ b/src/thread_act.rs @@ -11,8 +11,8 @@ extern "C" { pub fn thread_get_state( target_act: thread_act_t, flavor: thread_state_flavor_t, - new_state: thread_state_t, - new_state_...
1
2
2
ff60ac12f2a62f86067589cfdac39478c0d5b69e
Yuki Okushi
2025-08-04T12:58:22
Prepare release for 0.5.0
diff --git a/Cargo.toml b/Cargo.toml index 1694b46..3728ff0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach2" -version = "0.4.3" +version = "0.5.0" license = "BSD-2-Clause OR MIT OR Apache-2.0" description = "A Rust interface to the user-space API of the Mach 3.0 kernel that underlie...
1
2
2
97e6e6aef8784ee6786b252c05755e3787d98292
ldm0
2025-07-31T18:53:31
refactor(structs): rename __flags field to __pad in arm_thread_state64_t
diff --git a/src/structs.rs b/src/structs.rs index 0d0d621..2f93ea1 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -13,7 +13,7 @@ pub struct arm_thread_state64_t { pub __sp: u64, pub __pc: u64, pub __cpsr: u32, - pub __flags: u32, + pub __pad: u32, } #[cfg(target_arch = "aarch64")]
1
1
1
f70e94711f4fcece062c1703ec990cb2843a86da
ldm0
2025-07-31T20:14:21
feat(task_info): add count constants for task info structs Add constants for calculating the count of natural_t elements in various task info structs. This helps in proper memory management and alignment when working with these structures.
diff --git a/src/task_info.rs b/src/task_info.rs index daeb329..47ed0eb 100644 --- a/src/task_info.rs +++ b/src/task_info.rs @@ -1,7 +1,9 @@ //! This module roughly corresponds to `mach/task_info.h`. +use mem; +use message::{audit_token_t, security_token_t}; use time_value::time_value_t; -use vm_statistics::vm_extm...
1
50
1
115e3f83f1331e99c6655dae6f2d7766ef26d39c
ldm0
2025-07-31T19:44:12
feat(task_info): add new structs for task info and power metrics Add mach_task_basic_info, task_trace_memory_info, task_wait_state_info, gpu_energy_data, task_power_info_v2, and task_flags_info structs to support additional task monitoring capabilities. Also fix indentation in existing struct.
diff --git a/mach-test/build.rs b/mach-test/build.rs index 19c7121..4d07eb9 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -290,6 +290,7 @@ fn main() { cfg.type_name(move |ty, is_struct, is_union| match ty { t if is_union => format!("union {}", t), t if t.ends_with("_t") => t.to_stri...
2
67
2
3138d8e4fc5b1a9db1000193dba8409a1fcfec6d
ldm0
2025-07-31T19:12:34
feat(task_info): add new task info structs for system monitoring Add various task information structures including task_basic_info, task_events_info, task_thread_times_info, and others to support comprehensive system monitoring capabilities. These structs provide detailed metrics about task behavior and resource usage...
diff --git a/src/task_info.rs b/src/task_info.rs index 719d466..a8373b6 100644 --- a/src/task_info.rs +++ b/src/task_info.rs @@ -1,6 +1,8 @@ //! This module roughly corresponds to `mach/task_info.h`. -use vm_types::{integer_t, mach_vm_address_t, mach_vm_size_t, natural_t}; +use time_value::time_value_t; +use vm_stat...
1
155
1
54e4130a3d7a5c796788ecb1840c3707b023d752
ldm0
2025-07-31T20:41:40
feat(vm_statistics): add new VM page query flags and memory flags Add additional VM page query flags and memory management flags to support more virtual memory operations. Also includes helper functions for flag manipulation and updates struct alignment.
diff --git a/src/vm_statistics.rs b/src/vm_statistics.rs index b799594..60a4626 100644 --- a/src/vm_statistics.rs +++ b/src/vm_statistics.rs @@ -15,6 +15,14 @@ pub const VM_PAGE_QUERY_PAGE_PRESENT: integer_t = 1; pub const VM_PAGE_QUERY_PAGE_FICTITIOUS: integer_t = 1 << 1; pub const VM_PAGE_QUERY_PAGE_REF: integer_t ...
1
87
1
05fdd728125334640aee35758302a119802c3029
ldm0
2025-07-31T18:59:32
feat(vm_statistics): add new vm statistics types and structs Add vm_statistics64, vm_extmod_statistics, vm_purgeable_stat and vm_purgeable_info types to support extended virtual memory statistics reporting. These additions provide more detailed memory management metrics for monitoring and analysis.
diff --git a/src/vm_statistics.rs b/src/vm_statistics.rs index bd138ca..b799594 100644 --- a/src/vm_statistics.rs +++ b/src/vm_statistics.rs @@ -4,6 +4,12 @@ use vm_types::{integer_t, natural_t}; pub type vm_statistics_t = *mut vm_statistics; pub type vm_statistics_data_t = vm_statistics; +pub type vm_statistics64_...
1
61
0
614909f4aadafe5c1a17b315112f726b5440e307
JaySon-Huang
2025-07-29T14:55:54
Add mach_init::mach_host_self Signed-off-by: JaySon-Huang <tshent@qq.com>
diff --git a/examples/dump_process_registers.rs b/examples/dump_process_registers.rs index 3239a7b..ff0c364 100644 --- a/examples/dump_process_registers.rs +++ b/examples/dump_process_registers.rs @@ -145,6 +145,8 @@ fn main() { thread_list as _, ((thread_count as usize) * mem::size_of::<libc:...
2
3
0
86b3f278c4ebc603af14dbd4f5388d83fcd528d6
Yuki Okushi
2025-06-22T02:28:23
chore: Prepare 0.4.3 release
diff --git a/Cargo.toml b/Cargo.toml index 40d59c2..1694b46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach2" -version = "0.4.2" +version = "0.4.3" license = "BSD-2-Clause OR MIT OR Apache-2.0" description = "A Rust interface to the user-space API of the Mach 3.0 kernel that underlie...
1
1
1
ae47e1935ba23b4138550f098dc0e6d4135ddc59
Yuki Okushi
2025-06-22T02:19:33
chore: Use original ctest
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 0cc4eb0..4453fda 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,7 +9,7 @@ mach2 = { path = ".." } libc = "0.2" [build-dependencies] -ctest = { package = "ctest2", version = "0.4.7" } +ctest = "0.4" [[test]] name = "main"
1
1
1
d748ba1c848032a5188e1fe855930fed3a9298e7
Yuki Okushi
2024-01-03T07:09:55
Add `struct` prefix on all the structs in C
diff --git a/mach-test/build.rs b/mach-test/build.rs index dee9c23..19c7121 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -157,9 +157,6 @@ fn main() { // FIXME: Changed in XCode 11, figure out what's changed. "vm_region_submap_info_64" if xcode >= Xcode(11, 0) => true, - ...
1
5
36
0e1cce4c2502431ddd581e6e5f076d52e6e47942
Yuki Okushi
2024-01-03T05:53:15
Add `mach-o/dyld.h` items
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 7f6be4c..0cc4eb0 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,7 +9,7 @@ mach2 = { path = ".." } libc = "0.2" [build-dependencies] -ctest = { package = "ctest2", version = "0.4.2" } +ctest = { package = "ctest2", version = "0.4.7" }...
6
37
1
176462205e0ee6c83260435f00ebf75c20bc0663
Donough Liu
2024-01-03T05:32:17
Add `time_value` (#25)
diff --git a/mach-test/build.rs b/mach-test/build.rs index 3fb30c9..661e3fa 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -297,6 +297,7 @@ fn main() { | "vm_page_info_basic" | "vm_statistics" | "task_dyld_info" + | "time_value" | "fsid" | "fsobj_id" ...
4
14
0
2a1cf358c7b2b43a0ce1a6e1495ca1036ac5b35e
Yuki Okushi
2023-12-19T15:14:51
Prepare release for v0.4.2
diff --git a/Cargo.toml b/Cargo.toml index ccced74..40d59c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach2" -version = "0.4.1" +version = "0.4.2" license = "BSD-2-Clause OR MIT OR Apache-2.0" description = "A Rust interface to the user-space API of the Mach 3.0 kernel that underlie...
1
1
1
fce20e6cdb711f6599b207e2036a3639434259e3
Yuki Okushi
2023-12-19T14:48:12
Add new mods to all-test
diff --git a/mach-test/test/main.rs b/mach-test/test/main.rs index b7284a9..41af42c 100644 --- a/mach-test/test/main.rs +++ b/mach-test/test/main.rs @@ -21,7 +21,9 @@ use mach2::memory_object_types::*; use mach2::message::*; use mach2::ndr::*; use mach2::port::*; +use mach2::semaphore::*; use mach2::structs::*; +us...
1
2
0
3185c5e84eeb01f7cebaa743790c2d1a87fb79e7
Yuki Okushi
2023-12-19T14:35:58
Fix libc-test
diff --git a/mach-test/build.rs b/mach-test/build.rs index fc16aa3..3fb30c9 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -177,6 +177,10 @@ fn main() { }); cfg.skip_fn(move |s| { + // FIXME: The return type of these functions are different in Xcode 13 or higher. + if s.starts_wit...
1
4
0
0b1acaa5372b5c2ad453844661e84975846002e4
DoumanAsh
2022-09-30T01:08:28
Correct semaphore argument signature
diff --git a/src/semaphore.rs b/src/semaphore.rs index 768d166..d73694d 100644 --- a/src/semaphore.rs +++ b/src/semaphore.rs @@ -8,12 +8,12 @@ use sync_policy::sync_policy_t; extern "C" { pub fn semaphore_create( task: task_t, - semaphore: semaphore_t, + semaphore: *mut semaphore_t, ...
1
5
5
0fc82f020dfebe2529eaa23f4fa1f123414be40d
DoumanAsh
2022-09-29T12:39:41
Do not use crate::
diff --git a/src/semaphore.rs b/src/semaphore.rs index 2df10d5..768d166 100644 --- a/src/semaphore.rs +++ b/src/semaphore.rs @@ -1,9 +1,9 @@ //! This module corresponds to `mach/semaphore.h` -use crate::clock_types::mach_timespec_t; -use crate::kern_return::kern_return_t; -use crate::mach_types::{semaphore_t, task_t...
1
4
4
623d0d3a11c2ff963e9cc9c019ab665e06e13c88
DoumanAsh
2022-09-29T12:38:43
Apply uglifier
diff --git a/src/lib.rs b/src/lib.rs index cfaa53f..5b13517 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,9 +37,9 @@ pub mod memory_object_types; pub mod message; pub mod ndr; pub mod port; +pub mod semaphore; pub mod structs; pub mod sync_policy; -pub mod semaphore; pub mod task; pub mod task_info; pub mod t...
2
9
4
f3b8db1cb1889df813acddfe67798eea5b421775
DoumanAsh
2022-09-29T09:49:00
Add semaphore API
diff --git a/src/lib.rs b/src/lib.rs index 02f38f6..cfaa53f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,6 +38,8 @@ pub mod message; pub mod ndr; pub mod port; pub mod structs; +pub mod sync_policy; +pub mod semaphore; pub mod task; pub mod task_info; pub mod thread_act; diff --git a/src/semaphore.rs b/src/sem...
3
25
0
e456f18f7ec8f3e4043f720c601c9d6195f0e3b1
Harry Mallon
2023-11-17T16:32:49
Add support for mach_ports_lookup
diff --git a/src/port.rs b/src/port.rs index d2e2485..e297622 100644 --- a/src/port.rs +++ b/src/port.rs @@ -11,6 +11,7 @@ pub struct ipc_port; pub type ipc_port_t = *mut ipc_port; pub type mach_port_t = ::libc::c_uint; +pub type mach_port_array_t = *mut mach_port_t; pub const MACH_PORT_NULL: mach_port_t = 0; p...
2
7
1
feba6e9ca553af5761cc00ce1b20d2d9aacb7ec3
turbocooler
2023-01-04T20:58:36
Add mach_port_destruct.
diff --git a/src/mach_port.rs b/src/mach_port.rs index 68c3558..3f9cab0 100644 --- a/src/mach_port.rs +++ b/src/mach_port.rs @@ -41,4 +41,10 @@ extern "C" { context: mach_port_context_t, name: *mut mach_port_name_t, ) -> kern_return_t; + pub fn mach_port_destruct( + task: ipc_space_t, +...
1
6
0
aab46bbc2c492a06745f3365dee1728f3237fdc7
turbocooler
2023-01-04T19:25:27
Add mach_port_construct and the required types.
diff --git a/src/mach_port.rs b/src/mach_port.rs index e14a08e..68c3558 100644 --- a/src/mach_port.rs +++ b/src/mach_port.rs @@ -3,7 +3,10 @@ use kern_return::kern_return_t; use mach_types::ipc_space_t; use message::mach_msg_type_name_t; -use port::{mach_port_delta_t, mach_port_name_t, mach_port_right_t, mach_port_t...
2
42
1
c2047935ecf930f90d3e0917f2568ec8560dd072
turbocool3r
2022-09-17T00:47:37
Add the mach_msg_type_descriptor_t structure. (#16)
diff --git a/mach-test/build.rs b/mach-test/build.rs index cb67754..f5c634c 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -132,6 +132,9 @@ fn main() { cfg.skip_struct(move |s| { match s { + // TODO: this type is a bitfield and must be verified by hand + "mach_msg_type...
2
12
0
e6f2e411f8b3381eabbb6b55df6b41d2c0ce7127
turbocooler
2022-09-14T11:51:01
Add missing flags, error codes and some structures.
diff --git a/src/message.rs b/src/message.rs index 1d32def..fb401d0 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1,7 +1,7 @@ //! This module corresponds to `mach/message.h`. use kern_return::kern_return_t; -use port::{mach_port_name_t, mach_port_t}; +use port::{mach_port_name_t, mach_port_seqno_t, mach_port...
2
76
1
d6a61894b2b2693ceaefedd426eaf7423bd4e14f
turbocool3r
2022-09-12T22:24:22
Improve APIs for Mach port descriptor structures creation. (#14)
diff --git a/src/message.rs b/src/message.rs index 40114ad..1d32def 100644 --- a/src/message.rs +++ b/src/message.rs @@ -204,7 +204,7 @@ impl mach_msg_ool_descriptor_t { address: *mut ::libc::c_void, deallocate: bool, copy: mach_msg_copy_options_t, - size: u32, + size: mach_msg_...
1
20
1
0437e6d8c7837c73484a6fb8d67774abab1b07f7
Benjamin Bouvier
2022-09-12T13:45:28
Add support for exceptions ports + aarch64 (#8)
diff --git a/examples/dump_process_registers.rs b/examples/dump_process_registers.rs index bbaa93a..f00e896 100644 --- a/examples/dump_process_registers.rs +++ b/examples/dump_process_registers.rs @@ -12,12 +12,16 @@ use mach2::kern_return::KERN_SUCCESS; use mach2::mach_types::{task_t, thread_act_array_t}; use mach2:...
11
130
14
11476e373ca8ab203234b67788ae00e703112a41
Yuki Okushi
2022-06-07T13:36:18
Bump up to 0.4.1
diff --git a/Cargo.toml b/Cargo.toml index f51e407..ccced74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach2" -version = "0.4.0" +version = "0.4.1" license = "BSD-2-Clause OR MIT OR Apache-2.0" description = "A Rust interface to the user-space API of the Mach 3.0 kernel that underlie...
1
1
1
d04d9c84806684390391ee61a6727e611acd6bc1
turbocool3r
2022-06-07T10:05:45
Define mach_port_mod_refs (#9)
diff --git a/src/mach_port.rs b/src/mach_port.rs index 76a3400..e14a08e 100644 --- a/src/mach_port.rs +++ b/src/mach_port.rs @@ -3,7 +3,7 @@ use kern_return::kern_return_t; use mach_types::ipc_space_t; use message::mach_msg_type_name_t; -use port::{mach_port_name_t, mach_port_right_t, mach_port_t}; +use port::{mach_...
2
10
2
66b73bdff6c18dd85ebf1f37e0ddc1ce1917f08e
S.J.R. van Schaik
2022-03-05T07:14:40
Implement the thread policy API (#6)
diff --git a/mach-test/build.rs b/mach-test/build.rs index aaba413..cb67754 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -287,7 +287,15 @@ fn main() { | "dyld_kernel_process_info" | "mach_timespec" | "mach_vm_read_entry" - | "mach_timebase_info" => format!("struct {}", t...
4
132
1
8ea15bf9bf3cf2370b10fd9b2b06024d0db14523
S.J.R. van Schaik
2022-03-01T20:08:52
MacOS on Arm uses 16K pages instead of 4K pages
diff --git a/src/vm_page_size.rs b/src/vm_page_size.rs index 62aec5c..f1ab37f 100644 --- a/src/vm_page_size.rs +++ b/src/vm_page_size.rs @@ -29,6 +29,11 @@ mod tests { assert!(vm_page_size > 0); assert!(vm_page_size % 2 == 0); assert_eq!(mach_vm_round_page(1), vm_page_size as mach...
1
5
0
1a6c60fa4ba682e3b9a1bfd5ae9c6486079255ec
Yuki Okushi
2021-11-10T22:54:14
Remove workarounds for older XCode
diff --git a/mach-test/build.rs b/mach-test/build.rs index 88f6277..aaba413 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -44,11 +44,7 @@ fn main() { let mut cfg = ctest::TestGenerator::new(); - // Older Xcode versions fail with: - // error: unknown warning option '-Wno-address-of-packed-me...
1
5
13
cbc393d310005deb3e77bc1188b151810be8277a
Yuki Okushi
2021-11-09T02:48:24
Update declarations
diff --git a/mach-test/build.rs b/mach-test/build.rs index d77f334..88f6277 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -154,8 +154,8 @@ fn main() { // SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/mach "ipc_port" => true, - // FIXME...
2
12
7
ebd61150316f9c02d235c9b50444f81b57357a3e
Yuki Okushi
2021-11-09T02:08:38
Run `cargo-diet`
diff --git a/Cargo.toml b/Cargo.toml index f3fd6a8..7c7e3d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ readme = "README.md" keywords = ["kernel", "macos", "darwin"] categories = ["api-bindings", "external-ffi-bindings", "no-std", "os"] edition = "2015" +include = ["src/**/*", "LICENSE-*", "README.md"] ...
1
1
0
b118bc67d9b30a67f8867b464c3eaec943c3562c
Yuki Okushi
2021-11-09T01:01:47
Skip ctests for newly changed items
diff --git a/mach-test/build.rs b/mach-test/build.rs index e0cac26..d77f334 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -154,6 +154,9 @@ fn main() { // SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/mach "ipc_port" => true, + // FIXME...
1
9
4
021771c95f7e4182c851488eae3a97fff1699ed7
Yuki Okushi
2021-11-09T00:58:17
Remove unnecessary skips
diff --git a/mach-test/build.rs b/mach-test/build.rs index a0338c2..e0cac26 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -119,9 +119,7 @@ fn main() { .header("mach/thread_policy.h") .header("mach/thread_special_ports.h"); - if xcode >= Xcode(7, 0) { - cfg.header("mach/thread...
1
1
40
3da818a0757bc886e08f1e0b3a2ea9bf03ddc061
Yuki Okushi
2021-11-09T00:53:01
Remove deprecated APIs
diff --git a/src/vm_prot.rs b/src/vm_prot.rs index e36c768..0397d25 100644 --- a/src/vm_prot.rs +++ b/src/vm_prot.rs @@ -9,6 +9,5 @@ pub const VM_PROT_EXECUTE: vm_prot_t = 1 << 2; pub const VM_PROT_NO_CHANGE: vm_prot_t = 1 << 3; pub const VM_PROT_COPY: vm_prot_t = 1 << 4; pub const VM_PROT_WANTS_COPY: vm_prot_t = 1 ...
2
0
21
48f3750831fa13dc1882fd947a0a64b5a1988a3b
Yuki Okushi
2021-11-09T00:51:13
Allow some lints for now
diff --git a/src/traps.rs b/src/traps.rs index bc8694f..1d3bb93 100644 --- a/src/traps.rs +++ b/src/traps.rs @@ -11,10 +11,12 @@ extern "C" { ) -> kern_return_t; } +#[allow(clippy::missing_safety_doc)] // FIXME pub unsafe fn mach_task_self() -> mach_port_t { mach_task_self_ } +#[allow(clippy::missing_s...
3
5
0
c9371d88f1452650c581af8e8c1cf1ab619dff32
Yuki Okushi
2021-11-09T00:41:43
Fix clippy warnings
diff --git a/src/vm_attributes.rs b/src/vm_attributes.rs index 9c484b1..ba3b0d3 100644 --- a/src/vm_attributes.rs +++ b/src/vm_attributes.rs @@ -3,8 +3,8 @@ pub type vm_machine_attribute_t = ::libc::c_uint; pub const MATTR_CACHE: vm_machine_attribute_t = 1; -pub const MATTR_MIGRATE: vm_machine_attribute_t = (1 << 1...
7
39
39
d5756520e1ef9e0b58216b1302ac4eff30bae825
Robert Masen
2019-12-12T17:08:20
Add docs.rs metadata
diff --git a/Cargo.toml b/Cargo.toml index 62d2c5c..04d2dbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,3 +32,6 @@ rustc-dep-of-std = ['rustc-std-workspace-core', 'libc/rustc-dep-of-std'] [workspace] members = ["mach-test"] + +[package.metadata.docs.rs] +default-target = "x86_64-apple-darwin"
1
3
0
2b8b768cb64d77b13c3d34d4877427f65a9a57e7
gnzlbg
2019-08-12T09:16:21
Skip roundtrip tests on arrays
diff --git a/mach-test/build.rs b/mach-test/build.rs index 3a8eb4c..a0338c2 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -329,6 +329,12 @@ fn main() { _ => ty.to_string(), }); + cfg.skip_roundtrip(move |s| match s { + // FIXME: TODO + "name_t" | "uuid_t" | "vm_region_info...
1
6
0
f0986c9dbc9b50ff2ceb15267ed4de398d4241db
gnzlbg
2019-08-12T08:47:14
Bump patch version to 0.3.3
diff --git a/Cargo.toml b/Cargo.toml index 3915278..62d2c5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach" -version = "0.3.2" +version = "0.3.3" authors = [ "Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>",
1
1
1
ed048bdb06d5d6a6ea13c9c274b868ea4c943796
gnzlbg
2019-06-01T11:04:42
Bump patch version to 0.3.2
diff --git a/Cargo.toml b/Cargo.toml index a717125..835f954 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach" -version = "0.3.1" +version = "0.3.2" authors = [ "Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>",
1
1
1
a92d35ff6b49ee3be0e19f79217efd67b555ccb1
gnzlbg
2019-06-01T10:41:12
Update clippy
diff --git a/src/lib.rs b/src/lib.rs index 2db081f..faec2cb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ #![cfg_attr(feature = "rustc-dep-of-std", no_core)] #![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)] #![allow( - clippy::stutter, + clippy::module_name_repetitions, clippy::cast_sign...
1
1
1
bf2d13c353b37041a3f6c8805b57d51385070bab
gnzlbg
2019-05-31T18:09:05
Add support for using mach as a dep of libstd
diff --git a/Cargo.toml b/Cargo.toml index 8699987..31f5858 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach" -version = "0.3.0" +version = "0.3.1" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause" description = ...
2
8
1
0080e61ec30f49b7253c4bc9c98e8dab72dae5aa
gnzlbg
2019-05-31T18:00:31
formatting
diff --git a/mach-test/build.rs b/mach-test/build.rs index 2e47355..3a8eb4c 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -196,8 +196,9 @@ fn main() { "mach_task_self" | "current_task" => true, // These are not available in previous MacOSX versions: - "mach_continuou...
1
3
2
d1931be48f9e29633aae52534718306aae0e167d
gnzlbg
2019-05-31T14:42:16
mach_continuous_approximate_time is not available in older OSX versions
diff --git a/mach-test/build.rs b/mach-test/build.rs index 65cce3f..2e47355 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -196,7 +196,8 @@ fn main() { "mach_task_self" | "current_task" => true, // These are not available in previous MacOSX versions: - "mach_continuou...
1
2
1
8954b973457b3b4162bfd286375e9f60b234d339
gnzlbg
2019-05-31T14:01:02
mach_continuous_time is not available on older versions
diff --git a/mach-test/build.rs b/mach-test/build.rs index 6e0cdca..65cce3f 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -189,11 +189,14 @@ fn main() { } }); - cfg.skip_fn(|s| { + cfg.skip_fn(move |s| { match s { // mac_task_self and current_tasl are not functi...
1
4
1
19ac0e5700f6a83f346a1ead5b09e3284abfabb9
gnzlbg
2019-05-31T13:29:54
Disable unknown warnings on old Xcode versions
diff --git a/mach-test/build.rs b/mach-test/build.rs index d881107..6e0cdca 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -44,6 +44,12 @@ fn main() { let mut cfg = ctest::TestGenerator::new(); + // Older Xcode versions fail with: + // error: unknown warning option '-Wno-address-of-packed-me...
1
6
0
bc30359e394162201f7806e8600606ed6e4a99de
gnzlbg
2018-10-29T11:58:50
fix xcode64 builds
diff --git a/mach-test/build.rs b/mach-test/build.rs index b6592b8..f29dfd5 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -86,8 +86,9 @@ fn main() { .header("mach/mach_voucher_types.h") .header("mach/machine.h") .header("mach/memory_object_types.h") - .header("mach/messag...
1
3
2
d31c809c22724c5dad198037ad03bfec7906e016
gnzlbg
2018-10-27T16:00:31
fix deprecated warnings
diff --git a/src/task_info.rs b/src/task_info.rs index 1f12202..082977b 100644 --- a/src/task_info.rs +++ b/src/task_info.rs @@ -43,6 +43,7 @@ pub type task_info_t = *mut integer_t; note = "requires the unstable feature to avoid undefined behavior" ) )] +#[cfg_attr(not(feature = "unstable"), allow(deprec...
4
98
1
59a0a94b6a31861b27636d91bbfe70c337ddff38
gnzlbg
2018-10-27T15:09:21
derive missing common traits
diff --git a/src/clock_types.rs b/src/clock_types.rs index 92b8c0d..c0949c8 100644 --- a/src/clock_types.rs +++ b/src/clock_types.rs @@ -7,8 +7,8 @@ pub type clock_flavor_t = ::libc::c_int; pub type clock_attr_t = *mut ::libc::c_int; pub type clock_res_t = ::libc::c_int; -#[derive(Copy, Clone, PartialEq, PartialOrd...
9
26
22
2716d61cb8c903fbe4723e2b77350502c8fcf6af
gnzlbg
2018-10-27T15:01:05
deprecate unsound types
diff --git a/src/task_info.rs b/src/task_info.rs index 1d999e7..939aa0c 100644 --- a/src/task_info.rs +++ b/src/task_info.rs @@ -36,6 +36,13 @@ pub type task_info_t = *mut integer_t; #[repr(C)] #[cfg_attr(feature = "unstable", repr(packed(4)))] +#[cfg_attr( + not(feature = "unstable"), + deprecated( + ...
2
35
0
66ee800ab949ae13a44edd886b3ad852c20b918f
gnzlbg
2018-10-27T14:48:25
bump ctest version
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 21e3cad..b020768 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,7 +9,7 @@ mach = { path = "..", features = ["unstable"] } libc = "0.2" [build-dependencies] -ctest = "= 0.2.0" +ctest = "0.2" [[test]] name = "main" diff --git a/mac...
2
6
1
9709837433fe8e0f1442617812eef7ae2cbf0fa8
gnzlbg
2018-10-27T11:06:49
deprecate deprecated items
diff --git a/src/vm_statistics.rs b/src/vm_statistics.rs index 4e53c01..5e73c39 100644 --- a/src/vm_statistics.rs +++ b/src/vm_statistics.rs @@ -4,8 +4,12 @@ use vm_types::{integer_t, natural_t}; pub type vm_statistics_t = *mut vm_statistics; pub type vm_statistics_data_t = vm_statistics; -// `pmap_statistics_t` wa...
1
9
2
beb6cac62c06e409684a7cb0c3024aa393b2305e
gnzlbg
2018-10-27T11:04:56
bump minor version
diff --git a/Cargo.toml b/Cargo.toml index 101ef16..e2e70c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach" -version = "0.2.2" +version = "0.2.3" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause" description = ...
1
1
1
66f7fe4203a40ff98b2f5d04926960ca4ad4a777
gnzlbg
2018-10-27T11:03:47
fix clippy issues
diff --git a/src/clock_types.rs b/src/clock_types.rs index 6f67454..92b8c0d 100644 --- a/src/clock_types.rs +++ b/src/clock_types.rs @@ -25,9 +25,9 @@ pub const CLOCK_ALARM_MINRES: ::libc::c_uint = 4; pub const CLOCK_ALARM_MAXRES: ::libc::c_uint = 5; pub const NSEC_PER_USEC: ::libc::c_ulonglong = 1000; -pub const U...
10
98
90
2ec87b67d034f4ab678243299fd890769feee7d0
Gregory Terzian
2018-10-27T04:58:58
add mach_thread_self, thread_suspend, and thread_resume
diff --git a/mach-test/test/main.rs b/mach-test/test/main.rs index 84eed7a..167e476 100644 --- a/mach-test/test/main.rs +++ b/mach-test/test/main.rs @@ -13,6 +13,7 @@ use mach::dyld_kernel::*; use mach::exc::*; use mach::exception_types::*; use mach::kern_return::*; +use mach::mach_init::*; use mach::mach_port::*; ...
4
35
0
fdda433740200cc1baad11c90c11ffd3088455b9
gnzlbg
2018-10-27T10:25:53
add mach-test to the workspace
diff --git a/Cargo.toml b/Cargo.toml index 2e62344..101ef16 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,3 +26,6 @@ use_std = [ "libc/use_std" ] unstable = [] # Enables deprecated and removed APIs. deprecated = [] + +[workspace] +members = ["mach-test"]
1
3
0
63cd3d65f8aa5df692739442830ea41296a3e284
gnzlbg
2018-10-27T09:47:33
fix ctest version to 0.2.0
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 2834b07..21e3cad 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,7 +9,7 @@ mach = { path = "..", features = ["unstable"] } libc = "0.2" [build-dependencies] -ctest = { git = "https://github.com/alexcrichton/ctest" } +ctest = "= 0.2.0"...
1
1
1
b2a8a62657a8d868092a13455cbe34ced4cff549
gnzlbg
2018-08-13T12:34:21
fix maintenance key
diff --git a/Cargo.toml b/Cargo.toml index 77292fe..2e62344 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mach" -version = "0.2.1" +version = "0.2.2" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause" description = ...
1
2
2
dc8e593bd3fd7dd398ee82818e26d92b72eab08f
gnzlbg
2018-08-12T15:57:33
bump minor version
diff --git a/Cargo.toml b/Cargo.toml index 475d01f..ea3ab75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.2.0" +version = "0.2.1" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
69b226abd93d43575147b742fa5418f0962427f5
Conor Manning
2018-08-12T13:15:30
Make fields of thread status public.
diff --git a/src/structs.rs b/src/structs.rs index bff84c4..4d1e97c 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -8,27 +8,27 @@ use message::{mach_msg_type_number_t}; #[derive(Clone)] #[derive(Debug)] pub struct x86_thread_state64_t { - __rax: u64, - __rbx: u64, - __rcx: u64, - __rdx: u64, - __rdi: u64, - __r...
1
21
21
185c2b26d11a33cbd4d13ea80f2a756d20cd68f1
gnzlbg
2018-08-12T15:55:06
updates to ctest 0.2 API
diff --git a/mach-test/build.rs b/mach-test/build.rs index 6031898..36e410a 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -287,7 +287,7 @@ fn main() { } }); - cfg.type_name(|ty, is_struct| match ty { + cfg.type_name(|ty, is_struct, _is_union| match ty { // struct foo in Rust...
1
1
1
ea395e0632ba6ed446ffa4bc21963863c4528789
gnzlbg
2018-04-20T09:24:04
bump mach version to 0.2
diff --git a/Cargo.toml b/Cargo.toml index cf4eec3..475d01f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mach" -version = "0.1.2" +version = "0.2.0" authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "David Cuddeback <david.cuddeback@gmail.com>"] license = "BSD-2-Clause"
1
1
1
16f3044f9a51cde623c403db422d71f0bc7eeea7
gnzlbg
2018-04-15T12:37:48
fix undefined behavior in packed structs
diff --git a/mach-test/build.rs b/mach-test/build.rs index 702f2c9..6031898 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -141,15 +141,7 @@ fn main() { // FIXME: this type is not exposed in /usr/include/mach // but seems to be exposed in // SDKs/MacOSX.sdk/System/Lib...
4
8
32
c5316d4acf863961c728bf1528ee7ebf92ce42ab
gnzlbg
2018-02-27T18:36:02
whitelist two more constants
diff --git a/mach-test/build.rs b/mach-test/build.rs index 546bce4..702f2c9 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -212,6 +212,10 @@ fn main() { if xcode < Xcode(7, 3) => true, // Removed after MacOSX 10.6 (does not appear in MacOSX 10.7) "VM_PROT_TRUSTED"...
1
4
0
16b5cc9219a6a0eea8f75298f8dbc0124ca18c75
gnzlbg
2018-02-27T17:57:48
fix missing ;
diff --git a/mach-test/build.rs b/mach-test/build.rs index f56a235..546bce4 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -107,7 +107,7 @@ fn main() { .header("mach/thread_special_ports.h"); if xcode >= Xcode(7, 0) { - cfg.header("mach/thread_state.h") + cfg.header("mach/thre...
1
1
1
80b4f0a8212c670e0a11caad765f5aec803b93ee
gnzlbg
2018-02-27T17:12:58
whitelist mach/thread_state for older MacOSX versions
diff --git a/mach-test/build.rs b/mach-test/build.rs index e9b5dd0..f56a235 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -47,7 +47,7 @@ fn main() { .header("mach/clock_reply.h") .header("mach/clock_types.h"); - if xcode > Xcode(8, 0) { + if xcode >= Xcode(8, 0) { cfg.he...
1
8
4
bc6068be18189c10c08c68d57adc7d747e10a54f
gnzlbg
2018-02-27T16:10:19
fix build.rs
diff --git a/mach-test/build.rs b/mach-test/build.rs index 0c5ae53..e9b5dd0 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -123,7 +123,7 @@ fn main() { .header("mach/vm_task.h") .header("mach/vm_types.h"); - cfg.skip_struct(|s| { + cfg.skip_struct(move |s| { match s { ...
1
2
2
6f53142c891e180720442da529b101161d9e9bb1
gnzlbg
2018-02-27T14:54:08
whitelist dyld_kernel.h types in older MacOSX versions
diff --git a/mach-test/build.rs b/mach-test/build.rs index 3f08318..0c5ae53 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -145,7 +145,14 @@ fn main() { "vm_region_submap_info_64" | "vm_region_submap_short_info_64" | "mach_vm_read_entry" - => true, + ...
1
19
2
a05380e1348df1652855371d1c43c8d167d6ef6c
gnzlbg
2018-02-27T13:43:23
do not include mach/dyld_kernel.h on old OSX versions
diff --git a/mach-test/build.rs b/mach-test/build.rs index 2211fba..3f08318 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -45,9 +45,13 @@ fn main() { .header("mach/clock.h") .header("mach/clock_priv.h") .header("mach/clock_reply.h") - .header("mach/clock_types.h") - ...
1
7
3
c1bbb2c1cc445b2788089018c8709cd456f7ede8
gnzlbg
2018-02-27T12:04:21
re-enable EXC_CORPSE_VARIANT_BIT, disable it in ctest-only
diff --git a/mach-test/build.rs b/mach-test/build.rs index 9708779..2211fba 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -176,6 +176,8 @@ fn main() { cfg.skip_const(move |s| { match s { + // Available only in MacOSX >= 10.13 + "EXC_CORPSE_VARIANT_BIT" => true, ...
2
3
1
a491df0e64b15f0fffd6cfaac3783b0af6525bf8
gnzlbg
2018-02-27T11:40:17
remove mach/task_inspect header
diff --git a/mach-test/build.rs b/mach-test/build.rs index 1d63959..9708779 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -93,13 +93,9 @@ fn main() { .header("mach/sync.h") .header("mach/sync_policy.h") .header("mach/task.h") - .header("mach/task_info.h"); - - if xcode...
1
3
7
c02f2171349488f5cc05681be3c29f9346dd2dfd
gnzlbg
2018-02-27T11:05:16
mach/task_inspect.h is available on Xcode 9 and upwards only
diff --git a/mach-test/build.rs b/mach-test/build.rs index 080afc2..1d63959 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -93,9 +93,13 @@ fn main() { .header("mach/sync.h") .header("mach/sync_policy.h") .header("mach/task.h") - .header("mach/task_info.h") - .header...
1
7
3
b1250330adedd8c4f6f926ecfffd7375754d0619
gnzlbg
2018-02-27T10:09:13
fix examples
diff --git a/examples/dump_process_registers.rs b/examples/dump_process_registers.rs index bddc037..d00a867 100644 --- a/examples/dump_process_registers.rs +++ b/examples/dump_process_registers.rs @@ -16,7 +16,7 @@ use mach::task::{task_resume, task_suspend, task_threads}; use mach::thread_act::{thread_get_state}; us...
1
1
1
366bb0ebf39f1e528f759c142fcb671e2de22b0b
gnzlbg
2018-02-27T08:49:44
use ctest again
diff --git a/mach-test/Cargo.toml b/mach-test/Cargo.toml index 6deeda4..15957ad 100644 --- a/mach-test/Cargo.toml +++ b/mach-test/Cargo.toml @@ -9,8 +9,7 @@ mach = { path = ".." } libc = "0.2" [build-dependencies] -#ctest = { git = "https://github.com/alexcrichton/ctest" } -ctest = { path = "../../ctest" } +ctest =...
1
1
2
9a87920fec2642ccc883b9eecffef409ef7184e1
gnzlbg
2018-02-26T16:16:51
add exception types
diff --git a/mach-test/build.rs b/mach-test/build.rs index 34f8193..080afc2 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -220,6 +220,9 @@ fn main() { "clock_attr_t" | "dyld_kernel_image_info_array_t" | "memory_object_fault_info_t" | + "exception_data_t" |...
7
124
13
3af78907b7ac55529b675d24e9819ebdd0145928
gnzlbg
2018-02-26T16:01:46
add dyld_kernel.h
diff --git a/mach-test/build.rs b/mach-test/build.rs index b9d5f14..34f8193 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -200,6 +200,10 @@ fn main() { "mach_timespec_t" | "ipc_port_t" | "vm_statistics_data_t" | + "fsid_t" | + "fsobj_id_t" | + ...
5
64
1
2235372bd45e9b3947661ae5ea3f1300a7e48eb2
gnzlbg
2018-02-26T15:31:54
add clock_reply.h
diff --git a/mach-test/build.rs b/mach-test/build.rs index 94ab105..b9d5f14 100644 --- a/mach-test/build.rs +++ b/mach-test/build.rs @@ -39,40 +39,85 @@ fn main() { let mut cfg = ctest::TestGenerator::new(); // Include the header files where the C APIs are defined - cfg.header("mach/mach.h") + cfg.hea...
4
75
13