xref: /onnv-gate/usr/src/cmd/svr4pkg/pkgadm/pkgadm_msgs.h (revision 9781:ccf49524d5dc)
1*9781SMoriah.Waterland@Sun.COM /*
2*9781SMoriah.Waterland@Sun.COM  * CDDL HEADER START
3*9781SMoriah.Waterland@Sun.COM  *
4*9781SMoriah.Waterland@Sun.COM  * The contents of this file are subject to the terms of the
5*9781SMoriah.Waterland@Sun.COM  * Common Development and Distribution License (the "License").
6*9781SMoriah.Waterland@Sun.COM  * You may not use this file except in compliance with the License.
7*9781SMoriah.Waterland@Sun.COM  *
8*9781SMoriah.Waterland@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9781SMoriah.Waterland@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*9781SMoriah.Waterland@Sun.COM  * See the License for the specific language governing permissions
11*9781SMoriah.Waterland@Sun.COM  * and limitations under the License.
12*9781SMoriah.Waterland@Sun.COM  *
13*9781SMoriah.Waterland@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*9781SMoriah.Waterland@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9781SMoriah.Waterland@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*9781SMoriah.Waterland@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*9781SMoriah.Waterland@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*9781SMoriah.Waterland@Sun.COM  *
19*9781SMoriah.Waterland@Sun.COM  * CDDL HEADER END
20*9781SMoriah.Waterland@Sun.COM  */
21*9781SMoriah.Waterland@Sun.COM 
22*9781SMoriah.Waterland@Sun.COM /*
23*9781SMoriah.Waterland@Sun.COM  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24*9781SMoriah.Waterland@Sun.COM  * Use is subject to license terms.
25*9781SMoriah.Waterland@Sun.COM  */
26*9781SMoriah.Waterland@Sun.COM 
27*9781SMoriah.Waterland@Sun.COM #ifndef	_PKGADM_MSGS_H
28*9781SMoriah.Waterland@Sun.COM #define	_PKGADM_MSGS_H
29*9781SMoriah.Waterland@Sun.COM 
30*9781SMoriah.Waterland@Sun.COM 
31*9781SMoriah.Waterland@Sun.COM #include <libintl.h>
32*9781SMoriah.Waterland@Sun.COM 
33*9781SMoriah.Waterland@Sun.COM #ifdef	__cplusplus
34*9781SMoriah.Waterland@Sun.COM extern "C" {
35*9781SMoriah.Waterland@Sun.COM #endif
36*9781SMoriah.Waterland@Sun.COM 
37*9781SMoriah.Waterland@Sun.COM #ifdef	lint
38*9781SMoriah.Waterland@Sun.COM #define	gettext(x)	x
39*9781SMoriah.Waterland@Sun.COM #endif
40*9781SMoriah.Waterland@Sun.COM 
41*9781SMoriah.Waterland@Sun.COM /* generic messages */
42*9781SMoriah.Waterland@Sun.COM #define	MSG_BAD_SUB		gettext(\
43*9781SMoriah.Waterland@Sun.COM 	"\"%s\" is not a valid subcommand")
44*9781SMoriah.Waterland@Sun.COM 
45*9781SMoriah.Waterland@Sun.COM #define	MSG_MISSING_OPERAND	gettext(\
46*9781SMoriah.Waterland@Sun.COM 	"-%c requires an operand")
47*9781SMoriah.Waterland@Sun.COM 
48*9781SMoriah.Waterland@Sun.COM #define	MSG_USAGE		gettext(\
49*9781SMoriah.Waterland@Sun.COM "usage:\n" \
50*9781SMoriah.Waterland@Sun.COM "\n" \
51*9781SMoriah.Waterland@Sun.COM "pkgadm addcert  [-ty] [-a app] [-k keystore] [-e keyfile]\n" \
52*9781SMoriah.Waterland@Sun.COM "\t[-f format] [-n name] [-P passarg] [-p input_passarg]\n" \
53*9781SMoriah.Waterland@Sun.COM "\t[-R rootpath] certfile\n" \
54*9781SMoriah.Waterland@Sun.COM "\n" \
55*9781SMoriah.Waterland@Sun.COM "\t- Adds a trusted CA certificate or user certificate\n" \
56*9781SMoriah.Waterland@Sun.COM "\tand private key\n" \
57*9781SMoriah.Waterland@Sun.COM "\n" \
58*9781SMoriah.Waterland@Sun.COM "pkgadm removecert [-a app] [-k keystore] -n name [-P passarg]\n" \
59*9781SMoriah.Waterland@Sun.COM "\t[-R rootpath]\n" \
60*9781SMoriah.Waterland@Sun.COM "\n" \
61*9781SMoriah.Waterland@Sun.COM "\t- Removes a trusted CA certificate or user certificate\n" \
62*9781SMoriah.Waterland@Sun.COM "\tand private key\n" \
63*9781SMoriah.Waterland@Sun.COM "\n" \
64*9781SMoriah.Waterland@Sun.COM "pkgadm listcert  [-a app] [-f format] [-k keystore] -n name\n" \
65*9781SMoriah.Waterland@Sun.COM "\t[-P passarg] [-o outfile] [-R rootpath]\n" \
66*9781SMoriah.Waterland@Sun.COM "\n" \
67*9781SMoriah.Waterland@Sun.COM "\t- Prints trusted CA certificates or user certificates\n" \
68*9781SMoriah.Waterland@Sun.COM "\n" \
69*9781SMoriah.Waterland@Sun.COM "pkgadm dbstatus [-R rootpath]\n" \
70*9781SMoriah.Waterland@Sun.COM "\n" \
71*9781SMoriah.Waterland@Sun.COM "\t- Returns 'text' - the text install database in use since Solaris 2.0\n" \
72*9781SMoriah.Waterland@Sun.COM "\t  is the current install database in use.\n" \
73*9781SMoriah.Waterland@Sun.COM "\n" \
74*9781SMoriah.Waterland@Sun.COM "pkgadm -V\n" \
75*9781SMoriah.Waterland@Sun.COM "\t- Displays packaging tools version\n" \
76*9781SMoriah.Waterland@Sun.COM "\n" \
77*9781SMoriah.Waterland@Sun.COM "pkgadm -?\n" \
78*9781SMoriah.Waterland@Sun.COM "\t- Shows this help message\n")
79*9781SMoriah.Waterland@Sun.COM 
80*9781SMoriah.Waterland@Sun.COM #define	MSG_WARNING		gettext(\
81*9781SMoriah.Waterland@Sun.COM 	"WARNING")
82*9781SMoriah.Waterland@Sun.COM 
83*9781SMoriah.Waterland@Sun.COM #define	MSG_ERROR		gettext(\
84*9781SMoriah.Waterland@Sun.COM 	"ERROR")
85*9781SMoriah.Waterland@Sun.COM 
86*9781SMoriah.Waterland@Sun.COM #define	MSG_T_OPTION_ARGS	gettext(\
87*9781SMoriah.Waterland@Sun.COM 	"-t option takes 2 or 3 arguments, not %d!\n")
88*9781SMoriah.Waterland@Sun.COM 
89*9781SMoriah.Waterland@Sun.COM #define	MSG_T_RESULT_TWO	gettext(\
90*9781SMoriah.Waterland@Sun.COM 	"result <%d>: <%s> ~= <%s>\n")
91*9781SMoriah.Waterland@Sun.COM 
92*9781SMoriah.Waterland@Sun.COM #define	MSG_T_RESULT_THREE	gettext(\
93*9781SMoriah.Waterland@Sun.COM 	"required <%d> actual <%d> <%30s> ~- <%30s>\n")
94*9781SMoriah.Waterland@Sun.COM 
95*9781SMoriah.Waterland@Sun.COM #define	MSG_KEYSTORE_PASSPROMPT	gettext(\
96*9781SMoriah.Waterland@Sun.COM 	"Enter Keystore Password: ")
97*9781SMoriah.Waterland@Sun.COM 
98*9781SMoriah.Waterland@Sun.COM #define	MSG_KEYSTORE_PASSOUTPROMPT	gettext(\
99*9781SMoriah.Waterland@Sun.COM 	"Type a Keystore protection Password.\n" \
100*9781SMoriah.Waterland@Sun.COM 	"Press ENTER for no protection password (not recommended): ")
101*9781SMoriah.Waterland@Sun.COM 
102*9781SMoriah.Waterland@Sun.COM #define	MSG_PEM_PASSPROMPT	gettext(\
103*9781SMoriah.Waterland@Sun.COM 	"Enter PEM Passphrase: ")
104*9781SMoriah.Waterland@Sun.COM 
105*9781SMoriah.Waterland@Sun.COM #define	MSG_ERROR		gettext(\
106*9781SMoriah.Waterland@Sun.COM 	"ERROR")
107*9781SMoriah.Waterland@Sun.COM 
108*9781SMoriah.Waterland@Sun.COM /* warnings */
109*9781SMoriah.Waterland@Sun.COM 
110*9781SMoriah.Waterland@Sun.COM #define	CREATE_PKGDIR_WARN	gettext(\
111*9781SMoriah.Waterland@Sun.COM 	"Creating directory <%s>\n")
112*9781SMoriah.Waterland@Sun.COM 
113*9781SMoriah.Waterland@Sun.COM #define	MSG_WRN_UNKNOWN	gettext(\
114*9781SMoriah.Waterland@Sun.COM 	"Signer <%s> has unsupported signature, ignoring")
115*9781SMoriah.Waterland@Sun.COM 
116*9781SMoriah.Waterland@Sun.COM #define	MSG_VALID_STALE		gettext(\
117*9781SMoriah.Waterland@Sun.COM 	"Removing stale lock on <%s> pid <%ld> zid <%ld>")
118*9781SMoriah.Waterland@Sun.COM 
119*9781SMoriah.Waterland@Sun.COM /* errors */
120*9781SMoriah.Waterland@Sun.COM 
121*9781SMoriah.Waterland@Sun.COM #define	MSG_FATAL			gettext(\
122*9781SMoriah.Waterland@Sun.COM 	"Fatal Error")
123*9781SMoriah.Waterland@Sun.COM 
124*9781SMoriah.Waterland@Sun.COM #define	MSG_TOO_LONG			gettext(\
125*9781SMoriah.Waterland@Sun.COM 	"Length of <%s> exceeds maximum allowed length")
126*9781SMoriah.Waterland@Sun.COM 
127*9781SMoriah.Waterland@Sun.COM #define	MSG_INTERNAL			gettext(\
128*9781SMoriah.Waterland@Sun.COM 	"Intenal Error <%s>")
129*9781SMoriah.Waterland@Sun.COM 
130*9781SMoriah.Waterland@Sun.COM #define	MSG_OPEN			gettext(\
131*9781SMoriah.Waterland@Sun.COM 	"Cannot open <%s> for reading")
132*9781SMoriah.Waterland@Sun.COM 
133*9781SMoriah.Waterland@Sun.COM #define	MSG_OPEN_WRITE			gettext(\
134*9781SMoriah.Waterland@Sun.COM 	"Cannot open <%s> for writing")
135*9781SMoriah.Waterland@Sun.COM 
136*9781SMoriah.Waterland@Sun.COM #define	MSG_BAD_PASSARG			gettext(\
137*9781SMoriah.Waterland@Sun.COM 	"Invalid password retrieval method <%s>")
138*9781SMoriah.Waterland@Sun.COM 
139*9781SMoriah.Waterland@Sun.COM #define	MSG_BAD_PASS			gettext(\
140*9781SMoriah.Waterland@Sun.COM 	"Invalid password")
141*9781SMoriah.Waterland@Sun.COM 
142*9781SMoriah.Waterland@Sun.COM #define	ERR_LOG_FAIL			gettext(\
143*9781SMoriah.Waterland@Sun.COM 	"Failed to log message using format <%s>")
144*9781SMoriah.Waterland@Sun.COM 
145*9781SMoriah.Waterland@Sun.COM #define	MSG_BAD_FORMAT			gettext(\
146*9781SMoriah.Waterland@Sun.COM 	"Invalid format: <%s>")
147*9781SMoriah.Waterland@Sun.COM 
148*9781SMoriah.Waterland@Sun.COM #define	MSG_USER_NAME			gettext(\
149*9781SMoriah.Waterland@Sun.COM 	"An alias is required when adding user certificates")
150*9781SMoriah.Waterland@Sun.COM 
151*9781SMoriah.Waterland@Sun.COM #define	MSG_TRUSTED_NAME		gettext(\
152*9781SMoriah.Waterland@Sun.COM 	"Trusted certificates cannot have an explicit alias")
153*9781SMoriah.Waterland@Sun.COM 
154*9781SMoriah.Waterland@Sun.COM #define	MSG_MULTIPLE_TRUST		gettext(\
155*9781SMoriah.Waterland@Sun.COM 	"Found multiple certificates in <%s>.  You must explicitly trust " \
156*9781SMoriah.Waterland@Sun.COM 	"them using <%s>")
157*9781SMoriah.Waterland@Sun.COM 
158*9781SMoriah.Waterland@Sun.COM #define	MSG_NO_MULTIPLE_TRUST		gettext(\
159*9781SMoriah.Waterland@Sun.COM 	"Found multiple certificates in <%s>.  You must explicitly trust " \
160*9781SMoriah.Waterland@Sun.COM 	"them using <%s>")
161*9781SMoriah.Waterland@Sun.COM 
162*9781SMoriah.Waterland@Sun.COM #define	MSG_TRUSTED_KEY			gettext(\
163*9781SMoriah.Waterland@Sun.COM 	"Cannot supply private key when adding trusted certificates")
164*9781SMoriah.Waterland@Sun.COM 
165*9781SMoriah.Waterland@Sun.COM #define	MSG_TRUST_KEY_FOUND		gettext(\
166*9781SMoriah.Waterland@Sun.COM 	"One or more private keys were found in trusted certificate file <%s>")
167*9781SMoriah.Waterland@Sun.COM 
168*9781SMoriah.Waterland@Sun.COM #define	MSG_ADDCERT_ABORT		gettext(\
169*9781SMoriah.Waterland@Sun.COM 	"Addition of trusted certificate aborted by user request")
170*9781SMoriah.Waterland@Sun.COM 
171*9781SMoriah.Waterland@Sun.COM 
172*9781SMoriah.Waterland@Sun.COM #define	MSG_NEED_KEY			gettext(\
173*9781SMoriah.Waterland@Sun.COM 	"No private key found in <%s>, must specify one with -e")
174*9781SMoriah.Waterland@Sun.COM 
175*9781SMoriah.Waterland@Sun.COM #define	MSG_NO_PRIVKEY		gettext(\
176*9781SMoriah.Waterland@Sun.COM 	"No private key found in <%s>")
177*9781SMoriah.Waterland@Sun.COM 
178*9781SMoriah.Waterland@Sun.COM #define	MSG_NO_CERTS		gettext(\
179*9781SMoriah.Waterland@Sun.COM 	"No certificates found in <%s>")
180*9781SMoriah.Waterland@Sun.COM 
181*9781SMoriah.Waterland@Sun.COM #define	MSG_MULTIPLE_CERTS	gettext(\
182*9781SMoriah.Waterland@Sun.COM 	"Multiple certificates found in <%s>")
183*9781SMoriah.Waterland@Sun.COM 
184*9781SMoriah.Waterland@Sun.COM #define	MSG_NO_ADDCERT	gettext(\
185*9781SMoriah.Waterland@Sun.COM 	"Cannot add certificate(s) from <%s>.  No changes have been made.")
186*9781SMoriah.Waterland@Sun.COM 
187*9781SMoriah.Waterland@Sun.COM #define	MSG_NO_ADDKEY	gettext(\
188*9781SMoriah.Waterland@Sun.COM 	"Cannot add private key from <%s>.  No changes have been made.")
189*9781SMoriah.Waterland@Sun.COM 
190*9781SMoriah.Waterland@Sun.COM #define	MSG_NO_REMOVECERT	gettext(\
191*9781SMoriah.Waterland@Sun.COM 	"Cannot remove certificate with alias <%s>")
192*9781SMoriah.Waterland@Sun.COM 
193*9781SMoriah.Waterland@Sun.COM #define	MSG_VERIFY_TRUST	gettext(\
194*9781SMoriah.Waterland@Sun.COM 	"Are you sure you want to trust this certificate? ")
195*9781SMoriah.Waterland@Sun.COM 
196*9781SMoriah.Waterland@Sun.COM #define	MSG_VERIFY_NOT_CA	gettext(\
197*9781SMoriah.Waterland@Sun.COM 	"\n" \
198*9781SMoriah.Waterland@Sun.COM 	"This certificate does not appear to be issued and signed\n" \
199*9781SMoriah.Waterland@Sun.COM 	"by a certificate authority (CA). CA Certificates are normally\n" \
200*9781SMoriah.Waterland@Sun.COM 	"self-signed and have CA Basic Constraints.\n" \
201*9781SMoriah.Waterland@Sun.COM 	"Are you sure you want to trust this certificate? ")
202*9781SMoriah.Waterland@Sun.COM 
203*9781SMoriah.Waterland@Sun.COM #define	MSG_PARSE	gettext(\
204*9781SMoriah.Waterland@Sun.COM 	"Parsing error")
205*9781SMoriah.Waterland@Sun.COM 
206*9781SMoriah.Waterland@Sun.COM #define	MSG_TRUSTED	gettext(\
207*9781SMoriah.Waterland@Sun.COM 	"Certificate(s) from <%s> are now trusted")
208*9781SMoriah.Waterland@Sun.COM 
209*9781SMoriah.Waterland@Sun.COM #define	MSG_TRUSTING	gettext(\
210*9781SMoriah.Waterland@Sun.COM 	"Trusting certificate <%s>")
211*9781SMoriah.Waterland@Sun.COM 
212*9781SMoriah.Waterland@Sun.COM #define	MSG_ADDED	gettext(\
213*9781SMoriah.Waterland@Sun.COM 	"Successfully added Certificate <%s> with alias <%s>")
214*9781SMoriah.Waterland@Sun.COM 
215*9781SMoriah.Waterland@Sun.COM #define	MSG_REMOVED	gettext(\
216*9781SMoriah.Waterland@Sun.COM 	"Successfully removed Certificate(s) with alias <%s>")
217*9781SMoriah.Waterland@Sun.COM 
218*9781SMoriah.Waterland@Sun.COM #define	MSG_MEM		gettext(\
219*9781SMoriah.Waterland@Sun.COM 	"Out of memory")
220*9781SMoriah.Waterland@Sun.COM 
221*9781SMoriah.Waterland@Sun.COM #define	MSG_PRINT		gettext(\
222*9781SMoriah.Waterland@Sun.COM 	"Cannot print certificates to <%s>")
223*9781SMoriah.Waterland@Sun.COM 
224*9781SMoriah.Waterland@Sun.COM #define	MSG_PROBLEM_CONVERT	gettext(\
225*9781SMoriah.Waterland@Sun.COM 	"Does %s/var/sadm exist?  Can the user write to it? (%s)")
226*9781SMoriah.Waterland@Sun.COM 
227*9781SMoriah.Waterland@Sun.COM #define	MSG_CONTENTS_FORMAT	gettext(\
228*9781SMoriah.Waterland@Sun.COM 	"Operation failed due to corrupted install contents data file.")
229*9781SMoriah.Waterland@Sun.COM 
230*9781SMoriah.Waterland@Sun.COM #define	MSG_MKDIR_FAILED	gettext(\
231*9781SMoriah.Waterland@Sun.COM 	"Could not mkdir for path %s.  %s.")
232*9781SMoriah.Waterland@Sun.COM 
233*9781SMoriah.Waterland@Sun.COM #define	MSG_RENAME_FAILED	gettext(\
234*9781SMoriah.Waterland@Sun.COM 	"Could not rename %s to %s\n%s")
235*9781SMoriah.Waterland@Sun.COM 
236*9781SMoriah.Waterland@Sun.COM #define	MSG_REMOVE_FAILED	gettext(\
237*9781SMoriah.Waterland@Sun.COM 	"Could not remove %s\n%s")
238*9781SMoriah.Waterland@Sun.COM 
239*9781SMoriah.Waterland@Sun.COM #define	MSG_FILE_ACCESS		gettext(\
240*9781SMoriah.Waterland@Sun.COM 	"Operation failed: unable to access file %s: %s")
241*9781SMoriah.Waterland@Sun.COM 
242*9781SMoriah.Waterland@Sun.COM #define	MSG_NOT_READABLE	gettext(\
243*9781SMoriah.Waterland@Sun.COM 	"Operation failed: unable to read file %s")
244*9781SMoriah.Waterland@Sun.COM 
245*9781SMoriah.Waterland@Sun.COM #define	MSG_PATCH_UPGD gettext(\
246*9781SMoriah.Waterland@Sun.COM 	"Operation failed: unable to process patch information\n")
247*9781SMoriah.Waterland@Sun.COM 
248*9781SMoriah.Waterland@Sun.COM #define	MSG_BUILD_INDEXES gettext(\
249*9781SMoriah.Waterland@Sun.COM 	"Operation failed: unable to build indexes\n")
250*9781SMoriah.Waterland@Sun.COM 
251*9781SMoriah.Waterland@Sun.COM #define	MSG_FILE_NAME_TOO_LONG gettext(\
252*9781SMoriah.Waterland@Sun.COM 	"Operation failed: file name too long: %s\n")
253*9781SMoriah.Waterland@Sun.COM 
254*9781SMoriah.Waterland@Sun.COM #define	MSG_ZONES_MISSING_REQUEST	gettext(\
255*9781SMoriah.Waterland@Sun.COM 	"Must specify operation to perform\n")
256*9781SMoriah.Waterland@Sun.COM 
257*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ALTROOT_CANTCREATE	gettext(\
258*9781SMoriah.Waterland@Sun.COM 	"lock: cannot create alternative root directory <%s>: %s\n")
259*9781SMoriah.Waterland@Sun.COM 
260*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ALTROOT_NONEXIST	gettext(\
261*9781SMoriah.Waterland@Sun.COM 	"lock: argument to -R <%s> is not a directory: %s\n")
262*9781SMoriah.Waterland@Sun.COM 
263*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ROOTDIR_INVALID	gettext(\
264*9781SMoriah.Waterland@Sun.COM 	"lock: lock file base directory <%s> not valid: %s\n")
265*9781SMoriah.Waterland@Sun.COM 
266*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_WFLAG_BADINT	gettext(\
267*9781SMoriah.Waterland@Sun.COM 	"The integer value <%s> given to the -W option includes an " \
268*9781SMoriah.Waterland@Sun.COM 	"invalid character: \"%c\"\n")
269*9781SMoriah.Waterland@Sun.COM 
270*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_pFLAG_BADINT	gettext(\
271*9781SMoriah.Waterland@Sun.COM 	"The integer value <%s> given to the -p option includes an " \
272*9781SMoriah.Waterland@Sun.COM 	"invalid character: \"%c\"\n")
273*9781SMoriah.Waterland@Sun.COM 
274*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_zFLAG_BADINT	gettext(\
275*9781SMoriah.Waterland@Sun.COM 	"The integer value <%s> given to the -z option includes an " \
276*9781SMoriah.Waterland@Sun.COM 	"invalid character: \"%c\"\n")
277*9781SMoriah.Waterland@Sun.COM 
278*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_nFLAG_BADINT	gettext(\
279*9781SMoriah.Waterland@Sun.COM 	"The integer value <%s> given to the -n option includes an " \
280*9781SMoriah.Waterland@Sun.COM 	"invalid character: \"%c\"\n")
281*9781SMoriah.Waterland@Sun.COM 
282*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ar_TOGETHER	gettext(\
283*9781SMoriah.Waterland@Sun.COM 	"lock: The -a and -r options cannot be used together: "\
284*9781SMoriah.Waterland@Sun.COM 	"specify only one.\n")
285*9781SMoriah.Waterland@Sun.COM 
286*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_kARG_TOOLONG	gettext(\
287*9781SMoriah.Waterland@Sun.COM 	"Argument to -k is <%d> characters: may not exceed <%d> characters\n")
288*9781SMoriah.Waterland@Sun.COM 
289*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_oARG_TOOLONG	gettext(\
290*9781SMoriah.Waterland@Sun.COM 	"Argument to -o is <%d> characters: may not exceed <%d> characters\n")
291*9781SMoriah.Waterland@Sun.COM 
292*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RARG_NOT_ABSOLUTE	gettext(\
293*9781SMoriah.Waterland@Sun.COM 	"Argument to -R must be absolute path: %s")
294*9781SMoriah.Waterland@Sun.COM 
295*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_WFLAG_ERROR	gettext(\
296*9781SMoriah.Waterland@Sun.COM 	"Argument to -W has problem with wait interval <%s>: %s")
297*9781SMoriah.Waterland@Sun.COM 
298*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_pFLAG_ERROR	gettext(\
299*9781SMoriah.Waterland@Sun.COM 	"Argument to -p has problem with process i.d. value <%s>: %s")
300*9781SMoriah.Waterland@Sun.COM 
301*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_zFLAG_ERROR	gettext(\
302*9781SMoriah.Waterland@Sun.COM 	"Argument to -p has problem with zone i.d. value <%s>: %s")
303*9781SMoriah.Waterland@Sun.COM 
304*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_nFLAG_ERROR	gettext(\
305*9781SMoriah.Waterland@Sun.COM 	"Argument to -n has problem with maximum number of retries " \
306*9781SMoriah.Waterland@Sun.COM 	"value <%s>: %s")
307*9781SMoriah.Waterland@Sun.COM 
308*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_es_TOGETHER	gettext(\
309*9781SMoriah.Waterland@Sun.COM 	"lock: The -e and -s options cannot be used together: "\
310*9781SMoriah.Waterland@Sun.COM 	"specify only one.\n")
311*9781SMoriah.Waterland@Sun.COM 
312*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ak_TOGETHER	gettext(\
313*9781SMoriah.Waterland@Sun.COM 	"lock: The -k option cannot be used with the -a option.\n")
314*9781SMoriah.Waterland@Sun.COM 
315*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_e_without_a	gettext(\
316*9781SMoriah.Waterland@Sun.COM 	"lock: The -e option can only be used with the -a option.\n")
317*9781SMoriah.Waterland@Sun.COM 
318*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_s_without_a	gettext(\
319*9781SMoriah.Waterland@Sun.COM 	"lock: The -s option can only be used with the -a option.\n")
320*9781SMoriah.Waterland@Sun.COM 
321*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_KEYMISMATCH	gettext(\
322*9781SMoriah.Waterland@Sun.COM 	"cannot acquire %s lock on <%s>: object locked and specified key " \
323*9781SMoriah.Waterland@Sun.COM 	"does not match")
324*9781SMoriah.Waterland@Sun.COM 
325*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_ERROR	gettext(\
326*9781SMoriah.Waterland@Sun.COM 	"cannot determine if object <%s> key <%s> is locked: %s")
327*9781SMoriah.Waterland@Sun.COM 
328*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_TIMEDOUT	gettext(\
329*9781SMoriah.Waterland@Sun.COM 	"cannot acquire %s lock on <%s> key <%s>: object locked, no key " \
330*9781SMoriah.Waterland@Sun.COM 	"was specified, and the wait timed out")
331*9781SMoriah.Waterland@Sun.COM 
332*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_WAITING	gettext(\
333*9781SMoriah.Waterland@Sun.COM 	"object <%s> is locked: waiting for object to become available")
334*9781SMoriah.Waterland@Sun.COM 
335*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_REOPEN_FAILED	gettext(\
336*9781SMoriah.Waterland@Sun.COM 	"cannot reopen lock file after waiting for lock on object " \
337*9781SMoriah.Waterland@Sun.COM 	"<%s> to be released")
338*9781SMoriah.Waterland@Sun.COM 
339*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_NOTLOCKED	gettext(\
340*9781SMoriah.Waterland@Sun.COM 	"cannot release lock on <%s> key <%s>: object not locked and " \
341*9781SMoriah.Waterland@Sun.COM 	"a key was specified")
342*9781SMoriah.Waterland@Sun.COM 
343*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_LOCKED		gettext(\
344*9781SMoriah.Waterland@Sun.COM 	"cannot release lock on <%s> key <%s>: object locked but no " \
345*9781SMoriah.Waterland@Sun.COM 	"key was specified")
346*9781SMoriah.Waterland@Sun.COM 
347*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_NOTFOUND	gettext(\
348*9781SMoriah.Waterland@Sun.COM 	"cannot release lock on <%s> key <%s>: object is not locked")
349*9781SMoriah.Waterland@Sun.COM 
350*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_KEYMISMATCH	gettext(\
351*9781SMoriah.Waterland@Sun.COM 	"cannot release lock on <%s>: object locked and specified key " \
352*9781SMoriah.Waterland@Sun.COM 	"does not match")
353*9781SMoriah.Waterland@Sun.COM 
354*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_ERROR		gettext(\
355*9781SMoriah.Waterland@Sun.COM 	"cannot determine if object <%s> key <%s> is locked")
356*9781SMoriah.Waterland@Sun.COM 
357*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_EXEC_ACCESS	gettext(\
358*9781SMoriah.Waterland@Sun.COM 	"cannot execute command <%s>: %s")
359*9781SMoriah.Waterland@Sun.COM 
360*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_EXEC_NOINPUT	gettext(\
361*9781SMoriah.Waterland@Sun.COM 	"cannot open input file <%s>: %s")
362*9781SMoriah.Waterland@Sun.COM 
363*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_EXEC_NOPIPE	gettext(\
364*9781SMoriah.Waterland@Sun.COM 	"cannot create pipe: %s")
365*9781SMoriah.Waterland@Sun.COM 
366*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_FINDLOCK_LSEEK_FAILURE	gettext(\
367*9781SMoriah.Waterland@Sun.COM 	"cannot find lock <%s> key <%s>: lseek failure: %s")
368*9781SMoriah.Waterland@Sun.COM 
369*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ADDLOCK_PWRITE_FAILURE	gettext(\
370*9781SMoriah.Waterland@Sun.COM 	"cannot create %s lock for object <%s>: pwrite failure: %s")
371*9781SMoriah.Waterland@Sun.COM 
372*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ADDLOCK_LSEEK_FAILURE	gettext(\
373*9781SMoriah.Waterland@Sun.COM 	"cannot create %s lock for object <%s>: lseek failure: %s")
374*9781SMoriah.Waterland@Sun.COM 
375*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_INCLOCK_PWRITE_FAILURE	gettext(\
376*9781SMoriah.Waterland@Sun.COM 	"cannot increment %s lock for object <%s>: pwrite failure: %s")
377*9781SMoriah.Waterland@Sun.COM 
378*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_PWRITE_FAILURE	gettext(\
379*9781SMoriah.Waterland@Sun.COM 	"cannot decrement %s lock for object <%s>: pwrite failure: %s")
380*9781SMoriah.Waterland@Sun.COM 
381*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_PREAD_FAILURE	gettext(\
382*9781SMoriah.Waterland@Sun.COM 	"cannot decrement %s lock for object <%s>: pread failure: %s")
383*9781SMoriah.Waterland@Sun.COM 
384*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_LSEEK_FAILURE	gettext(\
385*9781SMoriah.Waterland@Sun.COM 	"cannot decrement %s lock for object <%s>: lseek failure: %s")
386*9781SMoriah.Waterland@Sun.COM 
387*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_FTRUNCATE_FAILURE	gettext(\
388*9781SMoriah.Waterland@Sun.COM 	"cannot decrement %s lock for object <%s>: ftruncate failure: %s")
389*9781SMoriah.Waterland@Sun.COM 
390*9781SMoriah.Waterland@Sun.COM /*
391*9781SMoriah.Waterland@Sun.COM  * i18n:
392*9781SMoriah.Waterland@Sun.COM  * next two messages grouped together
393*9781SMoriah.Waterland@Sun.COM  */
394*9781SMoriah.Waterland@Sun.COM 
395*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_BUSY_QUASI	gettext(\
396*9781SMoriah.Waterland@Sun.COM 	"cannot acquire %s lock on <%s> key <%s>: object matches wildcard " \
397*9781SMoriah.Waterland@Sun.COM 	"<%s> lock%s")
398*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_BUSY_FIRST	gettext(\
399*9781SMoriah.Waterland@Sun.COM 	"cannot acquire %s lock on <%s> key <%s>: object <%s> is locked <%s>%s")
400*9781SMoriah.Waterland@Sun.COM 
401*9781SMoriah.Waterland@Sun.COM /*
402*9781SMoriah.Waterland@Sun.COM  * i18n: note this message may be appended to the previous message
403*9781SMoriah.Waterland@Sun.COM  * by supplying it to the final "%s" at the end of the line above;
404*9781SMoriah.Waterland@Sun.COM  * that is either:
405*9781SMoriah.Waterland@Sun.COM  *  cannot acquire %s lock on <%s> key <%s>: object is locked <%s>
406*9781SMoriah.Waterland@Sun.COM  * or:
407*9781SMoriah.Waterland@Sun.COM  *  cannot acquire %s lock on <%s> [...] is locked <%s> and no key specified
408*9781SMoriah.Waterland@Sun.COM  */
409*9781SMoriah.Waterland@Sun.COM 
410*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_BUSY_ADDITIONAL	gettext(\
411*9781SMoriah.Waterland@Sun.COM 	" and no key specified")
412*9781SMoriah.Waterland@Sun.COM 
413*9781SMoriah.Waterland@Sun.COM /*
414*9781SMoriah.Waterland@Sun.COM  * i18n: note these two "messages" are inserted into other
415*9781SMoriah.Waterland@Sun.COM  * messages, such as:
416*9781SMoriah.Waterland@Sun.COM  * 	cannot acquire %s lock on <%s>
417*9781SMoriah.Waterland@Sun.COM  * will be either:
418*9781SMoriah.Waterland@Sun.COM  *	cannot acquire shared lock on <%s>
419*9781SMoriah.Waterland@Sun.COM  * or
420*9781SMoriah.Waterland@Sun.COM  *	cannot acquire exclusive lock on <%s>
421*9781SMoriah.Waterland@Sun.COM  */
422*9781SMoriah.Waterland@Sun.COM 
423*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_EXC	gettext(\
424*9781SMoriah.Waterland@Sun.COM 	"exclusive")
425*9781SMoriah.Waterland@Sun.COM 
426*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_SHR		gettext(\
427*9781SMoriah.Waterland@Sun.COM 	"shared")
428*9781SMoriah.Waterland@Sun.COM 
429*9781SMoriah.Waterland@Sun.COM /*
430*9781SMoriah.Waterland@Sun.COM  * i18n: note these messages are "debugging" messages and will normally
431*9781SMoriah.Waterland@Sun.COM  * not be seen unless debugging has been enabled for problem root causing
432*9781SMoriah.Waterland@Sun.COM  * so they are not meant to be perfectly "human readable"
433*9781SMoriah.Waterland@Sun.COM  */
434*9781SMoriah.Waterland@Sun.COM 
435*9781SMoriah.Waterland@Sun.COM #define	MSG_VALID_NOPID		gettext(\
436*9781SMoriah.Waterland@Sun.COM 	"validate lock <%s>: VALID (no pid)")
437*9781SMoriah.Waterland@Sun.COM 
438*9781SMoriah.Waterland@Sun.COM #define	MSG_VALID_BADZID	gettext(\
439*9781SMoriah.Waterland@Sun.COM 	"validate lock <%s>: VALID (lock zid <%ld> this zid <%ld>)")
440*9781SMoriah.Waterland@Sun.COM 
441*9781SMoriah.Waterland@Sun.COM #define	MSG_VALID_ZIDOK	gettext(\
442*9781SMoriah.Waterland@Sun.COM 	"validate lock <%s>: zone i.d.s match (lock zid <%ld> this zid <%ld>)")
443*9781SMoriah.Waterland@Sun.COM 
444*9781SMoriah.Waterland@Sun.COM #define	MSG_VALID_OK		gettext(\
445*9781SMoriah.Waterland@Sun.COM 	"validate lock <%s> pid <%ld> path <%s>: VALID")
446*9781SMoriah.Waterland@Sun.COM 
447*9781SMoriah.Waterland@Sun.COM #define	MSG_VALID_NOTOK		gettext(\
448*9781SMoriah.Waterland@Sun.COM 	"validate lock <%s> pid <%ld> path <%s>: NOT VALID")
449*9781SMoriah.Waterland@Sun.COM 
450*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_ENTRY	gettext(\
451*9781SMoriah.Waterland@Sun.COM 	"lockMatch: *** BEGIN *** compare objects <%s> <%s>")
452*9781SMoriah.Waterland@Sun.COM 
453*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_FSTNODE	gettext(\
454*9781SMoriah.Waterland@Sun.COM 	"lockMatch: first lock node (%d) <%s>")
455*9781SMoriah.Waterland@Sun.COM 
456*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_SCNDNODE	gettext(\
457*9781SMoriah.Waterland@Sun.COM 	"lockMatch: second lock node (%d) <%s>")
458*9781SMoriah.Waterland@Sun.COM 
459*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_NODES	gettext(\
460*9781SMoriah.Waterland@Sun.COM 	"lockMatch: first lock node <%s> prefix <%s> (%d) second lock " \
461*9781SMoriah.Waterland@Sun.COM 	" node <%s> prefix <%s> (%d)")
462*9781SMoriah.Waterland@Sun.COM 
463*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_DIRMCH	gettext(\
464*9781SMoriah.Waterland@Sun.COM 	"lockMatch: no prefix direct comparison: match: <%s> <%s>")
465*9781SMoriah.Waterland@Sun.COM 
466*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_DIRNOMCH	gettext(\
467*9781SMoriah.Waterland@Sun.COM 	"lockMatch: no prefix direct comparison: NO MATCH: <%s> <%s>")
468*9781SMoriah.Waterland@Sun.COM 
469*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_PFXMCH	gettext(\
470*9781SMoriah.Waterland@Sun.COM 	"lockMatch: prefix comparison: match: <%s> <%s>")
471*9781SMoriah.Waterland@Sun.COM 
472*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_PFXNOMCH	gettext(\
473*9781SMoriah.Waterland@Sun.COM 	"lockMatch: prefix comparison: NO MATCH: <%s> <%s>")
474*9781SMoriah.Waterland@Sun.COM 
475*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_FSTLCK	gettext(\
476*9781SMoriah.Waterland@Sun.COM 	"lockMatch: first lock index (%d) last scanned node <%s> prefix " \
477*9781SMoriah.Waterland@Sun.COM 	"<%s> (%d)")
478*9781SMoriah.Waterland@Sun.COM 
479*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_SCNDLCK	gettext(\
480*9781SMoriah.Waterland@Sun.COM 	"lockMatch: second lock index (%d) last scanned node <%s> prefix " \
481*9781SMoriah.Waterland@Sun.COM 	"<%s> (%d)")
482*9781SMoriah.Waterland@Sun.COM 
483*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_ABSNOMCH	gettext(\
484*9781SMoriah.Waterland@Sun.COM 	"lockMatch: absolute locks: NO MATCH: <%s> <%s>")
485*9781SMoriah.Waterland@Sun.COM 
486*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_OBJMCH	gettext(\
487*9781SMoriah.Waterland@Sun.COM 	"lockMatch: object locks: match: <%s> <%s>")
488*9781SMoriah.Waterland@Sun.COM 
489*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_OVLPNOMCH	gettext(\
490*9781SMoriah.Waterland@Sun.COM 	"lockMatch: nonmatching overlapping objects: <%s> <%s> before " \
491*9781SMoriah.Waterland@Sun.COM 	"(%d) <%s>")
492*9781SMoriah.Waterland@Sun.COM 
493*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_SAME	gettext(\
494*9781SMoriah.Waterland@Sun.COM 	"lockMatch: locks begin with same node - compare: <%s> <%s> at <%s>")
495*9781SMoriah.Waterland@Sun.COM 
496*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_SCNDSUB	gettext(\
497*9781SMoriah.Waterland@Sun.COM 	"lockMatch: second lock <%s> subset of <%s> at (%d) <%s>")
498*9781SMoriah.Waterland@Sun.COM 
499*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_FRSTSUB	gettext(\
500*9781SMoriah.Waterland@Sun.COM 	"lockMatch: first lock <%s> subset of <%s> at (%d) <%s>")
501*9781SMoriah.Waterland@Sun.COM 
502*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_DONTKNOW	gettext(\
503*9781SMoriah.Waterland@Sun.COM 	"lockMatch: unable to determine how to compare locks: <%s> <%s>: " \
504*9781SMoriah.Waterland@Sun.COM 	"using direct comparision")
505*9781SMoriah.Waterland@Sun.COM 
506*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_READY	gettext(\
507*9781SMoriah.Waterland@Sun.COM 	"lockMatch: comparing nodes locks <%s> <%s>")
508*9781SMoriah.Waterland@Sun.COM 
509*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_NODEFAIL	gettext(\
510*9781SMoriah.Waterland@Sun.COM 	"lockMatch: node (%d) comparison: NO MATCH: <%s> != <%s>")
511*9781SMoriah.Waterland@Sun.COM 
512*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_NODEOK	gettext(\
513*9781SMoriah.Waterland@Sun.COM 	"lockMatch: node (%d) comparision: match: <%s> == <%s>")
514*9781SMoriah.Waterland@Sun.COM 
515*9781SMoriah.Waterland@Sun.COM #define	MSG_LCKMCH_MATCHOK	gettext(\
516*9781SMoriah.Waterland@Sun.COM 	"lockMatch: locks match: <%s> == <%s>")
517*9781SMoriah.Waterland@Sun.COM 
518*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_EXEC_RESULTS	gettext(\
519*9781SMoriah.Waterland@Sun.COM 	"command <%s> executed: pid <%d> errno <0x%04x> status <0x%04x> " \
520*9781SMoriah.Waterland@Sun.COM 	"final status <0x%04x> output <%s>")
521*9781SMoriah.Waterland@Sun.COM 
522*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_GENUID_MAKEUUID	gettext(\
523*9781SMoriah.Waterland@Sun.COM 	"generated new unique key using makeuuid: %s")
524*9781SMoriah.Waterland@Sun.COM 
525*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_GENUID_INTERNAL	gettext(\
526*9781SMoriah.Waterland@Sun.COM 	"generated new unique key using date: %s")
527*9781SMoriah.Waterland@Sun.COM 
528*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_DECING	gettext(\
529*9781SMoriah.Waterland@Sun.COM 	"decrement <%s> lock count record <%d> count <%d>")
530*9781SMoriah.Waterland@Sun.COM 
531*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_DONE	gettext(\
532*9781SMoriah.Waterland@Sun.COM 	"decrement lock record <%d> count <%d> object <%s> key <%s>")
533*9781SMoriah.Waterland@Sun.COM 
534*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_REMOVE	gettext(\
535*9781SMoriah.Waterland@Sun.COM 	"decrement lock remove record lastPos %ld last record %d " \
536*9781SMoriah.Waterland@Sun.COM 	"current record %d")
537*9781SMoriah.Waterland@Sun.COM 
538*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_LASTONE	gettext(\
539*9781SMoriah.Waterland@Sun.COM 	"decrement lock removing <%s> lock last record <%d> " \
540*9781SMoriah.Waterland@Sun.COM 	"truncating to <%ld>")
541*9781SMoriah.Waterland@Sun.COM 
542*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_DECLOCK_REMOVING	gettext(\
543*9781SMoriah.Waterland@Sun.COM 	"decrement lock removing record <%d> last record <%d> " \
544*9781SMoriah.Waterland@Sun.COM 	"truncating to <%ld>")
545*9781SMoriah.Waterland@Sun.COM 
546*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_INCLOCK_ENTRY	gettext(\
547*9781SMoriah.Waterland@Sun.COM 	"increment <%s> lock count record <%d> count <%d>")
548*9781SMoriah.Waterland@Sun.COM 
549*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_INCLOCK_DONE	gettext(\
550*9781SMoriah.Waterland@Sun.COM 	"increment lock record <%d> count <%d> object <%s> key <%s>")
551*9781SMoriah.Waterland@Sun.COM 
552*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ADDLOCK_ADDING	gettext(\
553*9781SMoriah.Waterland@Sun.COM 	"adding %s lock pos <%d> object <%s> key <%s> pid <%ld> zid <%ld>")
554*9781SMoriah.Waterland@Sun.COM 
555*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_FINDLOCK_ENTRY	gettext(\
556*9781SMoriah.Waterland@Sun.COM 	"find lock object <%s> key <%s>")
557*9781SMoriah.Waterland@Sun.COM 
558*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_FINDLOCK_READRECORD	gettext(\
559*9781SMoriah.Waterland@Sun.COM 	"find lock read record <%d>: count <%d> object <%s> key <%s> pid " \
560*9781SMoriah.Waterland@Sun.COM 	"<%ld> zid <%ld>")
561*9781SMoriah.Waterland@Sun.COM 
562*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_FINDLOCK_FOUND	gettext(\
563*9781SMoriah.Waterland@Sun.COM 	"find lock record found")
564*9781SMoriah.Waterland@Sun.COM 
565*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_FINDLOCK_NOTFOUND	gettext(\
566*9781SMoriah.Waterland@Sun.COM 	"find lock record not found")
567*9781SMoriah.Waterland@Sun.COM 
568*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_OPENFILE_ENTRY	gettext(\
569*9781SMoriah.Waterland@Sun.COM 	"open lock file root <%s> file <%s>")
570*9781SMoriah.Waterland@Sun.COM 
571*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_OPENFILE_SLEEPING	gettext(\
572*9781SMoriah.Waterland@Sun.COM 	"open lock file busy <%s>: sleeping <%d>")
573*9781SMoriah.Waterland@Sun.COM 
574*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_OPENFILE_FAILURE	gettext(\
575*9781SMoriah.Waterland@Sun.COM 	"open lock file could not be opened: %s")
576*9781SMoriah.Waterland@Sun.COM 
577*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_OPENFILE_SLEEP2	gettext(\
578*9781SMoriah.Waterland@Sun.COM 	"open lock file cannot obtain record lock <%s>: sleeping <%d>")
579*9781SMoriah.Waterland@Sun.COM 
580*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_OPENFILE_FAIL2	gettext(\
581*9781SMoriah.Waterland@Sun.COM 	"open lock file could not obtain record lock: <%s>")
582*9781SMoriah.Waterland@Sun.COM 
583*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_OPENFILE_SUCCESS	gettext(\
584*9781SMoriah.Waterland@Sun.COM 	"open lock file: opened and locked fd <%d>")
585*9781SMoriah.Waterland@Sun.COM 
586*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_STATUS_READRECORD	gettext(\
587*9781SMoriah.Waterland@Sun.COM 	"status read record <%d>: count <%d> object <%s> key <%s> pid <%ld> " \
588*9781SMoriah.Waterland@Sun.COM 	"zid <%ld>")
589*9781SMoriah.Waterland@Sun.COM 
590*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_STATUS_ENTRY	gettext(\
591*9781SMoriah.Waterland@Sun.COM 	"status key=<%s> object=<%s>")
592*9781SMoriah.Waterland@Sun.COM 
593*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_FOUND		gettext(\
594*9781SMoriah.Waterland@Sun.COM 	"object <%s> key <%s> is locked: decrementing lock count")
595*9781SMoriah.Waterland@Sun.COM 
596*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_ENTRY	gettext(\
597*9781SMoriah.Waterland@Sun.COM 	"release lock key=<%s> object=<%s> quiet=<%d>")
598*9781SMoriah.Waterland@Sun.COM 
599*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_RELEASE_FINDRESULT	gettext(\
600*9781SMoriah.Waterland@Sun.COM 	"release lock result <%d> record <%d>")
601*9781SMoriah.Waterland@Sun.COM 
602*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_FOUND_INC	gettext(\
603*9781SMoriah.Waterland@Sun.COM 	"object <%s> key <%s> is locked: incrementing <%s> lock count")
604*9781SMoriah.Waterland@Sun.COM 
605*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_ENTRY	gettext(\
606*9781SMoriah.Waterland@Sun.COM 	"acquire lock key=<%s> object=<%s> quiet=<%d> exclusive=<%d>")
607*9781SMoriah.Waterland@Sun.COM 
608*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_FINDRESULT	gettext(\
609*9781SMoriah.Waterland@Sun.COM 	"acquire %s lock result <%d> record <%d>")
610*9781SMoriah.Waterland@Sun.COM 
611*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_LOCKED_SHARED	gettext(\
612*9781SMoriah.Waterland@Sun.COM 	"object <%s> key <%s> is locked but shared: incrementing lock count")
613*9781SMoriah.Waterland@Sun.COM 
614*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_NOTLOCKED	gettext(\
615*9781SMoriah.Waterland@Sun.COM 	"cannot acquire %s lock on <%s> key <%s>: object not locked " \
616*9781SMoriah.Waterland@Sun.COM 	"and non-matching key specified")
617*9781SMoriah.Waterland@Sun.COM 
618*9781SMoriah.Waterland@Sun.COM #define	MSG_LOCK_ACQUIRE_NOTFOUND	gettext(\
619*9781SMoriah.Waterland@Sun.COM 	"acquiring %s lock on object <%s>")
620*9781SMoriah.Waterland@Sun.COM 
621*9781SMoriah.Waterland@Sun.COM #ifdef	__cplusplus
622*9781SMoriah.Waterland@Sun.COM }
623*9781SMoriah.Waterland@Sun.COM #endif
624*9781SMoriah.Waterland@Sun.COM 
625*9781SMoriah.Waterland@Sun.COM #endif /* _PKGADM_MSGS_H */
626