version 1.106, 2020/06/26 20:55:55 |
version 1.107, 2020/07/06 16:27:59 |
|
|
getprocs(int op, int arg, int *cnt) |
getprocs(int op, int arg, int *cnt) |
{ |
{ |
size_t size; |
size_t size; |
int mib[6] = {CTL_KERN, KERN_PROC, 0, 0, sizeof(struct kinfo_proc), 0}; |
int mib[6] = {CTL_KERN, KERN_PROC, KERN_PROC_ALL, 0, |
|
sizeof(struct kinfo_proc), 0}; |
static int maxslp_mib[] = {CTL_VM, VM_MAXSLP}; |
static int maxslp_mib[] = {CTL_VM, VM_MAXSLP}; |
static struct kinfo_proc *procbase; |
static struct kinfo_proc *procbase; |
int st; |
int st; |