Front page | perl.perl5.porters |
Postings from May 2001
RE: Relocatable perl
Thread Previous
|
Thread Next
From:
Horsley Tom
Date:
May 3, 2001 11:36
Subject:
RE: Relocatable perl
Message ID:
707033366258D411BC9C00805F0D91071B1C8E@exchange.ccur.com
> *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
/proc/a.out
file.
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