X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/de355530ae67247cbd0da700edb3a2a1dae884c2..cf7d32b81c573a0536dc4da4157f9c26f8d0bed3:/osfmk/ddb/db_command.h diff --git a/osfmk/ddb/db_command.h b/osfmk/ddb/db_command.h index 9626a5091..102dd97ea 100644 --- a/osfmk/ddb/db_command.h +++ b/osfmk/ddb/db_command.h @@ -1,100 +1,33 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. * - * @APPLE_LICENSE_HEADER_START@ - * - * The contents of this file constitute Original Code as defined in and - * are subject to the Apple Public Source License Version 1.1 (the - * "License"). You may not use this file except in compliance with the - * License. Please obtain a copy of the License at - * http://www.apple.com/publicsource and read it before using this file. - * - * This Original Code and all software distributed under the License are - * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ + * + * This file contains Original Code and/or Modifications of Original Code + * as defined in and that are subject to the Apple Public Source License + * Version 2.0 (the 'License'). You may not use this file except in + * compliance with the License. The rights granted to you under the License + * may not be used to create, or enable the creation or redistribution of, + * unlawful or unlicensed copies of an Apple operating system, or to + * circumvent, violate, or enable the circumvention or violation of, any + * terms of an Apple operating system software license agreement. + * + * Please obtain a copy of the License at + * http://www.opensource.apple.com/apsl/ and read it before using this file. + * + * The Original Code and all software distributed under the License are + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the - * License for the specific language governing rights and limitations - * under the License. + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. + * Please see the License for the specific language governing rights and + * limitations under the License. * - * @APPLE_LICENSE_HEADER_END@ + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ */ /* * @OSF_COPYRIGHT@ */ -/* - * HISTORY - * Revision 1.1.1.1 1998/09/22 21:05:47 wsanchez - * Import of Mac OS X kernel (~semeria) - * - * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez - * Import of OSF Mach kernel (~mburg) - * - * Revision 1.1.15.1 1997/03/27 18:46:27 barbou - * Add #include so that DB_MACHINE_COMMANDS - * can be defined. - * Move here from db_commands.c the prototype for - * db_machine_commands_install(), referenced by PARAGON/model_dep.c. - * [97/02/25 barbou] - * - * Revision 1.1.9.2 1994/09/23 01:18:19 ezf - * change marker to not FREE - * [1994/09/22 21:09:33 ezf] - * - * Revision 1.1.9.1 1994/06/11 21:11:39 bolinger - * Merge up to NMK17.2. - * [1994/06/11 20:03:50 bolinger] - * - * Revision 1.1.7.1 1994/04/11 09:34:47 bernadat - * Added db_command struct decalration. - * [94/03/17 bernadat] - * - * Revision 1.1.2.3 1993/07/27 18:26:57 elliston - * Add ANSI prototypes. CR #9523. - * [1993/07/27 18:11:08 elliston] - * - * Revision 1.1.2.2 1993/06/02 23:10:38 jeffc - * Added to OSF/1 R1.3 from NMK15.0. - * [1993/06/02 20:56:00 jeffc] - * - * Revision 1.1 1992/09/30 02:24:14 robert - * Initial revision - * - * $EndLog$ - */ -/* CMU_HIST */ -/* - * Revision 2.6 91/10/09 15:58:45 af - * Revision 2.5.2.1 91/10/05 13:05:30 jeffreyh - * Added db_exec_conditional_cmd(), and db_option(). - * Deleted db_skip_to_eol(). - * [91/08/29 tak] - * - * Revision 2.5.2.1 91/10/05 13:05:30 jeffreyh - * Added db_exec_conditional_cmd(), and db_option(). - * Deleted db_skip_to_eol(). - * [91/08/29 tak] - * - * Revision 2.5 91/07/09 23:15:46 danner - * Grabbed up to date copyright. - * [91/07/08 danner] - * - * Revision 2.2 91/04/10 16:02:32 mbj - * Grabbed 3.0 copyright/disclaimer since ddb comes from 3.0. - * [91/04/09 rvb] - * - * Revision 2.3 91/02/05 17:06:15 mrt - * Changed to new Mach copyright - * [91/01/31 16:17:28 mrt] - * - * Revision 2.2 90/08/27 21:50:19 dbg - * Replace db_last_address_examined with db_prev, db_next. - * [90/08/22 dbg] - * Created. - * [90/08/07 dbg] - * - */ -/* CMU_ENDHIST */ /* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University @@ -136,13 +69,13 @@ #include #include -typedef void (*db_func)(db_expr_t, int, db_expr_t, char *); +typedef void (*db_func)(db_expr_t, boolean_t, db_expr_t, char *); /* * Command table */ struct db_command { - char * name; /* command name */ + const char *name; /* command name */ db_func fcn; /* function to call */ int flag; /* extra info: */ #define CS_OWN 0x1 /* non-standard syntax */ @@ -169,13 +102,13 @@ void db_command_loop(void); void db_machine_commands_install(struct db_command *ptr); boolean_t db_exec_cmd_nest( - char *cmd, - int size); + const char *cmd, + int size); -void db_error(char *s); +void db_error(const char *s); boolean_t db_option( - char *modif, - int option); + const char *modif, + int option); #endif /* !_DDB_DB_COMMAND_H_ */