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