Skip to content

Commit

Permalink
Auto merge of #2766 - devnexen:kinfo_fbsd_update2, r=Amanieu
Browse files Browse the repository at this point in the history
freebsd kinfo_kstat/sigtramp additions
  • Loading branch information
bors committed Apr 28, 2022
2 parents f6df53f + 6fe5534 commit f0b6039
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; KKST_MAXLEN as usize],
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 f0b6039

Please sign in to comment.