mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-18 18:51:43 +00:00
Update libc
This commit is contained in:
23
libc/src/dlfcn.c
Normal file
23
libc/src/dlfcn.c
Normal file
@@ -0,0 +1,23 @@
|
||||
#include <dlfcn.h>
|
||||
|
||||
static char *error = "Not implemented";
|
||||
|
||||
__attribute__((weak)) void *dlopen(const char *filename, int flags)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
__attribute__((weak)) void *dlsym(void *handle, const char *symbol)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
__attribute__((weak)) int dlclose(void *handle)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
__attribute__((weak)) char *dlerror(void)
|
||||
{
|
||||
return error;
|
||||
}
|
Reference in New Issue
Block a user