xref: /illumos-gate/usr/src/cmd/bart/msgs.h (revision c690e840)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23  */
24 
25 #ifndef	_MSGS_H
26 #define	_MSGS_H
27 
28 #ifdef	__cplusplus
29 extern "C" {
30 #endif
31 
32 #define	SYNTAX_ERR	gettext("ERROR: Ignoring rules syntax error: %s\n")
33 #define	SYNTAX_ABORT	gettext("ABORTING: Syntax error(s) in the rules file\n")
34 #define	UNKNOWN_FILE	gettext("WARNING: unknown directory entry: %s\n")
35 #define	CANTLIST_DIR	gettext("WARNING: cannot list directory: %s\n")
36 #define	INTERNAL_ERR	gettext("WARNING: internal error at %s\n")
37 #define	INVALID_SUBTREE	gettext("WARNING: Ignoring invalid subtree: %s\n")
38 #define	RULES_ERR	gettext("ERROR: -r option requires a filename\n")
39 #define	INPUT_ERR \
40 	gettext("ERROR: Cannot use -I and -r options together\n")
41 #define	MISSING_VER	\
42 	gettext("WARNING: %s has missing/invalid version string\n")
43 #define	MANIFEST_ERR	gettext("ERROR: Manifest corrupt, cannot continue\n")
44 #define	CONTENTS_WARN	gettext("WARNING: Checksum failed: %s\n")
45 #define	USAGE_MSG gettext("Usage:\n"\
46 	"\tbart create [-n] [-R root] [-r rules|-]\n"\
47 	"\tbart create [-n] [-R root] [-I | -I filelist]\n"\
48 	"\tbart compare [-r rules|-] [-i keywords] [-p] "\
49 		"control-manifest test-manifest\n")
50 
51 #ifdef	__cplusplus
52 }
53 #endif
54 
55 #endif	/* _MSGS_H */
56