Skip to content

Commit

Permalink
even more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Nov 1, 2024
1 parent 324b979 commit 133ee38
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/data_collection/processes/macos/sysctl_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ use mach2::vm_types::user_addr_t;

use crate::data_collection::Pid;

#[expect(non_camel_case_types)]
#[repr(C)]
pub(crate) struct kinfo_proc {
pub kp_proc: extern_proc,
pub kp_eproc: eproc,
}

#[expect(non_camel_case_types)]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct p_st1 {
Expand All @@ -28,7 +26,6 @@ pub struct p_st1 {
p_back: user_addr_t,
}

#[expect(non_camel_case_types)]
#[repr(C)]
pub union p_un {
pub p_st1: p_st1,
Expand All @@ -39,7 +36,6 @@ pub union p_un {

/// Exported fields for kern sysctl. See
/// [`proc.h`](https://opensource.apple.com/source/xnu/xnu-201/bsd/sys/proc.h)
#[expect(non_camel_case_types)]
#[repr(C)]
pub(crate) struct extern_proc {
pub p_un: p_un,
Expand Down Expand Up @@ -182,7 +178,6 @@ type segsz_t = i32;
type fixpt_t = u32;

/// See [`proc.h`](https://opensource.apple.com/source/xnu/xnu-201/bsd/sys/proc.h)
#[expect(non_camel_case_types)]
#[repr(C)]
pub(crate) struct pcred {
pub pc_lock: [c_char; 72],
Expand All @@ -195,7 +190,6 @@ pub(crate) struct pcred {
}

/// See `vm.h`.
#[expect(non_camel_case_types)]
#[repr(C)]
pub(crate) struct vmspace {
pub dummy: i32,
Expand All @@ -205,7 +199,6 @@ pub(crate) struct vmspace {
}

/// See [`sysctl.h`](https://opensource.apple.com/source/xnu/xnu-344/bsd/sys/sysctl.h).
#[expect(non_camel_case_types)]
#[repr(C)]
pub(crate) struct eproc {
/// Address of proc. We just cheat and use a c_void pointer since we aren't
Expand Down

0 comments on commit 133ee38

Please sign in to comment.