SkillAgentSearch skills...

Dlffi

libdl and libffi LUA wrapper for direct linking C libraries

Install / Use

/learn @Ygrex/Dlffi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

dlffi is a LUA wrapper for both libdl.so and libffi.so

dlffi allows to use native C functions from dynamically linked libraries in LUA without need to (re)compile specific wrappers and writting any C code

the library has been tested on x86 and x86_64 in Debian only, with help of valgrind

files provided:

  • liblua_dlffi.c - the library source
  • dlffi.lua - the LUA module; use this module instead of direct liblua_dlffi.so linking
  • dlfcn.supp - suppressions file for valgrind: suppresses false positives due to libdl usage
  • mysql.lua - wrapper for libmysqlclient.so without C code
  • test.lua - example for mysql.lua
  • COPYLEFT - license
  • README - this readme
  • Makefile - makefile

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated8mo ago
Forks2

Languages

Lua

Security Score

67/100

Audited on Jul 11, 2025

No findings