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