develooper Front page | perl.perl5.porters | Postings from May 2001

RE: Relocatable perl

Thread Previous | Thread Next
Horsley Tom
May 3, 2001 11:36
RE: Relocatable perl
Message ID:
> *If* there were such an API I could see some value in providing the
> whole path of exec()ed executables (and their argvs) backwards in time
> starting from the init process (or its moral equivalent).  But enough
> pipe dreaming...

If anyone plans to start on this library, I can contribute yet another
OS's way of doing things :-). In PowerMax we don't have a /proc/pid/self
file, but we do have a /proc/pid/a.out. Unfortunately this isn't a symlink,
instead it looks more like a hardlink. If you think you've guessed the
name by searching PATH etc, you can check and see if your guess is correct
by comparing st_dev and st_ino from a stat() of your guess and the

However, the dynamic loader on PowerMax does keep the absolute path names
of the shared libs it loads, so even though you can't find the name
of your own program, you can at least find the name of any shared libs
you have loaded.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About