/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <fcntl.h>
#include <dlfcn.h>
#include <sys/systeminfo.h>
#include <fcdriver/fcdriver.h>
static char *default_search_path;
static char search_proto[] =
/*
* passed, we build the search path (per the PSARC decision):
* If there is an architecture passed, we prepend the following search path to
* the above:
* This allows FCode drop-in searches to find FCode in the non-architecture
* directories.
*/
static void
{
int len;
if (*arch != '\0') {
}
if (*arch != '\0') {
*p++ = ':';
} else
p = default_search_path;
}
static void
{
if (default_search_path)
}
static void
{
}
/*
* Complicated by fact that a library (e.g. a 32-bit library) can match the
* file name. But if we're running as 64-bit, dlopen on that library will
* fail.
*/
static char *
{
char *p, *next_p;
*next_p++ = '\0';
return (tpath);
}
}
return (NULL);
}
static int
{
return (0);
}
return (1);
}
return (0);
}
static int
{
int fd;
int status;
extern int check_fcode_header(char *, uchar_t *, int);
path);
return (0);
}
return (0);
}
return (status);
}
static char *
int (*fn)(char *))
{
char *lib_name;
return (NULL);
}
return (fname);
}
char *
{
}
static void
{
char *fname;
!= NULL) {
} else {
}
}
void
{
prop_t *p;
if (d->parent) {
return;
}
/*
* Warning: lookup_package_property uses a static data area to
* build the property node returned, so we have to grab a copy
* of the data.
*/
} else
libname[0] = '\0';
return;
}
/*
* Warning: lookup_package_property uses a static data area to build
* the property node returned, so we have to grab a copy of the
* data.
*/
}
static void
_init(void)
{
#if defined(__sparcv9)
build_default_search_path("/sparcv9");
#else
#endif
}