From owner-freebsd-hackers Mon Jun 28 19: 7:11 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 616D314D86 for ; Mon, 28 Jun 1999 19:06:57 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA21307; Tue, 29 Jun 1999 11:36:54 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA16110; Tue, 29 Jun 1999 09:56:59 +0930 (CST) Date: Tue, 29 Jun 1999 09:56:59 +0930 From: Greg Lehey To: Amol Mohite Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: environment strings Message-ID: <19990629095659.B86806@freebie.lemis.com> References: <19990628084759.937F414F6C@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Amol Mohite on Mon, Jun 28, 1999 at 05:54:29AM -0400 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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