From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 05:19:54 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 647A616A4CF for ; Fri, 7 Jan 2005 05:19:54 +0000 (GMT) Received: from stf01.seccuris.com (stf01.seccuris.com [204.112.0.40]) by mx1.FreeBSD.org (Postfix) with SMTP id 8417E43D5A for ; Fri, 7 Jan 2005 05:19:53 +0000 (GMT) (envelope-from cperon@stf01.seccuris.com) Received: (qmail 67317 invoked by uid 1006); 7 Jan 2005 05:19:52 -0000 Date: Fri, 7 Jan 2005 05:19:52 +0000 From: "Christian S.J. Peron" To: Pascal Hofstee Message-ID: <20050107051952.A61748@stf01.seccuris.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from caelian@gmail.com on Thu, Jan 06, 2005 at 06:21:54PM -0800 X-Mailman-Approved-At: Fri, 07 Jan 2005 13:21:15 +0000 cc: Dirk Meyer cc: freebsd-hackers@freebsd.org Subject: Re: GNUstep and libkvm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 05:19:54 -0000 On Thu, Jan 06, 2005 at 06:21:54PM -0800, Pascal Hofstee wrote: > > I guess to sum it all up it all boils down to the following question. > > Is it intended that kvm_getargv() apparently has a conditional under > which it depends on the existince of a working /proc .. even though > the manpage states this condition is only present for kvm_getenvv ? > > And if kvm_getargv should not depend on /proc ... how can we go about > to fixing this as this is apprently only the case for "short > commandlines" in our current implementation. iirc, kvm_getargv() can (and does first) use a sysctl to retrieve it's data. kvm_getenvv() requires procfs because /proc//mem is currently the more simpler to read a virtual memory address in the context of the process. We are looking at implementing a similar mechanism to the "argv" ps_strings for process environment to get rid of the procfs requirement. pjd has some work done on this but it has not been committed yet. Hope this answers your question. Regards Christian S.J. Peron