Re: Getting path of a shared object from inside it

From: sug (zamu23_at_yahoo.com)
Date: 06/21/05


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



Relevant Pages

  • Re: Getting path of a shared object from inside it
    ... I want to do this on various unix flavours but I am happy if I can ... to catopenand set the path with NLSPATH. ... But if I specify absolute path starting with / of my ... catalog file to catopenthen it works fine. ...
    (comp.unix.aix)
  • Re: Getting path of a shared object from inside it
    ... > to catopenand set the path with NLSPATH. ... But if I specify absolute path starting with / of my ... > catalog file to catopenthen it works fine. ... Vocatus atque non vocatus deus aderit ...
    (comp.unix.misc)
  • Re: Getting path of a shared object from inside it
    ... > to catopenand set the path with NLSPATH. ... But if I specify absolute path starting with / of my ... > catalog file to catopenthen it works fine. ... Vocatus atque non vocatus deus aderit ...
    (comp.unix.aix)