Tobias Nygren <t...@netbsd.org> wrote: > > Log Message: > > Restore exporting of lwp_getpcb() to userland and fix DDB properly. > > While the header might be abstracted better, it is a separate issue. > > This causes breakage for programs that compile with -ansi or -std=c89: > > ... > > In file included from /usr/include/sys/proc.h:83, > from /usr/include/sys/sysctl.h:46, > from test.c:2: > /usr/include/sys/lwp.h:200: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'void' I've committed a quick fix. However, the problem here is that sys/sysctl.h, sys/proc.h and sys/lwp.h are exposing structures for KVM grovellers to all userspace. Therefore struct kinfo_proc2, sys/proc.h and friends should not even be seen. We will revisit this, hopefully..
struct kinfo_proc2 is _100%_ for exporting to userland. that's the sole purpose it exists... .mrg.