1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! `OpenBSDProcessTable.c` — NOT yet ported (blocked on substrate).
//!
//! Every `pub fn` below is an honest `todo!()` placeholder named after its
//! C counterpart. The file is blocked on `libkvm` (`kvm_getprocs`) plus the `kinfo_proc`
//! struct, the stubbed `ProcessTable_getProcess` (`processtable.rs`), and the
//! `OpenBSDProcess` / `OpenBSDProcessTable` object structs.
//!
//! `gen_port_report.py` counts these `todo!()` bodies as *stubbed*, not
//! *ported*, so the scaffold does not inflate coverage.
/// TODO: port of `ProcessTable* ProcessTable_new(Machine* host, Hashtable* pidMatchList` from `OpenBSDProcessTable.c:38`.
/// TODO: port of `void ProcessTable_delete(Object* cast` from `OpenBSDProcessTable.c:48`.
/// TODO: port of `static void OpenBSDProcessTable_updateCwd(const struct kinfo_proc* kproc, Process* proc` from `OpenBSDProcessTable.c:54`.
/// TODO: port of `static void OpenBSDProcessTable_updateProcessName(kvm_t* kd, const struct kinfo_proc* kproc, Process* proc` from `OpenBSDProcessTable.c:74`.
/// TODO: port of `static double getpcpu(const OpenBSDMachine* ohost, const struct kinfo_proc* kp` from `OpenBSDProcessTable.c:126`.
/// TODO: port of `static void OpenBSDProcessTable_scanProcs(OpenBSDProcessTable* this` from `OpenBSDProcessTable.c:133`.
/// TODO: port of `void ProcessTable_goThroughEntries(ProcessTable* super` from `OpenBSDProcessTable.c:242`.