mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
LibC: Stub out dlfcn
This commit is contained in:
parent
14a202f011
commit
5b3c4afff2
3 changed files with 35 additions and 1 deletions
|
@ -46,7 +46,8 @@ LIBC_OBJS = \
|
|||
locale.o \
|
||||
arpa/inet.o \
|
||||
netdb.o \
|
||||
sched.o
|
||||
sched.o \
|
||||
dlfcn.o
|
||||
|
||||
ASM_OBJS = setjmp.ao crti.ao crtn.ao
|
||||
|
||||
|
|
22
LibC/dlfcn.cpp
Normal file
22
LibC/dlfcn.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "dlfcn.h"
|
||||
#include <assert.h>
|
||||
|
||||
int dlclose(void*)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
char *dlerror()
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void *dlopen(const char*, int)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void *dlsym(void*, const char*)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
11
LibC/dlfcn.h
Normal file
11
LibC/dlfcn.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#define RTLD_LAZY 1
|
||||
#define RTLD_NOW 2
|
||||
#define RTLD_GLOBAL 3
|
||||
#define RTLD_LOCAL 4
|
||||
|
||||
int dlclose(void*);
|
||||
char *dlerror();
|
||||
void *dlopen(const char*, int);
|
||||
void *dlsym(void*, const char*);
|
Loading…
Add table
Add a link
Reference in a new issue