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