Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Mike Heffner
On 01-Apr-2004 Igor Pokrovsky wrote: | 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 yo

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Igor Pokrovsky
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'

Re: Determining a program's shared libraries at runtime

2004-03-31 Thread Bruce M Simpson
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? /proc//map should give you what you need, but it needs to be read atomically, i.e. you can't

Determining a program's shared libraries at runtime

2004-03-31 Thread Mike Heffner
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? Thanks, Mike -- Mike Heffner <[EMAIL PROTECTED]> 2160 Torgersen Hall, Grad. Lab ___ [EMAIL PROTECTED