提交 69422e28 编写于 作者: qiuyiuestc's avatar qiuyiuestc

delete rt_ prefix in libdl

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1054 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 d240423d
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <rtthread.h> #include <rtthread.h>
#include <rtm.h> #include <rtm.h>
int rt_dlclose (void *handle) int dlclose (void *handle)
{ {
rt_module_t module; rt_module_t module;
...@@ -32,5 +32,5 @@ int rt_dlclose (void *handle) ...@@ -32,5 +32,5 @@ int rt_dlclose (void *handle)
return RT_TRUE; return RT_TRUE;
} }
RTM_EXPORT(rt_dlclose) RTM_EXPORT(dlclose)
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
#include <rtthread.h> #include <rtthread.h>
#include <rtm.h> #include <rtm.h>
const char *rt_dlerror(void) const char *dlerror(void)
{ {
return "TODO"; return "TODO";
} }
RTM_EXPORT(rt_dlerror) RTM_EXPORT(dlerror)
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define RTLD_DEFAULT ((void*)1) #define RTLD_DEFAULT ((void*)1)
#define RTLD_NEXT ((void*)2) #define RTLD_NEXT ((void*)2)
void *rt_dlopen (const char *filename, int flag); void *dlopen (const char *filename, int flag);
const char *rt_dlerror(void); const char *dlerror(void);
void *rt_dlsym(void *handle, const char *symbol); void *dlsym(void *handle, const char *symbol);
int rt_dlclose (void *handle); int dlclose (void *handle);
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <rtthread.h> #include <rtthread.h>
#include <rtm.h> #include <rtm.h>
void* rt_dlopen(const char *filename, int flags) void* dlopen(const char *filename, int flags)
{ {
rt_module_t module; rt_module_t module;
...@@ -35,5 +35,5 @@ void* rt_dlopen(const char *filename, int flags) ...@@ -35,5 +35,5 @@ void* rt_dlopen(const char *filename, int flags)
} }
} }
RTM_EXPORT(rt_dlopen) RTM_EXPORT(dlopen)
...@@ -15,13 +15,15 @@ ...@@ -15,13 +15,15 @@
#include <rtthread.h> #include <rtthread.h>
#include <rtm.h> #include <rtm.h>
void* rt_dlsym(void *handle, const char* symbol) void* dlsym(void *handle, const char* symbol)
{ {
int i; int i;
rt_module_t module = (rt_module_t)handle; rt_module_t module;
RT_ASSERT(handle != RT_NULL); RT_ASSERT(handle != RT_NULL);
module = (rt_module_t)handle;
for(i=0; i<module->nsym; i++) for(i=0; i<module->nsym; i++)
{ {
if (rt_strcmp(module->symtab[i].name, symbol) == 0) if (rt_strcmp(module->symtab[i].name, symbol) == 0)
...@@ -31,5 +33,5 @@ void* rt_dlsym(void *handle, const char* symbol) ...@@ -31,5 +33,5 @@ void* rt_dlsym(void *handle, const char* symbol)
return RT_NULL; return RT_NULL;
} }
RTM_EXPORT(rt_dlsym) RTM_EXPORT(dlsym)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册