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:
Andrew Johnson
2014-07-28 12:27:02 -05:00
parent 5708855c36
commit 75da9fd454
3 changed files with 1 additions and 55 deletions

View File

@@ -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);
}

View File

@@ -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>

View File

@@ -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);
}