1*753d2d2eSraf /*
2*753d2d2eSraf  * CDDL HEADER START
3*753d2d2eSraf  *
4*753d2d2eSraf  * The contents of this file are subject to the terms of the
5*753d2d2eSraf  * Common Development and Distribution License, Version 1.0 only
6*753d2d2eSraf  * (the "License").  You may not use this file except in compliance
7*753d2d2eSraf  * with the License.
8*753d2d2eSraf  *
9*753d2d2eSraf  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*753d2d2eSraf  * or http://www.opensolaris.org/os/licensing.
11*753d2d2eSraf  * See the License for the specific language governing permissions
12*753d2d2eSraf  * and limitations under the License.
13*753d2d2eSraf  *
14*753d2d2eSraf  * When distributing Covered Code, include this CDDL HEADER in each
15*753d2d2eSraf  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*753d2d2eSraf  * If applicable, add the following below this CDDL HEADER, with the
17*753d2d2eSraf  * fields enclosed by brackets "[]" replaced with your own identifying
18*753d2d2eSraf  * information: Portions Copyright [yyyy] [name of copyright owner]
19*753d2d2eSraf  *
20*753d2d2eSraf  * CDDL HEADER END
21*753d2d2eSraf  */
22*753d2d2eSraf /*
23*753d2d2eSraf  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24*753d2d2eSraf  * Use is subject to license terms.
25*753d2d2eSraf  */
26*753d2d2eSraf 
27*753d2d2eSraf #ifndef _TRACE_H
28*753d2d2eSraf #define	_TRACE_H
29*753d2d2eSraf 
30*753d2d2eSraf #ifdef	__cplusplus
31*753d2d2eSraf extern "C" {
32*753d2d2eSraf #endif
33*753d2d2eSraf 
34*753d2d2eSraf #include "symtab.h"
35*753d2d2eSraf 
36*753d2d2eSraf #define	TRACE_VERSION "1.1.1"
37*753d2d2eSraf 
38*753d2d2eSraf /* Return codes from back- to front-end. */
39*753d2d2eSraf enum retcode_t { SUCCESS_RC = 0, ERROR_RC = -1, SKIP_RC = 1};
40*753d2d2eSraf 
41*753d2d2eSraf /* Kinds of code-generation to do. */
42*753d2d2eSraf typedef enum {AUDIT, PRELOAD} CODE;
43*753d2d2eSraf 
44*753d2d2eSraf /* Global functions. */
45*753d2d2eSraf extern void stats_add_warning(void);
46*753d2d2eSraf extern void stats_add_error(void);
47*753d2d2eSraf extern void generate_interceptor(ENTRY *);
48*753d2d2eSraf extern void print_function_signature(char *, char *, char *);
49*753d2d2eSraf extern void generate_linkage(ENTRY *function);
50*753d2d2eSraf 
51*753d2d2eSraf /* Global variables */
52*753d2d2eSraf extern CODE Generate;
53*753d2d2eSraf 
54*753d2d2eSraf /* Defines. */
55*753d2d2eSraf #define	YES	1
56*753d2d2eSraf #define	NO	0
57*753d2d2eSraf #define	ERR (-1)
58*753d2d2eSraf 
59*753d2d2eSraf #define	MAXLINE 1024
60*753d2d2eSraf 
61*753d2d2eSraf #ifdef	__cplusplus
62*753d2d2eSraf }
63*753d2d2eSraf #endif
64*753d2d2eSraf 
65*753d2d2eSraf #endif /* _TRACE_H */
66