util.c revision 184cd04c26b064536977dfbb913a1240eaf6f708
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <inttypes.h>
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <smbios.h>
#include "util.h"
#include "disk_monitor.h"
extern log_class_t g_verbose;
static void
{
}
static void
{
}
static void
{
}
void
{
return;
}
void
{
return;
}
/*PRINTFLIKE1*/
void
{
return;
}
/*PRINTFLIKE1*/
void
{
return;
}
/*PRINTFLIKE1*/
void
log_warn_e(const char *fmt, ...)
{
return;
}
void
{
}
void
dstrfree(char *s)
{
fmd_hdl_strfree(g_fm_hdl, s);
}
void *
{
}
void *
{
}
char *
dstrdup(const char *s)
{
}
void
{
else {
}
/* If the queue was empty, we need to wake people up */
}
void *
{
/* Wait while the queue is empty */
}
/*
* If Block-On-Empty is false, the queue may be empty
*/
}
return (rv);
}
qu_t *
{
return (newqp);
}
void
{
void *item;
}
}
int
{
/*
* No newline is appended to the assertion message so that
* errno can be translated for us by fmd_hdl_abort().
*/
if (func)
else
/*NOTREACHED*/
return (0);
}