]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_output.h
xnu-344.21.74.tar.gz
[apple/xnu.git] / osfmk / ddb / db_output.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * @OSF_COPYRIGHT@
27 */
28 /*
29 * HISTORY
30 *
31 * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez
32 * Import of Mac OS X kernel (~semeria)
33 *
34 * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez
35 * Import of OSF Mach kernel (~mburg)
36 *
37 * Revision 1.2.12.2 1994/09/23 01:20:43 ezf
38 * change marker to not FREE
39 * [1994/09/22 21:10:36 ezf]
40 *
41 * Revision 1.2.12.1 1994/06/11 21:12:00 bolinger
42 * Merge up to NMK17.2.
43 * [1994/06/11 20:03:58 bolinger]
44 *
45 * Revision 1.2.10.2 1994/03/07 16:37:44 paire
46 * Added definition of indent.
47 * [94/02/17 paire]
48 *
49 * Revision 1.2.10.1 1994/02/08 10:58:14 bernadat
50 * Added db_reserve_output_position
51 * db_reset_more
52 * prototypes
53 * [94/02/07 bernadat]
54 *
55 * Revision 1.2.2.4 1993/08/11 22:12:12 elliston
56 * Add ANSI Prototypes. CR #9523.
57 * [1993/08/11 03:33:44 elliston]
58 *
59 * Revision 1.2.2.3 1993/07/27 18:27:52 elliston
60 * Add ANSI prototypes. CR #9523.
61 * [1993/07/27 18:12:35 elliston]
62 *
63 * Revision 1.2.2.2 1993/06/09 02:20:29 gm
64 * Added to OSF/1 R1.3 from NMK15.0.
65 * [1993/06/02 20:56:49 jeffc]
66 *
67 * Revision 1.2 1993/04/19 16:02:43 devrcs
68 * Changes from mk78:
69 * db_printf is void.
70 * [92/05/18 jfriedl]
71 * [93/02/03 bruel]
72 *
73 * Revision 1.1 1992/09/30 02:24:18 robert
74 * Initial revision
75 *
76 * $EndLog$
77 */
78 /* CMU_HIST */
79 /*
80 * Revision 2.4 91/05/14 15:35:07 mrt
81 * Correcting copyright
82 *
83 * Revision 2.3 91/02/05 17:06:49 mrt
84 * Changed to new Mach copyright
85 * [91/01/31 16:18:48 mrt]
86 *
87 * Revision 2.2 90/08/27 21:51:32 dbg
88 * Created.
89 * [90/08/07 dbg]
90 *
91 */
92 /* CMU_ENDHIST */
93 /*
94 * Mach Operating System
95 * Copyright (c) 1991,1990 Carnegie Mellon University
96 * All Rights Reserved.
97 *
98 * Permission to use, copy, modify and distribute this software and its
99 * documentation is hereby granted, provided that both the copyright
100 * notice and this permission notice appear in all copies of the
101 * software, derivative works or modified versions, and any portions
102 * thereof, and that both notices appear in supporting documentation.
103 *
104 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
105 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
106 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
107 *
108 * Carnegie Mellon requests users of this software to return to
109 *
110 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
111 * School of Computer Science
112 * Carnegie Mellon University
113 * Pittsburgh PA 15213-3890
114 *
115 * any improvements or extensions that they make and grant Carnegie Mellon
116 * the rights to redistribute these changes.
117 */
118 /*
119 */
120 /*
121 * Author: David B. Golub, Carnegie Mellon University
122 * Date: 8/90
123 */
124
125 /*
126 * Printing routines for kernel debugger.
127 */
128
129 #ifndef _DDB_DB_OUTPUT_H_
130 #define _DDB_DB_OUTPUT_H_
131
132 #include <mach/boolean.h>
133
134 extern int db_indent;
135
136 /*
137 * Prototypes for functions exported by this module.
138 */
139 void db_force_whitespace(void);
140 void db_putchar(char c);
141 int db_print_position(void);
142 void db_end_line(void);
143 void db_printf(char *fmt, ...);
144 void kdbprintf(char *fmt, ...);
145 void iprintf(char *fmt, ...);
146 boolean_t db_reserve_output_position(int len);
147 void db_reset_more(void);
148 void db_output_prompt(void);
149 #endif /* !_DDB_DB_OUTPUT_H_ */