From owner-freebsd-hackers Mon Jun 28 21:35:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from m-net.arbornet.org (m-net.arbornet.org [209.142.209.161]) by hub.freebsd.org (Postfix) with ESMTP id D3E1F14D5B for ; Mon, 28 Jun 1999 21:34:58 -0700 (PDT) (envelope-from amol2@m-net.arbornet.org) Received: from localhost (amol2@localhost) by m-net.arbornet.org (8.8.5/8.8.6) with SMTP id XAA25539; Mon, 28 Jun 1999 23:32:59 -0400 (EDT) Date: Mon, 28 Jun 1999 23:32:59 -0400 (EDT) From: Amol Mohite To: Greg Lehey Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: environment strings In-Reply-To: <19990629095659.B86806@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I know about envp. What I want to know is the exact position of these variables on the stack. and if anywhere I can find some data, on the exact compisoition of the stcak, then it will be very helpful. references of books and websites wil be most helpful. amol > On Monday, 28 June 1999 at 5:54:29 -0400, Amol Mohite wrote: > > > > Hi! > > > > i hope this is the right list for this qs. > > > > I wanted t know where the environment strings i bsd were stored after a > > program execs another one. > > At the top of memory. You can access them by the standard (but > undocumented) method: > > int main (int argc, char *argv [], char *envp []) > > envp is a pointer to the environment strings. This is true for every > version of UNIX I know. > > > Is there any place I ca get hold of the ABIs for freebsd ? > > Can you be more specific? > > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message