4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
24 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
28 /* Copyright (c) 1988 AT&T */
29 /* All Rights Reserved */
32 /* protect against multiple inclusion */
36 #pragma ident "%Z%%M% %I% %E% SMI"
38 #include "symintHdr.h"
45 * symint.c -- symbol information interface routines,
46 * interface definition.
48 * these routines form a symbol information access
49 * interface, for the profilers to get at object file
50 * information. this interface was designed to aid
51 * in the COFF to ELF conversion of prof, lprof and friends.
53 * this file includes all declarative information required
54 * by a user of this interface.
59 * 1. that there exists a routine _Malloc, with the following
60 * (effective) prototype:
61 * char * _Malloc (int item_count, int item_size);
62 * which does NOT (necessarily) initialize the allocated storage,
63 * and which issues an error message and calls exit() if
64 * the storage could not be allocated.
70 * the interface routines:
72 * 1. open an object file, set up PROF_FILE et al. (_symintOpen).
73 * 1. close an object file, clean up PROF_FILE et al. (_symintClose).
81 PROF_FILE
*_symintOpen(char *aout_name
); /* NULL or ptr */
82 void _symintClose(PROF_FILE
*profPtr
); /* nuttin */
83 PROF_SYMBOL
*_symintLoad(PROF_FILE
*proffilePtr
);
86 * required to be provided by the user of the interface...
89 void *_Malloc(uint_t item_count
, uint_t item_size
);
90 void _err_exit(char *format_s
, ...);
96 #endif /* _SYMINT_H */