Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Environment variables used by kwinject

kwinject uses a number of environment variables. Some are required to communicate between the interception module and the filter program; others are optional and are provided to ease the integration of Klocwork into your build.

UNIX environment variables

Variable Description
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.