LD_PRELOAD LD_LIBRARY_PATH |
These system-wide variables are used to set up the interception module. Depending on the path to the installation directory, kwinject sets either LD_PRELOAD, or both LD_PRELOAD and LD_LIBRARY_PATH. If the installation path does not contain whitespace characters, kwinject defines LD_PRELOAD as the full path to the interception library (libkwinject.so). If the installation path contains whitespace characters, LD_PRELOAD cannot be defined in the same way, because it is a space-separated list of libraries. In this case, kwinject defines LD_PRELOAD to a short name of the library, and adds the library path to LD_LIBRARY_PATH. |
KW_LD_PRELOAD KW_LD_LIBRARY_ PATH |
These variables have the same value as LD_PRELOAD and LD_LIBRARY_PATH, respectively. The sole purpose of defining these variables is to ease build integration. If your build uses LD_PRELOAD for its own needs, the value of KW_LD_PRELOAD can be checked to reset the value of LD_PRELOAD during the Klocwork-enabled build. These variables do not have any direct impact on kwinject. |
KW_INJECT_SOCK |
name of the local socket file, used to send/receive intercepted commands. |