1*1545Seschrock /* 2*1545Seschrock * CDDL HEADER START 3*1545Seschrock * 4*1545Seschrock * The contents of this file are subject to the terms of the 5*1545Seschrock * Common Development and Distribution License (the "License"). 6*1545Seschrock * You may not use this file except in compliance with the License. 7*1545Seschrock * 8*1545Seschrock * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1545Seschrock * or http://www.opensolaris.org/os/licensing. 10*1545Seschrock * See the License for the specific language governing permissions 11*1545Seschrock * and limitations under the License. 12*1545Seschrock * 13*1545Seschrock * When distributing Covered Code, include this CDDL HEADER in each 14*1545Seschrock * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1545Seschrock * If applicable, add the following below this CDDL HEADER, with the 16*1545Seschrock * fields enclosed by brackets "[]" replaced with your own identifying 17*1545Seschrock * information: Portions Copyright [yyyy] [name of copyright owner] 18*1545Seschrock * 19*1545Seschrock * CDDL HEADER END 20*1545Seschrock */ 21*1545Seschrock 22*1545Seschrock /* 23*1545Seschrock * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*1545Seschrock * Use is subject to license terms. 25*1545Seschrock */ 26*1545Seschrock 27*1545Seschrock #ifndef _DIS_UTIL_H 28*1545Seschrock #define _DIS_UTIL_H 29*1545Seschrock 30*1545Seschrock #pragma ident "%Z%%M% %I% %E% SMI" 31*1545Seschrock 32*1545Seschrock #include <sys/types.h> 33*1545Seschrock 34*1545Seschrock #ifdef __cplusplus 35*1545Seschrock extern "C" { 36*1545Seschrock #endif 37*1545Seschrock 38*1545Seschrock void die(const char *, ...); 39*1545Seschrock void warn(const char *, ...); 40*1545Seschrock 41*1545Seschrock void *safe_malloc(size_t); 42*1545Seschrock const char *dis_demangle(const char *); 43*1545Seschrock 44*1545Seschrock int g_error; 45*1545Seschrock 46*1545Seschrock #define BUFSIZE 1024 47*1545Seschrock 48*1545Seschrock #ifdef __cplusplus 49*1545Seschrock } 50*1545Seschrock #endif 51*1545Seschrock 52*1545Seschrock #endif /* _DIS_UTIL_H */ 53