add posix library loading functions

This commit is contained in:
jussi 2019-09-24 00:54:58 +03:00
parent fb044ba9f2
commit 0e762f237e

View File

@ -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();
}