dlfcns.c revision 98c080d502548e68bb9815459ea56e6ae282c430
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "msg.h"
#include "_debug.h"
#include "libld.h"
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}
void
{
const char *retry;
return;
/*
* The core functionality of dlopen() can be called twice. The first
* attempt can be affected by path names that exist in the "not-found"
* AVL tree. Should a "not-found" path name be found, a second attempt
* is made to locate the required file (in_nfavl is NULL). This fall-
* back provides for file system changes while a process executes.
*/
if (in_nfavl)
else
}
void
{
const char *str;
return;
if (flag == DBG_DLCLOSE_IGNORE)
else
}
void
{
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}
void
int type)
{
MSG_STR_EMPTY, /* MSG_ORIG(MSG_STR_EMPTY) */
MSG_DLSYM_NEXT, /* MSG_ORIG(MSG_DLSYM_NEXT) */
MSG_DLSYM_DEFAULT, /* MSG_ORIG(MSG_DLSYM_DEFAULT) */
MSG_DLSYM_SELF, /* MSG_ORIG(MSG_DLSYM_SELF) */
MSG_DLSYM_PROBE, /* MSG_ORIG(MSG_DLSYM_PROBE) */
MSG_DLSYM_SINGLETON /* MSG_ORIG(MSG_DLSYM_SINGLETON) */
};
#endif
return;
/*
* The core functionality of dlsym() can be called twice. The first
* attempt can be affected by path names that exist in the "not-found"
* AVL tree. Should a "not-found" path name be found, a second attempt
* is made to locate the required file (in_nfavl is NULL). This fall-
* back provides for file system changes while a process executes.
*/
if (in_nfavl)
else
if (type >= DBG_DLSYM_NUM)
type = 0;
if (next == 0)
else
}
void
{
if (DBG_NOTCLASS(DBG_C_DL))
return;
}