xref: /titanic_50/usr/src/cmd/svr4pkg/pkgadm/pkgadm_msgs.h (revision 33c41f2b7f5e60517664bd7f392221865f833526)
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_BUILD_INDEXES gettext(\
251 	"Operation failed: unable to build indexes\n")
252 
253 #define	MSG_FILE_NAME_TOO_LONG gettext(\
254 	"Operation failed: file name too long: %s\n")
255 
256 #define	MSG_ZONES_MISSING_REQUEST	gettext(\
257 	"Must specify operation to perform\n")
258 
259 #define	MSG_LOCK_ALTROOT_CANTCREATE	gettext(\
260 	"lock: cannot create alternative root directory <%s>: %s\n")
261 
262 #define	MSG_LOCK_ALTROOT_NONEXIST	gettext(\
263 	"lock: argument to -R <%s> is not a directory: %s\n")
264 
265 #define	MSG_LOCK_ROOTDIR_INVALID	gettext(\
266 	"lock: lock file base directory <%s> not valid: %s\n")
267 
268 #define	MSG_LOCK_WFLAG_BADINT	gettext(\
269 	"The integer value <%s> given to the -W option includes an " \
270 	"invalid character: \"%c\"\n")
271 
272 #define	MSG_LOCK_pFLAG_BADINT	gettext(\
273 	"The integer value <%s> given to the -p option includes an " \
274 	"invalid character: \"%c\"\n")
275 
276 #define	MSG_LOCK_zFLAG_BADINT	gettext(\
277 	"The integer value <%s> given to the -z option includes an " \
278 	"invalid character: \"%c\"\n")
279 
280 #define	MSG_LOCK_nFLAG_BADINT	gettext(\
281 	"The integer value <%s> given to the -n option includes an " \
282 	"invalid character: \"%c\"\n")
283 
284 #define	MSG_LOCK_ar_TOGETHER	gettext(\
285 	"lock: The -a and -r options cannot be used together: "\
286 	"specify only one.\n")
287 
288 #define	MSG_LOCK_kARG_TOOLONG	gettext(\
289 	"Argument to -k is <%d> characters: may not exceed <%d> characters\n")
290 
291 #define	MSG_LOCK_oARG_TOOLONG	gettext(\
292 	"Argument to -o is <%d> characters: may not exceed <%d> characters\n")
293 
294 #define	MSG_LOCK_RARG_NOT_ABSOLUTE	gettext(\
295 	"Argument to -R must be absolute path: %s")
296 
297 #define	MSG_LOCK_WFLAG_ERROR	gettext(\
298 	"Argument to -W has problem with wait interval <%s>: %s")
299 
300 #define	MSG_LOCK_pFLAG_ERROR	gettext(\
301 	"Argument to -p has problem with process i.d. value <%s>: %s")
302 
303 #define	MSG_LOCK_zFLAG_ERROR	gettext(\
304 	"Argument to -p has problem with zone i.d. value <%s>: %s")
305 
306 #define	MSG_LOCK_nFLAG_ERROR	gettext(\
307 	"Argument to -n has problem with maximum number of retries " \
308 	"value <%s>: %s")
309 
310 #define	MSG_LOCK_es_TOGETHER	gettext(\
311 	"lock: The -e and -s options cannot be used together: "\
312 	"specify only one.\n")
313 
314 #define	MSG_LOCK_ak_TOGETHER	gettext(\
315 	"lock: The -k option cannot be used with the -a option.\n")
316 
317 #define	MSG_LOCK_e_without_a	gettext(\
318 	"lock: The -e option can only be used with the -a option.\n")
319 
320 #define	MSG_LOCK_s_without_a	gettext(\
321 	"lock: The -s option can only be used with the -a option.\n")
322 
323 #define	MSG_LOCK_ACQUIRE_KEYMISMATCH	gettext(\
324 	"cannot acquire %s lock on <%s>: object locked and specified key " \
325 	"does not match")
326 
327 #define	MSG_LOCK_ACQUIRE_ERROR	gettext(\
328 	"cannot determine if object <%s> key <%s> is locked: %s")
329 
330 #define	MSG_LOCK_ACQUIRE_TIMEDOUT	gettext(\
331 	"cannot acquire %s lock on <%s> key <%s>: object locked, no key " \
332 	"was specified, and the wait timed out")
333 
334 #define	MSG_LOCK_ACQUIRE_WAITING	gettext(\
335 	"object <%s> is locked: waiting for object to become available")
336 
337 #define	MSG_LOCK_ACQUIRE_REOPEN_FAILED	gettext(\
338 	"cannot reopen lock file after waiting for lock on object " \
339 	"<%s> to be released")
340 
341 #define	MSG_LOCK_RELEASE_NOTLOCKED	gettext(\
342 	"cannot release lock on <%s> key <%s>: object not locked and " \
343 	"a key was specified")
344 
345 #define	MSG_LOCK_RELEASE_LOCKED		gettext(\
346 	"cannot release lock on <%s> key <%s>: object locked but no " \
347 	"key was specified")
348 
349 #define	MSG_LOCK_RELEASE_NOTFOUND	gettext(\
350 	"cannot release lock on <%s> key <%s>: object is not locked")
351 
352 #define	MSG_LOCK_RELEASE_KEYMISMATCH	gettext(\
353 	"cannot release lock on <%s>: object locked and specified key " \
354 	"does not match")
355 
356 #define	MSG_LOCK_RELEASE_ERROR		gettext(\
357 	"cannot determine if object <%s> key <%s> is locked")
358 
359 #define	MSG_LOCK_EXEC_ACCESS	gettext(\
360 	"cannot execute command <%s>: %s")
361 
362 #define	MSG_LOCK_EXEC_NOINPUT	gettext(\
363 	"cannot open input file <%s>: %s")
364 
365 #define	MSG_LOCK_EXEC_NOPIPE	gettext(\
366 	"cannot create pipe: %s")
367 
368 #define	MSG_LOCK_FINDLOCK_LSEEK_FAILURE	gettext(\
369 	"cannot find lock <%s> key <%s>: lseek failure: %s")
370 
371 #define	MSG_LOCK_ADDLOCK_PWRITE_FAILURE	gettext(\
372 	"cannot create %s lock for object <%s>: pwrite failure: %s")
373 
374 #define	MSG_LOCK_ADDLOCK_LSEEK_FAILURE	gettext(\
375 	"cannot create %s lock for object <%s>: lseek failure: %s")
376 
377 #define	MSG_LOCK_INCLOCK_PWRITE_FAILURE	gettext(\
378 	"cannot increment %s lock for object <%s>: pwrite failure: %s")
379 
380 #define	MSG_LOCK_DECLOCK_PWRITE_FAILURE	gettext(\
381 	"cannot decrement %s lock for object <%s>: pwrite failure: %s")
382 
383 #define	MSG_LOCK_DECLOCK_PREAD_FAILURE	gettext(\
384 	"cannot decrement %s lock for object <%s>: pread failure: %s")
385 
386 #define	MSG_LOCK_DECLOCK_LSEEK_FAILURE	gettext(\
387 	"cannot decrement %s lock for object <%s>: lseek failure: %s")
388 
389 #define	MSG_LOCK_DECLOCK_FTRUNCATE_FAILURE	gettext(\
390 	"cannot decrement %s lock for object <%s>: ftruncate failure: %s")
391 
392 /*
393  * i18n:
394  * next two messages grouped together
395  */
396 
397 #define	MSG_LOCK_ACQUIRE_BUSY_QUASI	gettext(\
398 	"cannot acquire %s lock on <%s> key <%s>: object matches wildcard " \
399 	"<%s> lock%s")
400 #define	MSG_LOCK_ACQUIRE_BUSY_FIRST	gettext(\
401 	"cannot acquire %s lock on <%s> key <%s>: object <%s> is locked <%s>%s")
402 
403 /*
404  * i18n: note this message may be appended to the previous message
405  * by supplying it to the final "%s" at the end of the line above;
406  * that is either:
407  *  cannot acquire %s lock on <%s> key <%s>: object is locked <%s>
408  * or:
409  *  cannot acquire %s lock on <%s> [...] is locked <%s> and no key specified
410  */
411 
412 #define	MSG_LOCK_ACQUIRE_BUSY_ADDITIONAL	gettext(\
413 	" and no key specified")
414 
415 /*
416  * i18n: note these two "messages" are inserted into other
417  * messages, such as:
418  * 	cannot acquire %s lock on <%s>
419  * will be either:
420  *	cannot acquire shared lock on <%s>
421  * or
422  *	cannot acquire exclusive lock on <%s>
423  */
424 
425 #define	MSG_LOCK_EXC	gettext(\
426 	"exclusive")
427 
428 #define	MSG_LOCK_SHR		gettext(\
429 	"shared")
430 
431 /*
432  * i18n: note these messages are "debugging" messages and will normally
433  * not be seen unless debugging has been enabled for problem root causing
434  * so they are not meant to be perfectly "human readable"
435  */
436 
437 #define	MSG_VALID_NOPID		gettext(\
438 	"validate lock <%s>: VALID (no pid)")
439 
440 #define	MSG_VALID_BADZID	gettext(\
441 	"validate lock <%s>: VALID (lock zid <%ld> this zid <%ld>)")
442 
443 #define	MSG_VALID_ZIDOK	gettext(\
444 	"validate lock <%s>: zone i.d.s match (lock zid <%ld> this zid <%ld>)")
445 
446 #define	MSG_VALID_OK		gettext(\
447 	"validate lock <%s> pid <%ld> path <%s>: VALID")
448 
449 #define	MSG_VALID_NOTOK		gettext(\
450 	"validate lock <%s> pid <%ld> path <%s>: NOT VALID")
451 
452 #define	MSG_LCKMCH_ENTRY	gettext(\
453 	"lockMatch: *** BEGIN *** compare objects <%s> <%s>")
454 
455 #define	MSG_LCKMCH_FSTNODE	gettext(\
456 	"lockMatch: first lock node (%d) <%s>")
457 
458 #define	MSG_LCKMCH_SCNDNODE	gettext(\
459 	"lockMatch: second lock node (%d) <%s>")
460 
461 #define	MSG_LCKMCH_NODES	gettext(\
462 	"lockMatch: first lock node <%s> prefix <%s> (%d) second lock " \
463 	" node <%s> prefix <%s> (%d)")
464 
465 #define	MSG_LCKMCH_DIRMCH	gettext(\
466 	"lockMatch: no prefix direct comparison: match: <%s> <%s>")
467 
468 #define	MSG_LCKMCH_DIRNOMCH	gettext(\
469 	"lockMatch: no prefix direct comparison: NO MATCH: <%s> <%s>")
470 
471 #define	MSG_LCKMCH_PFXMCH	gettext(\
472 	"lockMatch: prefix comparison: match: <%s> <%s>")
473 
474 #define	MSG_LCKMCH_PFXNOMCH	gettext(\
475 	"lockMatch: prefix comparison: NO MATCH: <%s> <%s>")
476 
477 #define	MSG_LCKMCH_FSTLCK	gettext(\
478 	"lockMatch: first lock index (%d) last scanned node <%s> prefix " \
479 	"<%s> (%d)")
480 
481 #define	MSG_LCKMCH_SCNDLCK	gettext(\
482 	"lockMatch: second lock index (%d) last scanned node <%s> prefix " \
483 	"<%s> (%d)")
484 
485 #define	MSG_LCKMCH_ABSNOMCH	gettext(\
486 	"lockMatch: absolute locks: NO MATCH: <%s> <%s>")
487 
488 #define	MSG_LCKMCH_OBJMCH	gettext(\
489 	"lockMatch: object locks: match: <%s> <%s>")
490 
491 #define	MSG_LCKMCH_OVLPNOMCH	gettext(\
492 	"lockMatch: nonmatching overlapping objects: <%s> <%s> before " \
493 	"(%d) <%s>")
494 
495 #define	MSG_LCKMCH_SAME	gettext(\
496 	"lockMatch: locks begin with same node - compare: <%s> <%s> at <%s>")
497 
498 #define	MSG_LCKMCH_SCNDSUB	gettext(\
499 	"lockMatch: second lock <%s> subset of <%s> at (%d) <%s>")
500 
501 #define	MSG_LCKMCH_FRSTSUB	gettext(\
502 	"lockMatch: first lock <%s> subset of <%s> at (%d) <%s>")
503 
504 #define	MSG_LCKMCH_DONTKNOW	gettext(\
505 	"lockMatch: unable to determine how to compare locks: <%s> <%s>: " \
506 	"using direct comparision")
507 
508 #define	MSG_LCKMCH_READY	gettext(\
509 	"lockMatch: comparing nodes locks <%s> <%s>")
510 
511 #define	MSG_LCKMCH_NODEFAIL	gettext(\
512 	"lockMatch: node (%d) comparison: NO MATCH: <%s> != <%s>")
513 
514 #define	MSG_LCKMCH_NODEOK	gettext(\
515 	"lockMatch: node (%d) comparision: match: <%s> == <%s>")
516 
517 #define	MSG_LCKMCH_MATCHOK	gettext(\
518 	"lockMatch: locks match: <%s> == <%s>")
519 
520 #define	MSG_LOCK_EXEC_RESULTS	gettext(\
521 	"command <%s> executed: pid <%d> errno <0x%04x> status <0x%04x> " \
522 	"final status <0x%04x> output <%s>")
523 
524 #define	MSG_LOCK_GENUID_MAKEUUID	gettext(\
525 	"generated new unique key using makeuuid: %s")
526 
527 #define	MSG_LOCK_GENUID_INTERNAL	gettext(\
528 	"generated new unique key using date: %s")
529 
530 #define	MSG_LOCK_DECLOCK_DECING	gettext(\
531 	"decrement <%s> lock count record <%d> count <%d>")
532 
533 #define	MSG_LOCK_DECLOCK_DONE	gettext(\
534 	"decrement lock record <%d> count <%d> object <%s> key <%s>")
535 
536 #define	MSG_LOCK_DECLOCK_REMOVE	gettext(\
537 	"decrement lock remove record lastPos %ld last record %d " \
538 	"current record %d")
539 
540 #define	MSG_LOCK_DECLOCK_LASTONE	gettext(\
541 	"decrement lock removing <%s> lock last record <%d> " \
542 	"truncating to <%ld>")
543 
544 #define	MSG_LOCK_DECLOCK_REMOVING	gettext(\
545 	"decrement lock removing record <%d> last record <%d> " \
546 	"truncating to <%ld>")
547 
548 #define	MSG_LOCK_INCLOCK_ENTRY	gettext(\
549 	"increment <%s> lock count record <%d> count <%d>")
550 
551 #define	MSG_LOCK_INCLOCK_DONE	gettext(\
552 	"increment lock record <%d> count <%d> object <%s> key <%s>")
553 
554 #define	MSG_LOCK_ADDLOCK_ADDING	gettext(\
555 	"adding %s lock pos <%d> object <%s> key <%s> pid <%ld> zid <%ld>")
556 
557 #define	MSG_LOCK_FINDLOCK_ENTRY	gettext(\
558 	"find lock object <%s> key <%s>")
559 
560 #define	MSG_LOCK_FINDLOCK_READRECORD	gettext(\
561 	"find lock read record <%d>: count <%d> object <%s> key <%s> pid " \
562 	"<%ld> zid <%ld>")
563 
564 #define	MSG_LOCK_FINDLOCK_FOUND	gettext(\
565 	"find lock record found")
566 
567 #define	MSG_LOCK_FINDLOCK_NOTFOUND	gettext(\
568 	"find lock record not found")
569 
570 #define	MSG_LOCK_OPENFILE_ENTRY	gettext(\
571 	"open lock file root <%s> file <%s>")
572 
573 #define	MSG_LOCK_OPENFILE_SLEEPING	gettext(\
574 	"open lock file busy <%s>: sleeping <%d>")
575 
576 #define	MSG_LOCK_OPENFILE_FAILURE	gettext(\
577 	"open lock file could not be opened: %s")
578 
579 #define	MSG_LOCK_OPENFILE_SLEEP2	gettext(\
580 	"open lock file cannot obtain record lock <%s>: sleeping <%d>")
581 
582 #define	MSG_LOCK_OPENFILE_FAIL2	gettext(\
583 	"open lock file could not obtain record lock: <%s>")
584 
585 #define	MSG_LOCK_OPENFILE_SUCCESS	gettext(\
586 	"open lock file: opened and locked fd <%d>")
587 
588 #define	MSG_LOCK_STATUS_READRECORD	gettext(\
589 	"status read record <%d>: count <%d> object <%s> key <%s> pid <%ld> " \
590 	"zid <%ld>")
591 
592 #define	MSG_LOCK_STATUS_ENTRY	gettext(\
593 	"status key=<%s> object=<%s>")
594 
595 #define	MSG_LOCK_RELEASE_FOUND		gettext(\
596 	"object <%s> key <%s> is locked: decrementing lock count")
597 
598 #define	MSG_LOCK_RELEASE_ENTRY	gettext(\
599 	"release lock key=<%s> object=<%s> quiet=<%d>")
600 
601 #define	MSG_LOCK_RELEASE_FINDRESULT	gettext(\
602 	"release lock result <%d> record <%d>")
603 
604 #define	MSG_LOCK_ACQUIRE_FOUND_INC	gettext(\
605 	"object <%s> key <%s> is locked: incrementing <%s> lock count")
606 
607 #define	MSG_LOCK_ACQUIRE_ENTRY	gettext(\
608 	"acquire lock key=<%s> object=<%s> quiet=<%d> exclusive=<%d>")
609 
610 #define	MSG_LOCK_ACQUIRE_FINDRESULT	gettext(\
611 	"acquire %s lock result <%d> record <%d>")
612 
613 #define	MSG_LOCK_ACQUIRE_LOCKED_SHARED	gettext(\
614 	"object <%s> key <%s> is locked but shared: incrementing lock count")
615 
616 #define	MSG_LOCK_ACQUIRE_NOTLOCKED	gettext(\
617 	"cannot acquire %s lock on <%s> key <%s>: object not locked " \
618 	"and non-matching key specified")
619 
620 #define	MSG_LOCK_ACQUIRE_NOTFOUND	gettext(\
621 	"acquiring %s lock on object <%s>")
622 
623 #ifdef	__cplusplus
624 }
625 #endif
626 
627 #endif /* _PKGADM_MSGS_H */
628