re: possible bug in /usr/include/sys/proc.h

From: Vladimir Ermakov <samflanker_at_gmail.com>
Date: Tue, 20 May 2008 21:00:23 +0400
> td_lprof's type is going to be #ifdef _KERNEL. Why does this app need
> to know about struct proc?
>
>  -Kip

Application in question is a monitoring system's agent, and it uses
kvm_getprocs to obtain list of running processes. It is supposed to
compile on many different FreeBSD versions.

kvm_getprocs returns information in kinfo_proc structures, and
kinfo_proc at least on old FreeBSD versions has member kp_proc of type
struct proc. If inclusion of sys/proc.h is now prohibited, we can add
additional checks to configure and add appropriate ifdefs to our code.

/Vladimir Ermakov
Received on Tue May 20 2008 - 15:00:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:31 UTC