Re: Getting path of a shared object from inside it
From: sug (zamu23_at_yahoo.com)
Date: 06/21/05
- Next message: Gary R. Hook: "Re: Getting path of a shared object from inside it"
- Previous message: Paul Pluzhnikov: "Re: Getting path of a shared object from inside it"
- In reply to: Lew Pitcher: "Re: Getting path of a shared object from inside it"
- Next in thread: Gary R. Hook: "Re: Getting path of a shared object from inside it"
- Reply: Gary R. Hook: "Re: Getting path of a shared object from inside it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jun 2005 07:28:14 -0700
Hi Lew,
Thanks for the info. Here is more information
1) I want to do this on various unix flavours but I am happy if I can
get it to work on AIX to start with.
2) Well I know I shouldn't be doing this as it's not a good idea. But I
said that because I wanted to keep things simple. The file that I want
to load from my .so is a catalog file and catopen() is not working for
me with NLSPATH. catopen returns ENOENT when I pass just name of file
to catopen() and set the path with NLSPATH. Looks like my NLSPATH is
being ignored. But if I specify absolute path starting with / of my
catalog file to catopen() then it works fine. My catalog file resides
in same dir as my .so. That's the (REAL) reason why I want to get
location of my .so. So that I can compile absolute path for my .cat
file and pass it to catopen().
Thanks,
Sug
- Next message: Gary R. Hook: "Re: Getting path of a shared object from inside it"
- Previous message: Paul Pluzhnikov: "Re: Getting path of a shared object from inside it"
- In reply to: Lew Pitcher: "Re: Getting path of a shared object from inside it"
- Next in thread: Gary R. Hook: "Re: Getting path of a shared object from inside it"
- Reply: Gary R. Hook: "Re: Getting path of a shared object from inside it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|