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

Ted Nolan ted at
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
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 23 10:40:09 PDT 2003
>Originator:     Ted Nolan
>Release:        FreeBSD 4.6.2-RELEASE i386
System: FreeBSD colanix0 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed Aug 14 21:23:26 GMT 2002 murray at i386

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()

	Write a program which calls kvm_getenvv() with only the include
files listed on the man page.
	#include <sys/user.h>
to the man page.



More information about the freebsd-doc mailing list