nix

dlsymdlopen

2.2.1

4 / 700 files match, 2 filtered matches.

src/libexpr/primops.cc



170 | 
171 |     string sym = state.forceStringNoCtx(*args[1], pos);
172 | 
173 |     void *handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL);
174 |     if (!handle)
175 |         throw EvalError(format("could not open '%1%': %2%") % path % dlerror());


src/libstore/globals.cc



171 |             /* handle is purposefully leaked as there may be state in the
172 |                DSO needed by the action of the plugin. */
173 |             void *handle =
174 |                 dlopen(file.c_str(), RTLD_LAZY | RTLD_LOCAL);
175 |             if (!handle)
176 |                 throw Error("could not dynamically open plugin file '%s': %s", file, dlerror());