From owner-freebsd-hackers Fri Feb 15 5:28:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.nentec.de (gate2.nentec.de [194.25.215.66]) by hub.freebsd.org (Postfix) with ESMTP id A041F37B402 for ; Fri, 15 Feb 2002 05:28:28 -0800 (PST) Received: from nenny.nentec.de (root@nenny.nentec.de [153.92.64.1]) by gate.nentec.de (8.9.3/8.9.3) with ESMTP id OAA28165; Fri, 15 Feb 2002 14:28:28 +0100 Received: from andromeda (andromeda [153.92.64.34]) by nenny.nentec.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g1FDSOT04287; Fri, 15 Feb 2002 14:28:24 +0100 Message-ID: X-Mailer: XFMail 1.4.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <1013782534.2860.5.camel@freebsd.datatest.test.datarescue.be> Date: Fri, 15 Feb 2002 14:28:24 +0100 (MET) Reply-To: Andy Sporner Organization: NENTEC Netywerktechnologie GmbH From: Andy Sporner To: Sansonetti Laurent Subject: RE: Reading userland environnement from the kernel Cc: freebsd-hackers@FreeBSD.ORG X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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