docs/51322: Man page for kvm_getprocs(3) omits #include <sys/user.h>

Ted Nolan ted at erg.sri.com
Wed Apr 23 17:40:11 UTC 2003


>Number:         51322
>Category:       docs
>Synopsis:       Man page for kvm_getprocs(3) omits #include <sys/user.h>
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 23 10:40:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ted Nolan
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
SRI
>Environment:
any
System: FreeBSD colanix0 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 murray at builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386


	
>Description:
The man page for kvm_getenvv() (which falls under kvm_getprocs(3), says
you need to
	#include <kvm.h>
	#include <sys/param.h>
	#include <sys/sysctl.h>

before calling the functions listed.  I find you must also
	#include <sys/user.h>

of you will not have a definition of 'struct kinfo_proc' for calls to
kvm_getargv() & kvm_getenvv()

	
>How-To-Repeat:
	Write a program which calls kvm_getenvv() with only the include
files listed on the man page.
>Fix:
Add
	#include <sys/user.h>
to the man page.

	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list