/*
* 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 <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <strings.h>
#include <fcdriver/fcdriver.h>
static char *prop_buf;
static int
{
char *service;
int error;
if (error)
return (-1);
return (fc_cell2int(len));
}
static int
int inherit)
{
char *service;
int error;
if (error)
return (-1);
return (fc_cell2int(len));
}
int
{
int i, j;
char *bp;
if (i <= 0) {
/*
* OK for properties to be undefined, suppress error message
* unless some debug is on.
*/
if (get_interpreter_debug_level())
" getproplen(%s) returned %d\n", name, i);
return (-1);
}
if (i != j) {
/*
* It's an error if getproplen succeeded but getprop didn't
* return a matching length.
*/
" return %d, getproplen returned %d\n", name, j, i);
return (-2);
}
*len = i;
return (0);
}
static void
{
char *name;
char *prop;
int len;
&len)) {
} else {
}
}
static void
{
}
static void
{
}
void
{
}
static void
_init(void)
{
}