Fully separate the kcore initialisation and the kinfo wrapper.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 3 Feb 2005 17:28:40 +0000 (17:28 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 3 Feb 2005 17:28:40 +0000 (17:28 +0000)
commit71ce0af9df604b6b652017936429a5b16d718fa8
treece74e13cc80152fc2a3d47fb5290b4bdb17d9276
parentd9abbddace563b1a787dfb06d484da619795d482
Fully separate the kcore initialisation and the kinfo wrapper.
Call kcore_wrapper_open if you want the kinfo wrapper, otherwise
kcore_open. This fixes the segfaults in pstat.

Reported-by: Sven Willenberger <sven@dmv.com>
lib/libkcore/kcore.c
lib/libkcore/kcore.h
usr.sbin/pstat/Makefile
usr.sbin/pstat/pstat.c