diff --git a/components/libdl/dlclose.c b/components/libdl/dlclose.c index e040a2139675e94c8b8a077b8035516067bec0b2..854dd6a032cc3322076815dac50d3135337430c0 100644 --- a/components/libdl/dlclose.c +++ b/components/libdl/dlclose.c @@ -15,7 +15,7 @@ #include #include -int rt_dlclose (void *handle) +int dlclose (void *handle) { rt_module_t module; @@ -32,5 +32,5 @@ int rt_dlclose (void *handle) return RT_TRUE; } -RTM_EXPORT(rt_dlclose) +RTM_EXPORT(dlclose) diff --git a/components/libdl/dlerror.c b/components/libdl/dlerror.c index a4728a8a88df2f5479bc5e257b052173b579c8d4..375bd1de3f759e9ced2221f87cce06937f26240d 100644 --- a/components/libdl/dlerror.c +++ b/components/libdl/dlerror.c @@ -15,10 +15,10 @@ #include #include -const char *rt_dlerror(void) +const char *dlerror(void) { return "TODO"; } -RTM_EXPORT(rt_dlerror) +RTM_EXPORT(dlerror) diff --git a/components/libdl/dlfcn.h b/components/libdl/dlfcn.h index eea1d02d4bd02e20be84fe50cde39d8c87037eeb..0569dedd1be4db48c348f1fcab97b09ffef4710e 100644 --- a/components/libdl/dlfcn.h +++ b/components/libdl/dlfcn.h @@ -10,7 +10,7 @@ #define RTLD_DEFAULT ((void*)1) #define RTLD_NEXT ((void*)2) -void *rt_dlopen (const char *filename, int flag); -const char *rt_dlerror(void); -void *rt_dlsym(void *handle, const char *symbol); -int rt_dlclose (void *handle); +void *dlopen (const char *filename, int flag); +const char *dlerror(void); +void *dlsym(void *handle, const char *symbol); +int dlclose (void *handle); diff --git a/components/libdl/dlopen.c b/components/libdl/dlopen.c index d392a945230a32d3640b3e7676323f9a8dba9f76..00405523e497fba5f293490b0ed61f6367ae8635 100644 --- a/components/libdl/dlopen.c +++ b/components/libdl/dlopen.c @@ -15,7 +15,7 @@ #include #include -void* rt_dlopen(const char *filename, int flags) +void* dlopen(const char *filename, int flags) { rt_module_t module; @@ -35,5 +35,5 @@ void* rt_dlopen(const char *filename, int flags) } } -RTM_EXPORT(rt_dlopen) +RTM_EXPORT(dlopen) diff --git a/components/libdl/dlsym.c b/components/libdl/dlsym.c index d1b5266ce1ba035aed26be0eacfc8f220e7260f5..67663bc324fb12817adbf1bb687507764bc77c69 100644 --- a/components/libdl/dlsym.c +++ b/components/libdl/dlsym.c @@ -15,13 +15,15 @@ #include #include -void* rt_dlsym(void *handle, const char* symbol) +void* dlsym(void *handle, const char* symbol) { int i; - rt_module_t module = (rt_module_t)handle; + rt_module_t module; RT_ASSERT(handle != RT_NULL); + module = (rt_module_t)handle; + for(i=0; insym; i++) { if (rt_strcmp(module->symtab[i].name, symbol) == 0) @@ -31,5 +33,5 @@ void* rt_dlsym(void *handle, const char* symbol) return RT_NULL; } -RTM_EXPORT(rt_dlsym) +RTM_EXPORT(dlsym)