From 0e762f237e7b4b63488f32e8b960da0891b64e29 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 24 Sep 2019 00:54:58 +0300 Subject: [PATCH] add posix library loading functions --- src/lib/posix/module.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/posix/module.c b/src/lib/posix/module.c index 439ddf3..5f110f6 100644 --- a/src/lib/posix/module.c +++ b/src/lib/posix/module.c @@ -6,4 +6,15 @@ void *tc_dlopen(const char *path) { return dlopen(path, RTLD_LAZY); } - + +void *tc_dlsym(void *handle, const char *name) { + return dlsym(handle, name); +} + +void tc_dlclose(void *handle) { + dlclose(handle); +} + +char *tc_dlerror() { + return dlerror(); +}