/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1997-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*/
#include <ast.h>
#include <dlldefs.h>
#include <error.h>
/*
* at least one dlopen() is called to initialize dlerror()
* if path!=0 then library path up to size chars copied to path with trailing 0
* if name contains a directory prefix then library search is limited to the dir and siblings
*/
extern void*
{
void* dll;
int hit;
hit = 0;
for (;;)
{
{
{
hit = 1;
{
break;
}
else
}
}
if (hit)
return dll;
if (!lib)
break;
lib = 0;
}
return dll;
}