*BSD News Article 45111


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!news.kei.com!nntp.et.byu.edu!netline-fddi.jpl.nasa.gov!elroy.jpl.nasa.gov!news.msfc.nasa.gov!news.larc.nasa.gov!lerc.nasa.gov!purdue!mozo.cc.purdue.edu!vic.cc.purdue.edu!abe
From: abe@vic.cc.purdue.edu (Vic Abell)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: kinfo_proc.hr and sysctl.h in FreeBSD 2.0
Date: 7 Jun 1995 12:59:35 GMT
Organization: Purdue University
Lines: 15
Message-ID: <3r47rn$5oe@mozo.cc.purdue.edu>
NNTP-Posting-Host: vic.cc.purdue.edu

I'm a quondam user of FreeBSD who accesses it to do development
and testing of a multi-dialect Unix application, lsof.  My FreeBSD
2.0 guest system (uname says 2.0-Release #5) has a confusing header
file conflict between <sys/kinfo_proc.h> and <sys/sysctl.h>.

The application uses the kvm_getprocs(3) and sysctl(3) functions.
The man page for kvm_getprocs() calls for inclusion of <sys/kinfo_procs.h>,
among others; the sysctl() man page calls for <sys/sysctl.h>.

Both header files define the kinfo_proc and eproc structures; cc
objects to the duplication.

Can anyone clear up this confusion for me?

Vic Abell <abe@cc.purdue.edu>