Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 13:33:09 -0400 (EDT)
From:      Ted Nolan <ted@erg.sri.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ted@erg.sri.com
Subject:    docs/51322: Man page for kvm_getprocs(3) omits #include <sys/user.h>
Message-ID:  <200304231733.h3NHX966075698@colanix0.ga.erg.sri.com>
Resent-Message-ID: <200304231740.h3NHeAgD054785@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304231733.h3NHX966075698>