Shared Code under UNIX System V

PAD Powell padpowell at wateng.UUCP
Sun Dec 16 00:50:20 AEST 1984


There is a very easy way to do dynamic loading under UNIX, using
documented features of LD, a.out, etc.  However, it depends on knowing
the full pathname of the executing program, or being able to guess it
in a fairly reliable manner.  I have posted code to do this to the net.sources
several times.

I sure wish that there was a system call that would return the full path name of
the text file of a process.  Perhaps there is?  Any kobolds know of any?

Patrick Powell



More information about the Comp.unix.wizards mailing list