dnsjit.core.loader3
Dynamic library loader
Usage
local loader = require("dnsjit.core.loader")
loader.load("example-input-zero/zero")
Overview
Module for loading dynamic libraries (.so) in more ways then LuaJIT can. This is mainly used in external modules.
Functions
Loader.load(name, global)-
Search
package.cpathfor the given name and load the first found. Ifglobalis true (default true if not given) then the loaded symbols will also be available globally. Returns the loaded C library as perffi.load().
The ? in each path ofpackage.cpathwill be replace by the given name, so usually the ".so" part of the library does not need to be given. See package.cpath and package.loaders in Lua 5.1 for more information.
AUTHORS and CONTRIBUTORS
Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)
Maintained by DNS-OARC
https://www.dns-oarc.net/
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.