Reading userland environnement from the kernel

2002-02-15 Thread Sansonetti Laurent
Hi hackers, Is there a way to read user-land environ(7) table from the kernel for a given process ? Cheers, -- Laurent To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

Re: Reading userland environnement from the kernel

2002-02-15 Thread David Malone
On Fri, Feb 15, 2002 at 02:15:34PM +, Sansonetti Laurent wrote: Is there a way to read user-land environ(7) table from the kernel for a given process ? Does 'ps -auxwwwe' do what you want? David. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in

RE: Reading userland environnement from the kernel

2002-02-15 Thread Andy Sporner
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,

Re: Reading userland environnement from the kernel

2002-02-15 Thread Andy Sporner
Hi Terry (and others!) You seem to know a lot about the kernel (as you always expand on my Cliff Notes versions of my answers). Can you give me any hints on the device driver question I posted a few days ago. There was a response, however I don't see how it applies for these reasons. 1.