DLL Programmer's Guide for TNS/R Systems

DLLs on a TNS/R System
DLL Programmer’s Guide for TNS/R Systems522203-002
1-13
User Library
In OSS, the shell command run has a -lib option that accepts a fully qualified
Guardian file name in OSS notation:
-lib /G/vol/subvol/name
Alternatively, use -lib=unset to disregard any libname attribute in the program file.
For PIC programs (unlike TNS and non-PIC native programs), a /lib .../ or -lib=...
specification at run time does not change the libname attribute of the program file.
Ordinary DLLs are generally more convenient, and there can be more than one, so the
use of a UL with PIC programs is not encouraged. The feature is provided primarily for
compatibility with legacy practice on NonStop systems. A UL can also provide an
"intercept" facility: because it is loaded first after the program, a UL could export
symbol definitions that take precedence over those in DLLs on the linker-provided
libList.