xref: /titanic_50/usr/src/cmd/svr4pkg/pkgadm/pkgadm_msgs.h (revision 4656d4747c8743290bfbe910c64cd75eb4e4af8d)
15c51f124SMoriah Waterland /*
25c51f124SMoriah Waterland  * CDDL HEADER START
35c51f124SMoriah Waterland  *
45c51f124SMoriah Waterland  * The contents of this file are subject to the terms of the
55c51f124SMoriah Waterland  * Common Development and Distribution License (the "License").
65c51f124SMoriah Waterland  * You may not use this file except in compliance with the License.
75c51f124SMoriah Waterland  *
85c51f124SMoriah Waterland  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95c51f124SMoriah Waterland  * or http://www.opensolaris.org/os/licensing.
105c51f124SMoriah Waterland  * See the License for the specific language governing permissions
115c51f124SMoriah Waterland  * and limitations under the License.
125c51f124SMoriah Waterland  *
135c51f124SMoriah Waterland  * When distributing Covered Code, include this CDDL HEADER in each
145c51f124SMoriah Waterland  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155c51f124SMoriah Waterland  * If applicable, add the following below this CDDL HEADER, with the
165c51f124SMoriah Waterland  * fields enclosed by brackets "[]" replaced with your own identifying
175c51f124SMoriah Waterland  * information: Portions Copyright [yyyy] [name of copyright owner]
185c51f124SMoriah Waterland  *
195c51f124SMoriah Waterland  * CDDL HEADER END
205c51f124SMoriah Waterland  */
215c51f124SMoriah Waterland 
225c51f124SMoriah Waterland /*
23*62224350SCasper H.S. Dik  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
245c51f124SMoriah Waterland  * Use is subject to license terms.
255c51f124SMoriah Waterland  */
265c51f124SMoriah Waterland 
275c51f124SMoriah Waterland #ifndef	_PKGADM_MSGS_H
285c51f124SMoriah Waterland #define	_PKGADM_MSGS_H
295c51f124SMoriah Waterland 
305c51f124SMoriah Waterland 
315c51f124SMoriah Waterland #include <libintl.h>
325c51f124SMoriah Waterland 
335c51f124SMoriah Waterland #ifdef	__cplusplus
345c51f124SMoriah Waterland extern "C" {
355c51f124SMoriah Waterland #endif
365c51f124SMoriah Waterland 
375c51f124SMoriah Waterland #ifdef	lint
385c51f124SMoriah Waterland #define	gettext(x)	x
395c51f124SMoriah Waterland #endif
405c51f124SMoriah Waterland 
415c51f124SMoriah Waterland /* generic messages */
425c51f124SMoriah Waterland #define	MSG_BAD_SUB		gettext(\
435c51f124SMoriah Waterland 	"\"%s\" is not a valid subcommand")
445c51f124SMoriah Waterland 
455c51f124SMoriah Waterland #define	MSG_MISSING_OPERAND	gettext(\
465c51f124SMoriah Waterland 	"-%c requires an operand")
475c51f124SMoriah Waterland 
485c51f124SMoriah Waterland #define	MSG_USAGE		gettext(\
495c51f124SMoriah Waterland "usage:\n" \
505c51f124SMoriah Waterland "\n" \
515c51f124SMoriah Waterland "pkgadm addcert  [-ty] [-a app] [-k keystore] [-e keyfile]\n" \
525c51f124SMoriah Waterland "\t[-f format] [-n name] [-P passarg] [-p input_passarg]\n" \
535c51f124SMoriah Waterland "\t[-R rootpath] certfile\n" \
545c51f124SMoriah Waterland "\n" \
555c51f124SMoriah Waterland "\t- Adds a trusted CA certificate or user certificate\n" \
565c51f124SMoriah Waterland "\tand private key\n" \
575c51f124SMoriah Waterland "\n" \
585c51f124SMoriah Waterland "pkgadm removecert [-a app] [-k keystore] -n name [-P passarg]\n" \
595c51f124SMoriah Waterland "\t[-R rootpath]\n" \
605c51f124SMoriah Waterland "\n" \
615c51f124SMoriah Waterland "\t- Removes a trusted CA certificate or user certificate\n" \
625c51f124SMoriah Waterland "\tand private key\n" \
635c51f124SMoriah Waterland "\n" \
645c51f124SMoriah Waterland "pkgadm listcert  [-a app] [-f format] [-k keystore] -n name\n" \
655c51f124SMoriah Waterland "\t[-P passarg] [-o outfile] [-R rootpath]\n" \
665c51f124SMoriah Waterland "\n" \
675c51f124SMoriah Waterland "\t- Prints trusted CA certificates or user certificates\n" \
685c51f124SMoriah Waterland "\n" \
695c51f124SMoriah Waterland "pkgadm dbstatus [-R rootpath]\n" \
705c51f124SMoriah Waterland "\n" \
715c51f124SMoriah Waterland "\t- Returns 'text' - the text install database in use since Solaris 2.0\n" \
725c51f124SMoriah Waterland "\t  is the current install database in use.\n" \
735c51f124SMoriah Waterland "\n" \
74*62224350SCasper H.S. Dik "pkgadm sync [-R rootpath] [-q]\n" \
75*62224350SCasper H.S. Dik "\n" \
76*62224350SCasper H.S. Dik "\t- Writes the contents file and rolls the contents log file.\n" \
77*62224350SCasper H.S. Dik "\t- Optionally forces the contents file server to quit [-q].\n" \
78*62224350SCasper H.S. Dik "\n" \
795c51f124SMoriah Waterland "pkgadm -V\n" \
805c51f124SMoriah Waterland "\t- Displays packaging tools version\n" \
815c51f124SMoriah Waterland "\n" \
825c51f124SMoriah Waterland "pkgadm -?\n" \
835c51f124SMoriah Waterland "\t- Shows this help message\n")
845c51f124SMoriah Waterland 
855c51f124SMoriah Waterland #define	MSG_WARNING		gettext(\
865c51f124SMoriah Waterland 	"WARNING")
875c51f124SMoriah Waterland 
885c51f124SMoriah Waterland #define	MSG_ERROR		gettext(\
895c51f124SMoriah Waterland 	"ERROR")
905c51f124SMoriah Waterland 
915c51f124SMoriah Waterland #define	MSG_T_OPTION_ARGS	gettext(\
925c51f124SMoriah Waterland 	"-t option takes 2 or 3 arguments, not %d!\n")
935c51f124SMoriah Waterland 
945c51f124SMoriah Waterland #define	MSG_T_RESULT_TWO	gettext(\
955c51f124SMoriah Waterland 	"result <%d>: <%s> ~= <%s>\n")
965c51f124SMoriah Waterland 
975c51f124SMoriah Waterland #define	MSG_T_RESULT_THREE	gettext(\
985c51f124SMoriah Waterland 	"required <%d> actual <%d> <%30s> ~- <%30s>\n")
995c51f124SMoriah Waterland 
1005c51f124SMoriah Waterland #define	MSG_KEYSTORE_PASSPROMPT	gettext(\
1015c51f124SMoriah Waterland 	"Enter Keystore Password: ")
1025c51f124SMoriah Waterland 
1035c51f124SMoriah Waterland #define	MSG_KEYSTORE_PASSOUTPROMPT	gettext(\
1045c51f124SMoriah Waterland 	"Type a Keystore protection Password.\n" \
1055c51f124SMoriah Waterland 	"Press ENTER for no protection password (not recommended): ")
1065c51f124SMoriah Waterland 
1075c51f124SMoriah Waterland #define	MSG_PEM_PASSPROMPT	gettext(\
1085c51f124SMoriah Waterland 	"Enter PEM Passphrase: ")
1095c51f124SMoriah Waterland 
1105c51f124SMoriah Waterland #define	MSG_ERROR		gettext(\
1115c51f124SMoriah Waterland 	"ERROR")
1125c51f124SMoriah Waterland 
1135c51f124SMoriah Waterland /* warnings */
1145c51f124SMoriah Waterland 
1155c51f124SMoriah Waterland #define	CREATE_PKGDIR_WARN	gettext(\
1165c51f124SMoriah Waterland 	"Creating directory <%s>\n")
1175c51f124SMoriah Waterland 
1185c51f124SMoriah Waterland #define	MSG_WRN_UNKNOWN	gettext(\
1195c51f124SMoriah Waterland 	"Signer <%s> has unsupported signature, ignoring")
1205c51f124SMoriah Waterland 
1215c51f124SMoriah Waterland #define	MSG_VALID_STALE		gettext(\
1225c51f124SMoriah Waterland 	"Removing stale lock on <%s> pid <%ld> zid <%ld>")
1235c51f124SMoriah Waterland 
1245c51f124SMoriah Waterland /* errors */
1255c51f124SMoriah Waterland 
1265c51f124SMoriah Waterland #define	MSG_FATAL			gettext(\
1275c51f124SMoriah Waterland 	"Fatal Error")
1285c51f124SMoriah Waterland 
1295c51f124SMoriah Waterland #define	MSG_TOO_LONG			gettext(\
1305c51f124SMoriah Waterland 	"Length of <%s> exceeds maximum allowed length")
1315c51f124SMoriah Waterland 
1325c51f124SMoriah Waterland #define	MSG_INTERNAL			gettext(\
1335c51f124SMoriah Waterland 	"Intenal Error <%s>")
1345c51f124SMoriah Waterland 
1355c51f124SMoriah Waterland #define	MSG_OPEN			gettext(\
1365c51f124SMoriah Waterland 	"Cannot open <%s> for reading")
1375c51f124SMoriah Waterland 
1385c51f124SMoriah Waterland #define	MSG_OPEN_WRITE			gettext(\
1395c51f124SMoriah Waterland 	"Cannot open <%s> for writing")
1405c51f124SMoriah Waterland 
1415c51f124SMoriah Waterland #define	MSG_BAD_PASSARG			gettext(\
1425c51f124SMoriah Waterland 	"Invalid password retrieval method <%s>")
1435c51f124SMoriah Waterland 
1445c51f124SMoriah Waterland #define	MSG_BAD_PASS			gettext(\
1455c51f124SMoriah Waterland 	"Invalid password")
1465c51f124SMoriah Waterland 
1475c51f124SMoriah Waterland #define	ERR_LOG_FAIL			gettext(\
1485c51f124SMoriah Waterland 	"Failed to log message using format <%s>")
1495c51f124SMoriah Waterland 
1505c51f124SMoriah Waterland #define	MSG_BAD_FORMAT			gettext(\
1515c51f124SMoriah Waterland 	"Invalid format: <%s>")
1525c51f124SMoriah Waterland 
1535c51f124SMoriah Waterland #define	MSG_USER_NAME			gettext(\
1545c51f124SMoriah Waterland 	"An alias is required when adding user certificates")
1555c51f124SMoriah Waterland 
1565c51f124SMoriah Waterland #define	MSG_TRUSTED_NAME		gettext(\
1575c51f124SMoriah Waterland 	"Trusted certificates cannot have an explicit alias")
1585c51f124SMoriah Waterland 
1595c51f124SMoriah Waterland #define	MSG_MULTIPLE_TRUST		gettext(\
1605c51f124SMoriah Waterland 	"Found multiple certificates in <%s>.  You must explicitly trust " \
1615c51f124SMoriah Waterland 	"them using <%s>")
1625c51f124SMoriah Waterland 
1635c51f124SMoriah Waterland #define	MSG_NO_MULTIPLE_TRUST		gettext(\
1645c51f124SMoriah Waterland 	"Found multiple certificates in <%s>.  You must explicitly trust " \
1655c51f124SMoriah Waterland 	"them using <%s>")
1665c51f124SMoriah Waterland 
1675c51f124SMoriah Waterland #define	MSG_TRUSTED_KEY			gettext(\
1685c51f124SMoriah Waterland 	"Cannot supply private key when adding trusted certificates")
1695c51f124SMoriah Waterland 
1705c51f124SMoriah Waterland #define	MSG_TRUST_KEY_FOUND		gettext(\
1715c51f124SMoriah Waterland 	"One or more private keys were found in trusted certificate file <%s>")
1725c51f124SMoriah Waterland 
1735c51f124SMoriah Waterland #define	MSG_ADDCERT_ABORT		gettext(\
1745c51f124SMoriah Waterland 	"Addition of trusted certificate aborted by user request")
1755c51f124SMoriah Waterland 
1765c51f124SMoriah Waterland 
1775c51f124SMoriah Waterland #define	MSG_NEED_KEY			gettext(\
1785c51f124SMoriah Waterland 	"No private key found in <%s>, must specify one with -e")
1795c51f124SMoriah Waterland 
1805c51f124SMoriah Waterland #define	MSG_NO_PRIVKEY		gettext(\
1815c51f124SMoriah Waterland 	"No private key found in <%s>")
1825c51f124SMoriah Waterland 
1835c51f124SMoriah Waterland #define	MSG_NO_CERTS		gettext(\
1845c51f124SMoriah Waterland 	"No certificates found in <%s>")
1855c51f124SMoriah Waterland 
1865c51f124SMoriah Waterland #define	MSG_MULTIPLE_CERTS	gettext(\
1875c51f124SMoriah Waterland 	"Multiple certificates found in <%s>")
1885c51f124SMoriah Waterland 
1895c51f124SMoriah Waterland #define	MSG_NO_ADDCERT	gettext(\
1905c51f124SMoriah Waterland 	"Cannot add certificate(s) from <%s>.  No changes have been made.")
1915c51f124SMoriah Waterland 
1925c51f124SMoriah Waterland #define	MSG_NO_ADDKEY	gettext(\
1935c51f124SMoriah Waterland 	"Cannot add private key from <%s>.  No changes have been made.")
1945c51f124SMoriah Waterland 
1955c51f124SMoriah Waterland #define	MSG_NO_REMOVECERT	gettext(\
1965c51f124SMoriah Waterland 	"Cannot remove certificate with alias <%s>")
1975c51f124SMoriah Waterland 
1985c51f124SMoriah Waterland #define	MSG_VERIFY_TRUST	gettext(\
1995c51f124SMoriah Waterland 	"Are you sure you want to trust this certificate? ")
2005c51f124SMoriah Waterland 
2015c51f124SMoriah Waterland #define	MSG_VERIFY_NOT_CA	gettext(\
2025c51f124SMoriah Waterland 	"\n" \
2035c51f124SMoriah Waterland 	"This certificate does not appear to be issued and signed\n" \
2045c51f124SMoriah Waterland 	"by a certificate authority (CA). CA Certificates are normally\n" \
2055c51f124SMoriah Waterland 	"self-signed and have CA Basic Constraints.\n" \
2065c51f124SMoriah Waterland 	"Are you sure you want to trust this certificate? ")
2075c51f124SMoriah Waterland 
2085c51f124SMoriah Waterland #define	MSG_PARSE	gettext(\
2095c51f124SMoriah Waterland 	"Parsing error")
2105c51f124SMoriah Waterland 
2115c51f124SMoriah Waterland #define	MSG_TRUSTED	gettext(\
2125c51f124SMoriah Waterland 	"Certificate(s) from <%s> are now trusted")
2135c51f124SMoriah Waterland 
2145c51f124SMoriah Waterland #define	MSG_TRUSTING	gettext(\
2155c51f124SMoriah Waterland 	"Trusting certificate <%s>")
2165c51f124SMoriah Waterland 
2175c51f124SMoriah Waterland #define	MSG_ADDED	gettext(\
2185c51f124SMoriah Waterland 	"Successfully added Certificate <%s> with alias <%s>")
2195c51f124SMoriah Waterland 
2205c51f124SMoriah Waterland #define	MSG_REMOVED	gettext(\
2215c51f124SMoriah Waterland 	"Successfully removed Certificate(s) with alias <%s>")
2225c51f124SMoriah Waterland 
2235c51f124SMoriah Waterland #define	MSG_MEM		gettext(\
2245c51f124SMoriah Waterland 	"Out of memory")
2255c51f124SMoriah Waterland 
2265c51f124SMoriah Waterland #define	MSG_PRINT		gettext(\
2275c51f124SMoriah Waterland 	"Cannot print certificates to <%s>")
2285c51f124SMoriah Waterland 
2295c51f124SMoriah Waterland #define	MSG_PROBLEM_CONVERT	gettext(\
2305c51f124SMoriah Waterland 	"Does %s/var/sadm exist?  Can the user write to it? (%s)")
2315c51f124SMoriah Waterland 
2325c51f124SMoriah Waterland #define	MSG_CONTENTS_FORMAT	gettext(\
2335c51f124SMoriah Waterland 	"Operation failed due to corrupted install contents data file.")
2345c51f124SMoriah Waterland 
2355c51f124SMoriah Waterland #define	MSG_MKDIR_FAILED	gettext(\
2365c51f124SMoriah Waterland 	"Could not mkdir for path %s.  %s.")
2375c51f124SMoriah Waterland 
2385c51f124SMoriah Waterland #define	MSG_RENAME_FAILED	gettext(\
2395c51f124SMoriah Waterland 	"Could not rename %s to %s\n%s")
2405c51f124SMoriah Waterland 
2415c51f124SMoriah Waterland #define	MSG_REMOVE_FAILED	gettext(\
2425c51f124SMoriah Waterland 	"Could not remove %s\n%s")
2435c51f124SMoriah Waterland 
2445c51f124SMoriah Waterland #define	MSG_FILE_ACCESS		gettext(\
2455c51f124SMoriah Waterland 	"Operation failed: unable to access file %s: %s")
2465c51f124SMoriah Waterland 
2475c51f124SMoriah Waterland #define	MSG_NOT_READABLE	gettext(\
2485c51f124SMoriah Waterland 	"Operation failed: unable to read file %s")
2495c51f124SMoriah Waterland 
2505c51f124SMoriah Waterland #define	MSG_BUILD_INDEXES gettext(\
2515c51f124SMoriah Waterland 	"Operation failed: unable to build indexes\n")
2525c51f124SMoriah Waterland 
2535c51f124SMoriah Waterland #define	MSG_FILE_NAME_TOO_LONG gettext(\
2545c51f124SMoriah Waterland 	"Operation failed: file name too long: %s\n")
2555c51f124SMoriah Waterland 
2565c51f124SMoriah Waterland #define	MSG_ZONES_MISSING_REQUEST	gettext(\
2575c51f124SMoriah Waterland 	"Must specify operation to perform\n")
2585c51f124SMoriah Waterland 
2595c51f124SMoriah Waterland #define	MSG_LOCK_ALTROOT_CANTCREATE	gettext(\
2605c51f124SMoriah Waterland 	"lock: cannot create alternative root directory <%s>: %s\n")
2615c51f124SMoriah Waterland 
2625c51f124SMoriah Waterland #define	MSG_LOCK_ALTROOT_NONEXIST	gettext(\
2635c51f124SMoriah Waterland 	"lock: argument to -R <%s> is not a directory: %s\n")
2645c51f124SMoriah Waterland 
2655c51f124SMoriah Waterland #define	MSG_LOCK_ROOTDIR_INVALID	gettext(\
2665c51f124SMoriah Waterland 	"lock: lock file base directory <%s> not valid: %s\n")
2675c51f124SMoriah Waterland 
2685c51f124SMoriah Waterland #define	MSG_LOCK_WFLAG_BADINT	gettext(\
2695c51f124SMoriah Waterland 	"The integer value <%s> given to the -W option includes an " \
2705c51f124SMoriah Waterland 	"invalid character: \"%c\"\n")
2715c51f124SMoriah Waterland 
2725c51f124SMoriah Waterland #define	MSG_LOCK_pFLAG_BADINT	gettext(\
2735c51f124SMoriah Waterland 	"The integer value <%s> given to the -p option includes an " \
2745c51f124SMoriah Waterland 	"invalid character: \"%c\"\n")
2755c51f124SMoriah Waterland 
2765c51f124SMoriah Waterland #define	MSG_LOCK_zFLAG_BADINT	gettext(\
2775c51f124SMoriah Waterland 	"The integer value <%s> given to the -z option includes an " \
2785c51f124SMoriah Waterland 	"invalid character: \"%c\"\n")
2795c51f124SMoriah Waterland 
2805c51f124SMoriah Waterland #define	MSG_LOCK_nFLAG_BADINT	gettext(\
2815c51f124SMoriah Waterland 	"The integer value <%s> given to the -n option includes an " \
2825c51f124SMoriah Waterland 	"invalid character: \"%c\"\n")
2835c51f124SMoriah Waterland 
2845c51f124SMoriah Waterland #define	MSG_LOCK_ar_TOGETHER	gettext(\
2855c51f124SMoriah Waterland 	"lock: The -a and -r options cannot be used together: "\
2865c51f124SMoriah Waterland 	"specify only one.\n")
2875c51f124SMoriah Waterland 
2885c51f124SMoriah Waterland #define	MSG_LOCK_kARG_TOOLONG	gettext(\
2895c51f124SMoriah Waterland 	"Argument to -k is <%d> characters: may not exceed <%d> characters\n")
2905c51f124SMoriah Waterland 
2915c51f124SMoriah Waterland #define	MSG_LOCK_oARG_TOOLONG	gettext(\
2925c51f124SMoriah Waterland 	"Argument to -o is <%d> characters: may not exceed <%d> characters\n")
2935c51f124SMoriah Waterland 
2945c51f124SMoriah Waterland #define	MSG_LOCK_RARG_NOT_ABSOLUTE	gettext(\
2955c51f124SMoriah Waterland 	"Argument to -R must be absolute path: %s")
2965c51f124SMoriah Waterland 
2975c51f124SMoriah Waterland #define	MSG_LOCK_WFLAG_ERROR	gettext(\
2985c51f124SMoriah Waterland 	"Argument to -W has problem with wait interval <%s>: %s")
2995c51f124SMoriah Waterland 
3005c51f124SMoriah Waterland #define	MSG_LOCK_pFLAG_ERROR	gettext(\
3015c51f124SMoriah Waterland 	"Argument to -p has problem with process i.d. value <%s>: %s")
3025c51f124SMoriah Waterland 
3035c51f124SMoriah Waterland #define	MSG_LOCK_zFLAG_ERROR	gettext(\
3045c51f124SMoriah Waterland 	"Argument to -p has problem with zone i.d. value <%s>: %s")
3055c51f124SMoriah Waterland 
3065c51f124SMoriah Waterland #define	MSG_LOCK_nFLAG_ERROR	gettext(\
3075c51f124SMoriah Waterland 	"Argument to -n has problem with maximum number of retries " \
3085c51f124SMoriah Waterland 	"value <%s>: %s")
3095c51f124SMoriah Waterland 
3105c51f124SMoriah Waterland #define	MSG_LOCK_es_TOGETHER	gettext(\
3115c51f124SMoriah Waterland 	"lock: The -e and -s options cannot be used together: "\
3125c51f124SMoriah Waterland 	"specify only one.\n")
3135c51f124SMoriah Waterland 
3145c51f124SMoriah Waterland #define	MSG_LOCK_ak_TOGETHER	gettext(\
3155c51f124SMoriah Waterland 	"lock: The -k option cannot be used with the -a option.\n")
3165c51f124SMoriah Waterland 
3175c51f124SMoriah Waterland #define	MSG_LOCK_e_without_a	gettext(\
3185c51f124SMoriah Waterland 	"lock: The -e option can only be used with the -a option.\n")
3195c51f124SMoriah Waterland 
3205c51f124SMoriah Waterland #define	MSG_LOCK_s_without_a	gettext(\
3215c51f124SMoriah Waterland 	"lock: The -s option can only be used with the -a option.\n")
3225c51f124SMoriah Waterland 
3235c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_KEYMISMATCH	gettext(\
3245c51f124SMoriah Waterland 	"cannot acquire %s lock on <%s>: object locked and specified key " \
3255c51f124SMoriah Waterland 	"does not match")
3265c51f124SMoriah Waterland 
3275c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_ERROR	gettext(\
3285c51f124SMoriah Waterland 	"cannot determine if object <%s> key <%s> is locked: %s")
3295c51f124SMoriah Waterland 
3305c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_TIMEDOUT	gettext(\
3315c51f124SMoriah Waterland 	"cannot acquire %s lock on <%s> key <%s>: object locked, no key " \
3325c51f124SMoriah Waterland 	"was specified, and the wait timed out")
3335c51f124SMoriah Waterland 
3345c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_WAITING	gettext(\
3355c51f124SMoriah Waterland 	"object <%s> is locked: waiting for object to become available")
3365c51f124SMoriah Waterland 
3375c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_REOPEN_FAILED	gettext(\
3385c51f124SMoriah Waterland 	"cannot reopen lock file after waiting for lock on object " \
3395c51f124SMoriah Waterland 	"<%s> to be released")
3405c51f124SMoriah Waterland 
3415c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_NOTLOCKED	gettext(\
3425c51f124SMoriah Waterland 	"cannot release lock on <%s> key <%s>: object not locked and " \
3435c51f124SMoriah Waterland 	"a key was specified")
3445c51f124SMoriah Waterland 
3455c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_LOCKED		gettext(\
3465c51f124SMoriah Waterland 	"cannot release lock on <%s> key <%s>: object locked but no " \
3475c51f124SMoriah Waterland 	"key was specified")
3485c51f124SMoriah Waterland 
3495c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_NOTFOUND	gettext(\
3505c51f124SMoriah Waterland 	"cannot release lock on <%s> key <%s>: object is not locked")
3515c51f124SMoriah Waterland 
3525c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_KEYMISMATCH	gettext(\
3535c51f124SMoriah Waterland 	"cannot release lock on <%s>: object locked and specified key " \
3545c51f124SMoriah Waterland 	"does not match")
3555c51f124SMoriah Waterland 
3565c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_ERROR		gettext(\
3575c51f124SMoriah Waterland 	"cannot determine if object <%s> key <%s> is locked")
3585c51f124SMoriah Waterland 
3595c51f124SMoriah Waterland #define	MSG_LOCK_EXEC_ACCESS	gettext(\
3605c51f124SMoriah Waterland 	"cannot execute command <%s>: %s")
3615c51f124SMoriah Waterland 
3625c51f124SMoriah Waterland #define	MSG_LOCK_EXEC_NOINPUT	gettext(\
3635c51f124SMoriah Waterland 	"cannot open input file <%s>: %s")
3645c51f124SMoriah Waterland 
3655c51f124SMoriah Waterland #define	MSG_LOCK_EXEC_NOPIPE	gettext(\
3665c51f124SMoriah Waterland 	"cannot create pipe: %s")
3675c51f124SMoriah Waterland 
3685c51f124SMoriah Waterland #define	MSG_LOCK_FINDLOCK_LSEEK_FAILURE	gettext(\
3695c51f124SMoriah Waterland 	"cannot find lock <%s> key <%s>: lseek failure: %s")
3705c51f124SMoriah Waterland 
3715c51f124SMoriah Waterland #define	MSG_LOCK_ADDLOCK_PWRITE_FAILURE	gettext(\
3725c51f124SMoriah Waterland 	"cannot create %s lock for object <%s>: pwrite failure: %s")
3735c51f124SMoriah Waterland 
3745c51f124SMoriah Waterland #define	MSG_LOCK_ADDLOCK_LSEEK_FAILURE	gettext(\
3755c51f124SMoriah Waterland 	"cannot create %s lock for object <%s>: lseek failure: %s")
3765c51f124SMoriah Waterland 
3775c51f124SMoriah Waterland #define	MSG_LOCK_INCLOCK_PWRITE_FAILURE	gettext(\
3785c51f124SMoriah Waterland 	"cannot increment %s lock for object <%s>: pwrite failure: %s")
3795c51f124SMoriah Waterland 
3805c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_PWRITE_FAILURE	gettext(\
3815c51f124SMoriah Waterland 	"cannot decrement %s lock for object <%s>: pwrite failure: %s")
3825c51f124SMoriah Waterland 
3835c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_PREAD_FAILURE	gettext(\
3845c51f124SMoriah Waterland 	"cannot decrement %s lock for object <%s>: pread failure: %s")
3855c51f124SMoriah Waterland 
3865c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_LSEEK_FAILURE	gettext(\
3875c51f124SMoriah Waterland 	"cannot decrement %s lock for object <%s>: lseek failure: %s")
3885c51f124SMoriah Waterland 
3895c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_FTRUNCATE_FAILURE	gettext(\
3905c51f124SMoriah Waterland 	"cannot decrement %s lock for object <%s>: ftruncate failure: %s")
3915c51f124SMoriah Waterland 
3925c51f124SMoriah Waterland /*
3935c51f124SMoriah Waterland  * i18n:
3945c51f124SMoriah Waterland  * next two messages grouped together
3955c51f124SMoriah Waterland  */
3965c51f124SMoriah Waterland 
3975c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_BUSY_QUASI	gettext(\
3985c51f124SMoriah Waterland 	"cannot acquire %s lock on <%s> key <%s>: object matches wildcard " \
3995c51f124SMoriah Waterland 	"<%s> lock%s")
4005c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_BUSY_FIRST	gettext(\
4015c51f124SMoriah Waterland 	"cannot acquire %s lock on <%s> key <%s>: object <%s> is locked <%s>%s")
4025c51f124SMoriah Waterland 
4035c51f124SMoriah Waterland /*
4045c51f124SMoriah Waterland  * i18n: note this message may be appended to the previous message
4055c51f124SMoriah Waterland  * by supplying it to the final "%s" at the end of the line above;
4065c51f124SMoriah Waterland  * that is either:
4075c51f124SMoriah Waterland  *  cannot acquire %s lock on <%s> key <%s>: object is locked <%s>
4085c51f124SMoriah Waterland  * or:
4095c51f124SMoriah Waterland  *  cannot acquire %s lock on <%s> [...] is locked <%s> and no key specified
4105c51f124SMoriah Waterland  */
4115c51f124SMoriah Waterland 
4125c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_BUSY_ADDITIONAL	gettext(\
4135c51f124SMoriah Waterland 	" and no key specified")
4145c51f124SMoriah Waterland 
4155c51f124SMoriah Waterland /*
4165c51f124SMoriah Waterland  * i18n: note these two "messages" are inserted into other
4175c51f124SMoriah Waterland  * messages, such as:
4185c51f124SMoriah Waterland  * 	cannot acquire %s lock on <%s>
4195c51f124SMoriah Waterland  * will be either:
4205c51f124SMoriah Waterland  *	cannot acquire shared lock on <%s>
4215c51f124SMoriah Waterland  * or
4225c51f124SMoriah Waterland  *	cannot acquire exclusive lock on <%s>
4235c51f124SMoriah Waterland  */
4245c51f124SMoriah Waterland 
4255c51f124SMoriah Waterland #define	MSG_LOCK_EXC	gettext(\
4265c51f124SMoriah Waterland 	"exclusive")
4275c51f124SMoriah Waterland 
4285c51f124SMoriah Waterland #define	MSG_LOCK_SHR		gettext(\
4295c51f124SMoriah Waterland 	"shared")
4305c51f124SMoriah Waterland 
4315c51f124SMoriah Waterland /*
4325c51f124SMoriah Waterland  * i18n: note these messages are "debugging" messages and will normally
4335c51f124SMoriah Waterland  * not be seen unless debugging has been enabled for problem root causing
4345c51f124SMoriah Waterland  * so they are not meant to be perfectly "human readable"
4355c51f124SMoriah Waterland  */
4365c51f124SMoriah Waterland 
4375c51f124SMoriah Waterland #define	MSG_VALID_NOPID		gettext(\
4385c51f124SMoriah Waterland 	"validate lock <%s>: VALID (no pid)")
4395c51f124SMoriah Waterland 
4405c51f124SMoriah Waterland #define	MSG_VALID_BADZID	gettext(\
4415c51f124SMoriah Waterland 	"validate lock <%s>: VALID (lock zid <%ld> this zid <%ld>)")
4425c51f124SMoriah Waterland 
4435c51f124SMoriah Waterland #define	MSG_VALID_ZIDOK	gettext(\
4445c51f124SMoriah Waterland 	"validate lock <%s>: zone i.d.s match (lock zid <%ld> this zid <%ld>)")
4455c51f124SMoriah Waterland 
4465c51f124SMoriah Waterland #define	MSG_VALID_OK		gettext(\
4475c51f124SMoriah Waterland 	"validate lock <%s> pid <%ld> path <%s>: VALID")
4485c51f124SMoriah Waterland 
4495c51f124SMoriah Waterland #define	MSG_VALID_NOTOK		gettext(\
4505c51f124SMoriah Waterland 	"validate lock <%s> pid <%ld> path <%s>: NOT VALID")
4515c51f124SMoriah Waterland 
4525c51f124SMoriah Waterland #define	MSG_LCKMCH_ENTRY	gettext(\
4535c51f124SMoriah Waterland 	"lockMatch: *** BEGIN *** compare objects <%s> <%s>")
4545c51f124SMoriah Waterland 
4555c51f124SMoriah Waterland #define	MSG_LCKMCH_FSTNODE	gettext(\
4565c51f124SMoriah Waterland 	"lockMatch: first lock node (%d) <%s>")
4575c51f124SMoriah Waterland 
4585c51f124SMoriah Waterland #define	MSG_LCKMCH_SCNDNODE	gettext(\
4595c51f124SMoriah Waterland 	"lockMatch: second lock node (%d) <%s>")
4605c51f124SMoriah Waterland 
4615c51f124SMoriah Waterland #define	MSG_LCKMCH_NODES	gettext(\
4625c51f124SMoriah Waterland 	"lockMatch: first lock node <%s> prefix <%s> (%d) second lock " \
4635c51f124SMoriah Waterland 	" node <%s> prefix <%s> (%d)")
4645c51f124SMoriah Waterland 
4655c51f124SMoriah Waterland #define	MSG_LCKMCH_DIRMCH	gettext(\
4665c51f124SMoriah Waterland 	"lockMatch: no prefix direct comparison: match: <%s> <%s>")
4675c51f124SMoriah Waterland 
4685c51f124SMoriah Waterland #define	MSG_LCKMCH_DIRNOMCH	gettext(\
4695c51f124SMoriah Waterland 	"lockMatch: no prefix direct comparison: NO MATCH: <%s> <%s>")
4705c51f124SMoriah Waterland 
4715c51f124SMoriah Waterland #define	MSG_LCKMCH_PFXMCH	gettext(\
4725c51f124SMoriah Waterland 	"lockMatch: prefix comparison: match: <%s> <%s>")
4735c51f124SMoriah Waterland 
4745c51f124SMoriah Waterland #define	MSG_LCKMCH_PFXNOMCH	gettext(\
4755c51f124SMoriah Waterland 	"lockMatch: prefix comparison: NO MATCH: <%s> <%s>")
4765c51f124SMoriah Waterland 
4775c51f124SMoriah Waterland #define	MSG_LCKMCH_FSTLCK	gettext(\
4785c51f124SMoriah Waterland 	"lockMatch: first lock index (%d) last scanned node <%s> prefix " \
4795c51f124SMoriah Waterland 	"<%s> (%d)")
4805c51f124SMoriah Waterland 
4815c51f124SMoriah Waterland #define	MSG_LCKMCH_SCNDLCK	gettext(\
4825c51f124SMoriah Waterland 	"lockMatch: second lock index (%d) last scanned node <%s> prefix " \
4835c51f124SMoriah Waterland 	"<%s> (%d)")
4845c51f124SMoriah Waterland 
4855c51f124SMoriah Waterland #define	MSG_LCKMCH_ABSNOMCH	gettext(\
4865c51f124SMoriah Waterland 	"lockMatch: absolute locks: NO MATCH: <%s> <%s>")
4875c51f124SMoriah Waterland 
4885c51f124SMoriah Waterland #define	MSG_LCKMCH_OBJMCH	gettext(\
4895c51f124SMoriah Waterland 	"lockMatch: object locks: match: <%s> <%s>")
4905c51f124SMoriah Waterland 
4915c51f124SMoriah Waterland #define	MSG_LCKMCH_OVLPNOMCH	gettext(\
4925c51f124SMoriah Waterland 	"lockMatch: nonmatching overlapping objects: <%s> <%s> before " \
4935c51f124SMoriah Waterland 	"(%d) <%s>")
4945c51f124SMoriah Waterland 
4955c51f124SMoriah Waterland #define	MSG_LCKMCH_SAME	gettext(\
4965c51f124SMoriah Waterland 	"lockMatch: locks begin with same node - compare: <%s> <%s> at <%s>")
4975c51f124SMoriah Waterland 
4985c51f124SMoriah Waterland #define	MSG_LCKMCH_SCNDSUB	gettext(\
4995c51f124SMoriah Waterland 	"lockMatch: second lock <%s> subset of <%s> at (%d) <%s>")
5005c51f124SMoriah Waterland 
5015c51f124SMoriah Waterland #define	MSG_LCKMCH_FRSTSUB	gettext(\
5025c51f124SMoriah Waterland 	"lockMatch: first lock <%s> subset of <%s> at (%d) <%s>")
5035c51f124SMoriah Waterland 
5045c51f124SMoriah Waterland #define	MSG_LCKMCH_DONTKNOW	gettext(\
5055c51f124SMoriah Waterland 	"lockMatch: unable to determine how to compare locks: <%s> <%s>: " \
5065c51f124SMoriah Waterland 	"using direct comparision")
5075c51f124SMoriah Waterland 
5085c51f124SMoriah Waterland #define	MSG_LCKMCH_READY	gettext(\
5095c51f124SMoriah Waterland 	"lockMatch: comparing nodes locks <%s> <%s>")
5105c51f124SMoriah Waterland 
5115c51f124SMoriah Waterland #define	MSG_LCKMCH_NODEFAIL	gettext(\
5125c51f124SMoriah Waterland 	"lockMatch: node (%d) comparison: NO MATCH: <%s> != <%s>")
5135c51f124SMoriah Waterland 
5145c51f124SMoriah Waterland #define	MSG_LCKMCH_NODEOK	gettext(\
5155c51f124SMoriah Waterland 	"lockMatch: node (%d) comparision: match: <%s> == <%s>")
5165c51f124SMoriah Waterland 
5175c51f124SMoriah Waterland #define	MSG_LCKMCH_MATCHOK	gettext(\
5185c51f124SMoriah Waterland 	"lockMatch: locks match: <%s> == <%s>")
5195c51f124SMoriah Waterland 
5205c51f124SMoriah Waterland #define	MSG_LOCK_EXEC_RESULTS	gettext(\
5215c51f124SMoriah Waterland 	"command <%s> executed: pid <%d> errno <0x%04x> status <0x%04x> " \
5225c51f124SMoriah Waterland 	"final status <0x%04x> output <%s>")
5235c51f124SMoriah Waterland 
5245c51f124SMoriah Waterland #define	MSG_LOCK_GENUID_MAKEUUID	gettext(\
5255c51f124SMoriah Waterland 	"generated new unique key using makeuuid: %s")
5265c51f124SMoriah Waterland 
5275c51f124SMoriah Waterland #define	MSG_LOCK_GENUID_INTERNAL	gettext(\
5285c51f124SMoriah Waterland 	"generated new unique key using date: %s")
5295c51f124SMoriah Waterland 
5305c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_DECING	gettext(\
5315c51f124SMoriah Waterland 	"decrement <%s> lock count record <%d> count <%d>")
5325c51f124SMoriah Waterland 
5335c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_DONE	gettext(\
5345c51f124SMoriah Waterland 	"decrement lock record <%d> count <%d> object <%s> key <%s>")
5355c51f124SMoriah Waterland 
5365c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_REMOVE	gettext(\
5375c51f124SMoriah Waterland 	"decrement lock remove record lastPos %ld last record %d " \
5385c51f124SMoriah Waterland 	"current record %d")
5395c51f124SMoriah Waterland 
5405c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_LASTONE	gettext(\
5415c51f124SMoriah Waterland 	"decrement lock removing <%s> lock last record <%d> " \
5425c51f124SMoriah Waterland 	"truncating to <%ld>")
5435c51f124SMoriah Waterland 
5445c51f124SMoriah Waterland #define	MSG_LOCK_DECLOCK_REMOVING	gettext(\
5455c51f124SMoriah Waterland 	"decrement lock removing record <%d> last record <%d> " \
5465c51f124SMoriah Waterland 	"truncating to <%ld>")
5475c51f124SMoriah Waterland 
5485c51f124SMoriah Waterland #define	MSG_LOCK_INCLOCK_ENTRY	gettext(\
5495c51f124SMoriah Waterland 	"increment <%s> lock count record <%d> count <%d>")
5505c51f124SMoriah Waterland 
5515c51f124SMoriah Waterland #define	MSG_LOCK_INCLOCK_DONE	gettext(\
5525c51f124SMoriah Waterland 	"increment lock record <%d> count <%d> object <%s> key <%s>")
5535c51f124SMoriah Waterland 
5545c51f124SMoriah Waterland #define	MSG_LOCK_ADDLOCK_ADDING	gettext(\
5555c51f124SMoriah Waterland 	"adding %s lock pos <%d> object <%s> key <%s> pid <%ld> zid <%ld>")
5565c51f124SMoriah Waterland 
5575c51f124SMoriah Waterland #define	MSG_LOCK_FINDLOCK_ENTRY	gettext(\
5585c51f124SMoriah Waterland 	"find lock object <%s> key <%s>")
5595c51f124SMoriah Waterland 
5605c51f124SMoriah Waterland #define	MSG_LOCK_FINDLOCK_READRECORD	gettext(\
5615c51f124SMoriah Waterland 	"find lock read record <%d>: count <%d> object <%s> key <%s> pid " \
5625c51f124SMoriah Waterland 	"<%ld> zid <%ld>")
5635c51f124SMoriah Waterland 
5645c51f124SMoriah Waterland #define	MSG_LOCK_FINDLOCK_FOUND	gettext(\
5655c51f124SMoriah Waterland 	"find lock record found")
5665c51f124SMoriah Waterland 
5675c51f124SMoriah Waterland #define	MSG_LOCK_FINDLOCK_NOTFOUND	gettext(\
5685c51f124SMoriah Waterland 	"find lock record not found")
5695c51f124SMoriah Waterland 
5705c51f124SMoriah Waterland #define	MSG_LOCK_OPENFILE_ENTRY	gettext(\
5715c51f124SMoriah Waterland 	"open lock file root <%s> file <%s>")
5725c51f124SMoriah Waterland 
5735c51f124SMoriah Waterland #define	MSG_LOCK_OPENFILE_SLEEPING	gettext(\
5745c51f124SMoriah Waterland 	"open lock file busy <%s>: sleeping <%d>")
5755c51f124SMoriah Waterland 
5765c51f124SMoriah Waterland #define	MSG_LOCK_OPENFILE_FAILURE	gettext(\
5775c51f124SMoriah Waterland 	"open lock file could not be opened: %s")
5785c51f124SMoriah Waterland 
5795c51f124SMoriah Waterland #define	MSG_LOCK_OPENFILE_SLEEP2	gettext(\
5805c51f124SMoriah Waterland 	"open lock file cannot obtain record lock <%s>: sleeping <%d>")
5815c51f124SMoriah Waterland 
5825c51f124SMoriah Waterland #define	MSG_LOCK_OPENFILE_FAIL2	gettext(\
5835c51f124SMoriah Waterland 	"open lock file could not obtain record lock: <%s>")
5845c51f124SMoriah Waterland 
5855c51f124SMoriah Waterland #define	MSG_LOCK_OPENFILE_SUCCESS	gettext(\
5865c51f124SMoriah Waterland 	"open lock file: opened and locked fd <%d>")
5875c51f124SMoriah Waterland 
5885c51f124SMoriah Waterland #define	MSG_LOCK_STATUS_READRECORD	gettext(\
5895c51f124SMoriah Waterland 	"status read record <%d>: count <%d> object <%s> key <%s> pid <%ld> " \
5905c51f124SMoriah Waterland 	"zid <%ld>")
5915c51f124SMoriah Waterland 
5925c51f124SMoriah Waterland #define	MSG_LOCK_STATUS_ENTRY	gettext(\
5935c51f124SMoriah Waterland 	"status key=<%s> object=<%s>")
5945c51f124SMoriah Waterland 
5955c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_FOUND		gettext(\
5965c51f124SMoriah Waterland 	"object <%s> key <%s> is locked: decrementing lock count")
5975c51f124SMoriah Waterland 
5985c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_ENTRY	gettext(\
5995c51f124SMoriah Waterland 	"release lock key=<%s> object=<%s> quiet=<%d>")
6005c51f124SMoriah Waterland 
6015c51f124SMoriah Waterland #define	MSG_LOCK_RELEASE_FINDRESULT	gettext(\
6025c51f124SMoriah Waterland 	"release lock result <%d> record <%d>")
6035c51f124SMoriah Waterland 
6045c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_FOUND_INC	gettext(\
6055c51f124SMoriah Waterland 	"object <%s> key <%s> is locked: incrementing <%s> lock count")
6065c51f124SMoriah Waterland 
6075c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_ENTRY	gettext(\
6085c51f124SMoriah Waterland 	"acquire lock key=<%s> object=<%s> quiet=<%d> exclusive=<%d>")
6095c51f124SMoriah Waterland 
6105c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_FINDRESULT	gettext(\
6115c51f124SMoriah Waterland 	"acquire %s lock result <%d> record <%d>")
6125c51f124SMoriah Waterland 
6135c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_LOCKED_SHARED	gettext(\
6145c51f124SMoriah Waterland 	"object <%s> key <%s> is locked but shared: incrementing lock count")
6155c51f124SMoriah Waterland 
6165c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_NOTLOCKED	gettext(\
6175c51f124SMoriah Waterland 	"cannot acquire %s lock on <%s> key <%s>: object not locked " \
6185c51f124SMoriah Waterland 	"and non-matching key specified")
6195c51f124SMoriah Waterland 
6205c51f124SMoriah Waterland #define	MSG_LOCK_ACQUIRE_NOTFOUND	gettext(\
6215c51f124SMoriah Waterland 	"acquiring %s lock on object <%s>")
6225c51f124SMoriah Waterland 
6235c51f124SMoriah Waterland #ifdef	__cplusplus
6245c51f124SMoriah Waterland }
6255c51f124SMoriah Waterland #endif
6265c51f124SMoriah Waterland 
6275c51f124SMoriah Waterland #endif /* _PKGADM_MSGS_H */
628