/*
* 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
*/
/*
*/
#ifndef _UTILS_H
#define _UTILS_H
#include <assert.h>
#include <libintl.h>
#include <stdarg.h>
#include <time.h>
#include <libzonecfg.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Message filter levels by priority
*/
typedef enum rcm_level {
} rcm_level_t;
/*
* Message destinations
*/
typedef enum rcm_dst {
/* on level */
} rcm_dst_t;
typedef struct zone_entry {
} zone_entry_t;
#ifdef DEBUG
#else /* !DEBUG */
#define ASSERT(x) ((void)0)
#endif /* DEBUG */
#ifdef DEBUG_MSG
extern void debug(char *, ...);
extern void debug_high(char *, ...);
#else /* !DEBUG_MSG */
/*LINTED: static unused*/
/*LINTED: static unused*/
#endif /* DEBUG_MSG */
extern void die(char *, ...);
extern void info(char *, ...);
extern rcm_level_t get_message_priority(void);
extern char *setpname(char *);
extern void warn(const char *, ...);
extern int valid_abspath(char *);
extern void dprintfe(int, char *, ...);
extern int xatoi(char *);
#ifdef __cplusplus
}
#endif
#endif /* _UTILS_H */