xref: /onnv-gate/usr/src/cmd/mdb/common/kmdb/mapfile_skel (revision 12692:4341b447c069)
10Sstevel@tonic-gate/*
20Sstevel@tonic-gate * CDDL HEADER START
30Sstevel@tonic-gate *
40Sstevel@tonic-gate * The contents of this file are subject to the terms of the
51545Seschrock * Common Development and Distribution License (the "License").
61545Seschrock * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate *
80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate * See the License for the specific language governing permissions
110Sstevel@tonic-gate * and limitations under the License.
120Sstevel@tonic-gate *
130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate *
190Sstevel@tonic-gate * CDDL HEADER END
200Sstevel@tonic-gate */
210Sstevel@tonic-gate/* BEGIN PROLOGUE */
220Sstevel@tonic-gate/*
23*12692SAli.Bahrami@Oracle.COM * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
240Sstevel@tonic-gate */
250Sstevel@tonic-gate
260Sstevel@tonic-gate/*
270Sstevel@tonic-gate * This file is used to limit the symbols that are to be exported from the
280Sstevel@tonic-gate * debugger.  This ensures that dmods follow the module API.
291605Spetede *
301605Spetede * There is a special rule for generating the mapfile. If the symbol
311605Spetede * is not a function then the symbol, in the mapfile, must have the
321605Spetede * the token "variable" as the third symbol on the line - see the
331605Spetede * entries for __ctype and errno below.
340Sstevel@tonic-gate */
350Sstevel@tonic-gate
36*12692SAli.Bahrami@Oracle.COM$mapfile_version 2
37*12692SAli.Bahrami@Oracle.COM
38*12692SAli.Bahrami@Oracle.COMSYMBOL_SCOPE {
390Sstevel@tonic-gate	global:
400Sstevel@tonic-gate
410Sstevel@tonic-gate/* END PROLOGUE */
420Sstevel@tonic-gate/* BEGIN EPILOGUE */
430Sstevel@tonic-gate		/*
440Sstevel@tonic-gate		 * Secret additions to the module API
450Sstevel@tonic-gate		 */
460Sstevel@tonic-gate
470Sstevel@tonic-gate		/* Implementation detail of the ctype macros */
481605Spetede		__ctype;	/* variable */
490Sstevel@tonic-gate		/* There should be only one - ours */
501605Spetede		errno;		/* variable */
510Sstevel@tonic-gate
521545Seschrock		/* <sys/utsname.h> implictly references this on x86 */
531545Seschrock#if defined(__i386) && !defined(__amd64)
541545Seschrock		_nuname;
551545Seschrock#endif
561545Seschrock
570Sstevel@tonic-gate		mdb_tgt_aread;
580Sstevel@tonic-gate		mdb_dis_create;
590Sstevel@tonic-gate		mdb_dis_destroy;
600Sstevel@tonic-gate
610Sstevel@tonic-gate	local:
620Sstevel@tonic-gate		*;
630Sstevel@tonic-gate};
640Sstevel@tonic-gate/* END EPILOGUE */
65