Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 14:28:24 +0100 (MET)
From:      Andy Sporner <sporner@nentec.de>
To:        Sansonetti Laurent <pinux@arrakis.atlantys.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   RE: Reading userland environnement from the kernel
Message-ID:  <XFMail.020215142824.sporner@nentec.de>
In-Reply-To: <1013782534.2860.5.camel@freebsd.datatest.test.datarescue.be>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
> 
> Is there a way to read user-land environ(7) table from the kernel for a
> given process ?

You have to look at the "proc" structure for a process and there you will
find a buffer for the 'ps_strings' and a few offset variables to show where
the environment variables are.


Andy

> 
> Cheers,
> 
> --
> Laurent
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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