| Main index | Section 3 | Options |
#include <sys/errno.h>
#include <link.h>
Since the process environment variables are maintained by higher-level libraries, the run-time linker cannot access them after the image activation. The described functions make it possible to operate on rtld settings.
The rtld_get_var() function returns the current value of the named parameter.
The rtld_set_var() functions changes the value of the parameter to the new value value, if possible. The name argument to both functions is the name of the parameter, which is same as the corresponding environment variable (seertld(1)) but without the LD_ (or LD_32_ or any other ABI-specific) prefix.
The rtld_set_var() returns 0 on success, or an integer indicating the error condition which prevented the operation.
| [EPERM] | |
| The requested change cannot be made at runtime, either because the runtime linker can only take this parameter at initialization time, or because the current process is executing with elevated privileges. | |
| [ENOENT] | |
| The supplied parameter name is unknown. | |
| RTLD_GET_VAR (3) | October 31, 2024 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | The number of UNIX installations has grown to 10, with more expected. | ” |
| — UNIX Programming Manual, 1972 | ||