xref: /illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/message.h (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
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 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_MESSAGE_H
28 #define	_MESSAGE_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 #define	SIGHUP_CAUGHT \
35 	gettext("SIGHUP caught - reloading modules\n")
36 
37 #define	DAEMON_RESTARTED \
38 	gettext("Daemon restarted\n")
39 
40 #define	UNKNOWN_SIGNAL_CAUGHT \
41 	gettext("Signal '%d' caught\n")
42 
43 #define	FATAL_ERROR \
44 	gettext("Fatal:attempting to dump core\n")
45 
46 #define	INIT_ROOT_DIR_ERR \
47 	gettext("Initialization error: could not allocate space for the local \
48 		root directory - %s\n")
49 
50 #define	INIT_EV_BUF_ERR \
51 	gettext("Initialization error: could not allocate space for the event \
52 		buffer - %s\n")
53 
54 #define	INIT_SIG_BLOCK_ERR \
55 	gettext("Initialization error: Unable to block signals before creating \
56 		event dispatch thread\n")
57 
58 #define	INIT_THR_CREATE_ERR \
59 	gettext("Initialization error:could not create dispatch thread - '%s' \
60 		\n")
61 
62 #define	INIT_SIG_UNBLOCK_ERR \
63 	gettext("Initialization error: Unable to unblock signals after \
64 		creating event dispatch thread\n")
65 
66 #define	KERNEL_REPLAY_ERR \
67 	gettext("Kernel unable to post events: '%s'\n")
68 
69 #define	LOAD_MOD_ALLOC_ERR \
70 	gettext("Unable to allocate load module data structure %s: %s")
71 
72 #define	LOAD_MOD_OPEN_ERR \
73 	gettext("Unable to open module directory '%s': '%s'")
74 
75 #define	LOAD_MOD_READ_ERR \
76 	gettext("Unable to read module directory '%s': '%s'")
77 
78 #define	LOAD_MOD_DLOPEN_ERR \
79 	gettext("Unable to open module '%s': '%s'")
80 
81 #define	LOAD_MOD_DLSYM_ERR \
82 	gettext("Unable to read symbols for module '%s': '%s'")
83 
84 #define	LOAD_MOD_NO_INIT \
85 	gettext("Invalid module init routine for '%s': '%s'")
86 
87 #define	LOAD_MOD_EINVAL \
88 	gettext("Invalid ops vector for module '%s'")
89 
90 #define	LOAD_MOD_VERSION_MISMATCH \
91 	gettext("Invalid major number for module '%s': \
92 		syseventd version '%d' module version '%d'")
93 
94 #define	INIT_OPEN_DOOR_ERR \
95 	gettext("Unable to open kernel event door: '%s'")
96 
97 #define	INIT_CREATE_DOOR_ERR \
98 	gettext("Unable to create kernel event door: '%s'")
99 
100 #define	INIT_FATTACH_ERR \
101 	gettext("Kernel door failed to attach: '%s'")
102 
103 #define	INIT_DOOR_NAME_ERR \
104 	gettext("Unable to establish door name with kernel: '%s'")
105 
106 #define	INIT_LOCK_OPEN_ERR \
107 	gettext("Unable to open daemon lock file '%s': '%s'")
108 
109 #define	INIT_LOCK_ERR \
110 	gettext("Unable to obtain daemon lock file '%s': '%s'")
111 
112 #define	INIT_PATH_ERR \
113 	gettext("Unable to open '%s': file path invalid")
114 
115 #define	INIT_UNLOCK_ERR \
116 	gettext("Unable to release daemon lock file '%s': '%s'")
117 
118 #define	INIT_LOCK_CLOSE_ERR \
119 	gettext("Unable to close daemon lock file '%s': '%s'")
120 
121 #define	INIT_CLIENT_TBL_ERR \
122 	gettext("Unable to initialize event client table\n")
123 
124 #define	GET_DATA_FAILED \
125 	gettext("Incomplete event buffer 0X%llx.%llx")
126 
127 #define	WAIT_FAILED_ERR \
128 	gettext("waitpid() failed: %s\n")
129 
130 #define	SEMA_WAIT_FAILED_ERR \
131 	gettext("sema_wait() failed: %s\n")
132 
133 #ifdef	__cplusplus
134 }
135 #endif
136 
137 #endif	/* _MESSAGE_H */
138