From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 31 18:55:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E90C816A4CE for ; Wed, 31 Mar 2004 18:55:47 -0800 (PST) Received: from doom.homeunix.org (9-090.dialup.comset.net [213.172.9.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id B211C43D45 for ; Wed, 31 Mar 2004 18:55:11 -0800 (PST) (envelope-from igor@doom.homeunix.org) Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.12.11/8.12.11) with ESMTP id i312s8KQ000989; Thu, 1 Apr 2004 06:54:25 +0400 (MSD) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.12.11/8.12.11/Submit) id i312rjcI000988; Thu, 1 Apr 2004 06:53:45 +0400 (MSD) (envelope-from igor) Date: Thu, 1 Apr 2004 06:53:45 +0400 From: Igor Pokrovsky To: Mike Heffner Message-ID: <20040401025345.GA542@doom.homeunix.org> Mail-Followup-To: Mike Heffner , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: Determining a program's shared libraries at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2004 02:55:48 -0000 On Wed, Mar 31, 2004 at 02:55:47PM -0500, Mike Heffner wrote: > > Is there a method in FreeBSD for a program to retrieve the current list of > dynamic shared libraries it is linked against or has dlopen()'d? Looks like ldd is doing exactly what you want, take a look at it's sources. -ip -- It's always darkest just before the lights go out.