xref: /illumos-gate/usr/src/cmd/syseventadm/syseventadm_msg.h (revision 45d3dd981abb9025d8ac994cf4cc8ce8cb1a9480)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_SYSEVENTADM_MSG_H
28 #define	_SYSEVENTADM_MSG_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * Gettext strings for internationalization
38  */
39 #define	MSG_NOT_ROOT	\
40 	gettext("%s: must be root\n")
41 
42 #define	MSG_NOT_GLOBAL	\
43 	gettext("%s: must be in global zone\n")
44 
45 #define	MSG_CANNOT_CREATE	\
46 	gettext("%s: cannot create %s - %s\n")
47 
48 #define	MSG_CANNOT_OPEN	\
49 	gettext("%s: cannot open %s - %s\n")
50 
51 #define	MSG_CLOSE_ERROR	\
52 	gettext("%s: close of %s failed - %s\n")
53 
54 #define	MSG_CHMOD_ERROR	\
55 	gettext("%s: cannot chmod %s to 0444 - %s\n")
56 
57 #define	MSG_CANNOT_OPEN_DIR	\
58 	gettext("%s: cannot open directory %s - %s\n")
59 
60 #define	MSG_CLOSE_DIR_ERROR	\
61 	gettext("%s: close of directory %s failed - %s\n")
62 
63 #define	MSG_TMP_FILE	\
64 	gettext("%s: unable to make tmp file name\n")
65 
66 #define	MSG_CANNOT_UNLINK	\
67 	gettext("%s: cannot unlink %s - %s\n")
68 
69 #define	MSG_CANNOT_RENAME	\
70 	gettext("%s: cannot rename %s to %s - %s\n")
71 
72 #define	MSG_RESTART_FAILED	\
73 	gettext("%s: restart failed - %s\n")
74 
75 #define	MSG_NO_MEM	\
76 	gettext("%s: out of memory\n")
77 
78 #define	MSG_USAGE_INTRO	\
79 	gettext("usage: syseventadm <cmd> ...\n")
80 
81 #define	MSG_USAGE_OPTIONS	\
82 	gettext("where the possible commands and options for each are:\n")
83 
84 #define	MSG_LOCK_CREATE_ERR	\
85 	gettext("%s: error creating lock %s - %s\n")
86 
87 #define	MSG_LOCK_PATH_ERR	\
88 	gettext("%s: error creating lock %s - file path invalid\n")
89 
90 #define	MSG_LOCK_SET_ERR	\
91 	gettext("%s: error setting lock in %s - %s\n")
92 
93 #define	MSG_LOCK_CLR_ERR	\
94 	gettext("%s: error clearing lock in %s - %s\n")
95 
96 #define	MSG_LOCK_CLOSE_ERR	\
97 	gettext("%s: error closing lock %s - %s\n")
98 
99 #ifdef	__cplusplus
100 }
101 #endif
102 
103 #endif	/* _SYSEVENTADM_MSG_H */
104