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 /*
24  * Copyright (c) 2000-2001 by Sun Microsystems, Inc.
25  * All rights reserved.
26  */
27 
28 #ifndef	_MESSAGE_CONF_MOD_H
29 #define	_MESSAGE_CONF_MOD_H
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 
36 #define	OUT_OF_MEMORY_ERR	\
37 	gettext("Out of memory.")
38 
39 #define	CANNOT_OPEN_ERR	\
40 	gettext("cannot open %s - %s\n")
41 
42 #define	NO_USER_ERR	\
43 	gettext("%s, line %d: " "user '%s' not recognized\n")
44 
45 #define	RESERVED_FIELD_ERR	\
46 	gettext("%s, line %d: " "reserved field '%s' must be '-'\n")
47 
48 #define	SETREGID_ERR	\
49 	gettext("%s: setregid(%d) - %s\n")
50 
51 #define	SETREUID_ERR	\
52 	gettext("%s: setreuid(%d)- %s\n")
53 
54 #define	CANNOT_EXECUTE_ERR	\
55 	gettext("%s, line %d: no execute access to %s - %s\n")
56 
57 #define	SYNTAX_ERR	\
58 	gettext("%s, line %d: syntax error\n")
59 
60 #define	PATHCONF_ERR	\
61 	gettext("pathconf(%s, NAME_MAX) failed - %s\n")
62 
63 #define	READDIR_ERR	\
64 	gettext("readdir(%s) failed - %s\n")
65 
66 #define	CLOSEDIR_ERR	\
67 	gettext("closedir(%s) failed - %s\n")
68 
69 #define	MACRO_UNDEF_ERR	\
70 	gettext("%s, line %d: macro '%s' undefined\n")
71 
72 #define	MACRO_MULT_DEF_ERR	\
73 	gettext("%s, line %d: multiple definitions of macro '%s'\n")
74 
75 #define	ATTR_VALUE_ERR	\
76 	gettext("%s, line %d: attribute type error for macro '%s'\n")
77 
78 #define	ATTR_UNSUPPORTED_ERR	\
79 	gettext("%s, line %d: unsupported attribute type (0x%x) "	\
80 	"for macro '%s'\n")
81 
82 #define	GET_ATTR_LIST_ERR	\
83 	gettext("%s, line %d: unable to get nvlist - %s\n")
84 
85 #define	NVLIST_ALLOC_ERR	\
86 	gettext("%s, line %d: error allocating nvlist - %s\n")
87 
88 #define	NVLIST_BUILD_ERR	\
89 	gettext("%s, line %d: error building nvlist - %s\n")
90 
91 #define	SYSEVENT_ALLOC_ERR	\
92 	gettext("%s, line %d: error allocating event - %s\n")
93 
94 #define	SYSEVENT_SEND_ERR	\
95 	gettext("%s, line %d: error sending event (%d) - "	\
96 		"syseventconfd not responding?\n")
97 
98 #define	CHANNEL_OPEN_ERR \
99 	gettext("unable to open channel to syseventconfd\n")
100 
101 #define	SYSEVENTCONFD_ERR	\
102 	gettext("syseventconfd not responding?\n")
103 
104 #define	SYSEVENTCONFD_OK	\
105 	gettext("syseventconfd ok\n")
106 
107 #define	SYSEVENTCONFD_TRAN_ERR	\
108 	gettext("syseventconfd transport error - %s\n")
109 
110 #define	SYSEVENTCONFD_START_ERR		\
111 	gettext("error starting syseventconfd - %s\n")
112 
113 #define	SYSEVENTCONFD_RESTART_ERR	\
114 	gettext("error restarting syseventconfd - %s\n")
115 
116 #define	THR_CREATE_ERR	\
117 	gettext("thread create error at init - %s\n")
118 
119 #define	THR_JOIN_ERR	\
120 	gettext("thread join error at fini - %s\n")
121 
122 #define	N_EVENTS_DISCARDED_ERR	\
123 	gettext("discarding %d queued events\n")
124 
125 #define	SERVICE_DISABLED_MSG	\
126 	gettext("sysevent_conf_mod service disabled - "	\
127 		"restart with 'pkill -HUP syseventd'\n")
128 
129 #define	MSG_LOCK_CREATE_ERR	\
130 	gettext("%s: error creating lock %s - %s\n")
131 
132 #define	MSG_LOCK_SET_ERR	\
133 	gettext("%s: error setting lock in %s - %s\n")
134 
135 #define	MSG_LOCK_CLR_ERR	\
136 	gettext("%s: error clearing lock in %s - %s\n")
137 
138 #define	MSG_LOCK_CLOSE_ERR	\
139 	gettext("%s: error closing lock %s - %s\n")
140 
141 
142 #ifdef	__cplusplus
143 }
144 #endif
145 
146 #endif	/* _MESSAGE_CONF_MOD_H */
147