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