Skip to content

Commit

Permalink
freebsd kinfo_kstat/sigtramp additions
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Apr 28, 2022
1 parent 40d529f commit 7050eae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,9 @@ kevent
key_t
killpg
kinfo_getvmmap
kinfo_kstack
kinfo_proc
kinfo_sigtramp
kinfo_vmentry
kqueue
kld_isloaded
Expand Down
13 changes: 13 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,19 @@ s! {
pub kve_path: [[::c_char; 32]; 32],
}

pub struct kinfo_kstack {
pub kkst_tid: ::lwpid_t,
pub kkst_state: ::c_int,
pub kkst_trace: [[::c_char; 32]; 32],
pub _kkst_ispare: [::c_int; 16],
}

pub struct kinfo_sigtramp {
pub ksigtramp_start: *mut ::c_void,
pub ksigtramp_end: *mut ::c_void,
pub ksigtramp_spare: [*mut ::c_void; 4],
}

pub struct __c_anonymous_filestat {
pub stqe_next: *mut filestat,
}
Expand Down

0 comments on commit 7050eae

Please sign in to comment.