Update libc

This commit is contained in:
Alex
2022-11-07 08:34:02 +02:00
parent a003ec0889
commit 68e65dd602
10 changed files with 98 additions and 1 deletions

23
libc/src/dlfcn.c Normal file
View 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;
}