Moved dlopen version of osdFindSymbol.c into posix
It was identical in solaris, Darwin and Linux, and had not been included for cygwin so this reduces duplication.
This commit is contained in:
1 parent
5708855c36
commit
75da9fd454
3 files changed
+1
-55
No files matched your search
@@ -1,27 +0,0 @@
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* EPICS BASE is distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* osi/os/default/epicsFindSymbol.c */
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "epicsFindSymbol.h"
|
||||
|
||||
epicsShareFunc void * epicsLoadLibrary(const char *name)
|
||||
{
|
||||
return dlopen(name, RTLD_LAZY | RTLD_GLOBAL);
|
||||
}
|
||||
|
||||
epicsShareFunc const char *epicsLoadError(void)
|
||||
{
|
||||
return dlerror();
|
||||
}
|
||||
|
||||
epicsShareFunc void * epicsShareAPI epicsFindSymbol(const char *name)
|
||||
{
|
||||
return dlsym(0, name);
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
* EPICS BASE is distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* osi/os/default/epicsFindSymbol.c */
|
||||
/* osi/os/posix/epicsFindSymbol.c */
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
/*************************************************************************\
|
||||
* Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne
|
||||
* National Laboratory.
|
||||
* EPICS BASE is distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
/* osi/os/default/epicsFindSymbol.c */
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include "epicsFindSymbol.h"
|
||||
|
||||
epicsShareFunc void * epicsLoadLibrary(const char *name)
|
||||
{
|
||||
return dlopen(name, RTLD_LAZY | RTLD_GLOBAL);
|
||||
}
|
||||
|
||||
epicsShareFunc const char *epicsLoadError(void)
|
||||
{
|
||||
return dlerror();
|
||||
}
|
||||
|
||||
epicsShareFunc void * epicsShareAPI epicsFindSymbol(const char *name)
|
||||
{
|
||||
return dlsym(0, name);
|
||||
}
|
||||
Reference in new issue
Block a user