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 22*32991bedSPeter Tribble /* 23*32991bedSPeter Tribble * Copyright (c) 2017 Peter Tribble. 24*32991bedSPeter Tribble */ 25*32991bedSPeter Tribble 265c51f124SMoriah Waterland /* 2762224350SCasper H.S. Dik * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 285c51f124SMoriah Waterland * Use is subject to license terms. 295c51f124SMoriah Waterland */ 305c51f124SMoriah Waterland 315c51f124SMoriah Waterland #ifndef _PKGADM_MSGS_H 325c51f124SMoriah Waterland #define _PKGADM_MSGS_H 335c51f124SMoriah Waterland 345c51f124SMoriah Waterland 355c51f124SMoriah Waterland #include <libintl.h> 365c51f124SMoriah Waterland 375c51f124SMoriah Waterland #ifdef __cplusplus 385c51f124SMoriah Waterland extern "C" { 395c51f124SMoriah Waterland #endif 405c51f124SMoriah Waterland 415c51f124SMoriah Waterland #ifdef lint 425c51f124SMoriah Waterland #define gettext(x) x 435c51f124SMoriah Waterland #endif 445c51f124SMoriah Waterland 455c51f124SMoriah Waterland /* generic messages */ 465c51f124SMoriah Waterland #define MSG_BAD_SUB gettext(\ 475c51f124SMoriah Waterland "\"%s\" is not a valid subcommand") 485c51f124SMoriah Waterland 495c51f124SMoriah Waterland #define MSG_MISSING_OPERAND gettext(\ 505c51f124SMoriah Waterland "-%c requires an operand") 515c51f124SMoriah Waterland 525c51f124SMoriah Waterland #define MSG_USAGE gettext(\ 535c51f124SMoriah Waterland "usage:\n" \ 545c51f124SMoriah Waterland "\n" \ 555c51f124SMoriah Waterland "pkgadm dbstatus [-R rootpath]\n" \ 565c51f124SMoriah Waterland "\n" \ 575c51f124SMoriah Waterland "\t- Returns 'text' - the text install database in use since Solaris 2.0\n" \ 585c51f124SMoriah Waterland "\t is the current install database in use.\n" \ 595c51f124SMoriah Waterland "\n" \ 6062224350SCasper H.S. Dik "pkgadm sync [-R rootpath] [-q]\n" \ 6162224350SCasper H.S. Dik "\n" \ 6262224350SCasper H.S. Dik "\t- Writes the contents file and rolls the contents log file.\n" \ 6362224350SCasper H.S. Dik "\t- Optionally forces the contents file server to quit [-q].\n" \ 6462224350SCasper H.S. Dik "\n" \ 655c51f124SMoriah Waterland "pkgadm -V\n" \ 665c51f124SMoriah Waterland "\t- Displays packaging tools version\n" \ 675c51f124SMoriah Waterland "\n" \ 685c51f124SMoriah Waterland "pkgadm -?\n" \ 695c51f124SMoriah Waterland "\t- Shows this help message\n") 705c51f124SMoriah Waterland 715c51f124SMoriah Waterland #define MSG_WARNING gettext(\ 725c51f124SMoriah Waterland "WARNING") 735c51f124SMoriah Waterland 745c51f124SMoriah Waterland #define MSG_ERROR gettext(\ 755c51f124SMoriah Waterland "ERROR") 765c51f124SMoriah Waterland 775c51f124SMoriah Waterland #define MSG_T_OPTION_ARGS gettext(\ 785c51f124SMoriah Waterland "-t option takes 2 or 3 arguments, not %d!\n") 795c51f124SMoriah Waterland 805c51f124SMoriah Waterland #define MSG_T_RESULT_TWO gettext(\ 815c51f124SMoriah Waterland "result <%d>: <%s> ~= <%s>\n") 825c51f124SMoriah Waterland 835c51f124SMoriah Waterland #define MSG_T_RESULT_THREE gettext(\ 845c51f124SMoriah Waterland "required <%d> actual <%d> <%30s> ~- <%30s>\n") 855c51f124SMoriah Waterland 865c51f124SMoriah Waterland #define MSG_ERROR gettext(\ 875c51f124SMoriah Waterland "ERROR") 885c51f124SMoriah Waterland 895c51f124SMoriah Waterland /* warnings */ 905c51f124SMoriah Waterland 915c51f124SMoriah Waterland #define CREATE_PKGDIR_WARN gettext(\ 925c51f124SMoriah Waterland "Creating directory <%s>\n") 935c51f124SMoriah Waterland 945c51f124SMoriah Waterland #define MSG_VALID_STALE gettext(\ 955c51f124SMoriah Waterland "Removing stale lock on <%s> pid <%ld> zid <%ld>") 965c51f124SMoriah Waterland 975c51f124SMoriah Waterland /* errors */ 985c51f124SMoriah Waterland 995c51f124SMoriah Waterland #define MSG_INTERNAL gettext(\ 1005c51f124SMoriah Waterland "Intenal Error <%s>") 1015c51f124SMoriah Waterland 1025c51f124SMoriah Waterland #define MSG_OPEN gettext(\ 1035c51f124SMoriah Waterland "Cannot open <%s> for reading") 1045c51f124SMoriah Waterland 1055c51f124SMoriah Waterland #define MSG_OPEN_WRITE gettext(\ 1065c51f124SMoriah Waterland "Cannot open <%s> for writing") 1075c51f124SMoriah Waterland 1085c51f124SMoriah Waterland #define ERR_LOG_FAIL gettext(\ 1095c51f124SMoriah Waterland "Failed to log message using format <%s>") 1105c51f124SMoriah Waterland 1115c51f124SMoriah Waterland #define MSG_ZONES_MISSING_REQUEST gettext(\ 1125c51f124SMoriah Waterland "Must specify operation to perform\n") 1135c51f124SMoriah Waterland 1145c51f124SMoriah Waterland #define MSG_LOCK_ALTROOT_CANTCREATE gettext(\ 1155c51f124SMoriah Waterland "lock: cannot create alternative root directory <%s>: %s\n") 1165c51f124SMoriah Waterland 1175c51f124SMoriah Waterland #define MSG_LOCK_ALTROOT_NONEXIST gettext(\ 1185c51f124SMoriah Waterland "lock: argument to -R <%s> is not a directory: %s\n") 1195c51f124SMoriah Waterland 1205c51f124SMoriah Waterland #define MSG_LOCK_ROOTDIR_INVALID gettext(\ 1215c51f124SMoriah Waterland "lock: lock file base directory <%s> not valid: %s\n") 1225c51f124SMoriah Waterland 1235c51f124SMoriah Waterland #define MSG_LOCK_WFLAG_BADINT gettext(\ 1245c51f124SMoriah Waterland "The integer value <%s> given to the -W option includes an " \ 1255c51f124SMoriah Waterland "invalid character: \"%c\"\n") 1265c51f124SMoriah Waterland 1275c51f124SMoriah Waterland #define MSG_LOCK_pFLAG_BADINT gettext(\ 1285c51f124SMoriah Waterland "The integer value <%s> given to the -p option includes an " \ 1295c51f124SMoriah Waterland "invalid character: \"%c\"\n") 1305c51f124SMoriah Waterland 1315c51f124SMoriah Waterland #define MSG_LOCK_zFLAG_BADINT gettext(\ 1325c51f124SMoriah Waterland "The integer value <%s> given to the -z option includes an " \ 1335c51f124SMoriah Waterland "invalid character: \"%c\"\n") 1345c51f124SMoriah Waterland 1355c51f124SMoriah Waterland #define MSG_LOCK_nFLAG_BADINT gettext(\ 1365c51f124SMoriah Waterland "The integer value <%s> given to the -n option includes an " \ 1375c51f124SMoriah Waterland "invalid character: \"%c\"\n") 1385c51f124SMoriah Waterland 1395c51f124SMoriah Waterland #define MSG_LOCK_ar_TOGETHER gettext(\ 1405c51f124SMoriah Waterland "lock: The -a and -r options cannot be used together: "\ 1415c51f124SMoriah Waterland "specify only one.\n") 1425c51f124SMoriah Waterland 1435c51f124SMoriah Waterland #define MSG_LOCK_kARG_TOOLONG gettext(\ 1445c51f124SMoriah Waterland "Argument to -k is <%d> characters: may not exceed <%d> characters\n") 1455c51f124SMoriah Waterland 1465c51f124SMoriah Waterland #define MSG_LOCK_oARG_TOOLONG gettext(\ 1475c51f124SMoriah Waterland "Argument to -o is <%d> characters: may not exceed <%d> characters\n") 1485c51f124SMoriah Waterland 1495c51f124SMoriah Waterland #define MSG_LOCK_RARG_NOT_ABSOLUTE gettext(\ 1505c51f124SMoriah Waterland "Argument to -R must be absolute path: %s") 1515c51f124SMoriah Waterland 1525c51f124SMoriah Waterland #define MSG_LOCK_WFLAG_ERROR gettext(\ 1535c51f124SMoriah Waterland "Argument to -W has problem with wait interval <%s>: %s") 1545c51f124SMoriah Waterland 1555c51f124SMoriah Waterland #define MSG_LOCK_pFLAG_ERROR gettext(\ 1565c51f124SMoriah Waterland "Argument to -p has problem with process i.d. value <%s>: %s") 1575c51f124SMoriah Waterland 1585c51f124SMoriah Waterland #define MSG_LOCK_zFLAG_ERROR gettext(\ 1595c51f124SMoriah Waterland "Argument to -p has problem with zone i.d. value <%s>: %s") 1605c51f124SMoriah Waterland 1615c51f124SMoriah Waterland #define MSG_LOCK_nFLAG_ERROR gettext(\ 1625c51f124SMoriah Waterland "Argument to -n has problem with maximum number of retries " \ 1635c51f124SMoriah Waterland "value <%s>: %s") 1645c51f124SMoriah Waterland 1655c51f124SMoriah Waterland #define MSG_LOCK_es_TOGETHER gettext(\ 1665c51f124SMoriah Waterland "lock: The -e and -s options cannot be used together: "\ 1675c51f124SMoriah Waterland "specify only one.\n") 1685c51f124SMoriah Waterland 1695c51f124SMoriah Waterland #define MSG_LOCK_ak_TOGETHER gettext(\ 1705c51f124SMoriah Waterland "lock: The -k option cannot be used with the -a option.\n") 1715c51f124SMoriah Waterland 1725c51f124SMoriah Waterland #define MSG_LOCK_e_without_a gettext(\ 1735c51f124SMoriah Waterland "lock: The -e option can only be used with the -a option.\n") 1745c51f124SMoriah Waterland 1755c51f124SMoriah Waterland #define MSG_LOCK_s_without_a gettext(\ 1765c51f124SMoriah Waterland "lock: The -s option can only be used with the -a option.\n") 1775c51f124SMoriah Waterland 1785c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_KEYMISMATCH gettext(\ 1795c51f124SMoriah Waterland "cannot acquire %s lock on <%s>: object locked and specified key " \ 1805c51f124SMoriah Waterland "does not match") 1815c51f124SMoriah Waterland 1825c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_ERROR gettext(\ 1835c51f124SMoriah Waterland "cannot determine if object <%s> key <%s> is locked: %s") 1845c51f124SMoriah Waterland 1855c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_TIMEDOUT gettext(\ 1865c51f124SMoriah Waterland "cannot acquire %s lock on <%s> key <%s>: object locked, no key " \ 1875c51f124SMoriah Waterland "was specified, and the wait timed out") 1885c51f124SMoriah Waterland 1895c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_WAITING gettext(\ 1905c51f124SMoriah Waterland "object <%s> is locked: waiting for object to become available") 1915c51f124SMoriah Waterland 1925c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_REOPEN_FAILED gettext(\ 1935c51f124SMoriah Waterland "cannot reopen lock file after waiting for lock on object " \ 1945c51f124SMoriah Waterland "<%s> to be released") 1955c51f124SMoriah Waterland 1965c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_NOTLOCKED gettext(\ 1975c51f124SMoriah Waterland "cannot release lock on <%s> key <%s>: object not locked and " \ 1985c51f124SMoriah Waterland "a key was specified") 1995c51f124SMoriah Waterland 2005c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_LOCKED gettext(\ 2015c51f124SMoriah Waterland "cannot release lock on <%s> key <%s>: object locked but no " \ 2025c51f124SMoriah Waterland "key was specified") 2035c51f124SMoriah Waterland 2045c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_NOTFOUND gettext(\ 2055c51f124SMoriah Waterland "cannot release lock on <%s> key <%s>: object is not locked") 2065c51f124SMoriah Waterland 2075c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_KEYMISMATCH gettext(\ 2085c51f124SMoriah Waterland "cannot release lock on <%s>: object locked and specified key " \ 2095c51f124SMoriah Waterland "does not match") 2105c51f124SMoriah Waterland 2115c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_ERROR gettext(\ 2125c51f124SMoriah Waterland "cannot determine if object <%s> key <%s> is locked") 2135c51f124SMoriah Waterland 2145c51f124SMoriah Waterland #define MSG_LOCK_EXEC_ACCESS gettext(\ 2155c51f124SMoriah Waterland "cannot execute command <%s>: %s") 2165c51f124SMoriah Waterland 2175c51f124SMoriah Waterland #define MSG_LOCK_EXEC_NOINPUT gettext(\ 2185c51f124SMoriah Waterland "cannot open input file <%s>: %s") 2195c51f124SMoriah Waterland 2205c51f124SMoriah Waterland #define MSG_LOCK_EXEC_NOPIPE gettext(\ 2215c51f124SMoriah Waterland "cannot create pipe: %s") 2225c51f124SMoriah Waterland 2235c51f124SMoriah Waterland #define MSG_LOCK_FINDLOCK_LSEEK_FAILURE gettext(\ 2245c51f124SMoriah Waterland "cannot find lock <%s> key <%s>: lseek failure: %s") 2255c51f124SMoriah Waterland 2265c51f124SMoriah Waterland #define MSG_LOCK_ADDLOCK_PWRITE_FAILURE gettext(\ 2275c51f124SMoriah Waterland "cannot create %s lock for object <%s>: pwrite failure: %s") 2285c51f124SMoriah Waterland 2295c51f124SMoriah Waterland #define MSG_LOCK_ADDLOCK_LSEEK_FAILURE gettext(\ 2305c51f124SMoriah Waterland "cannot create %s lock for object <%s>: lseek failure: %s") 2315c51f124SMoriah Waterland 2325c51f124SMoriah Waterland #define MSG_LOCK_INCLOCK_PWRITE_FAILURE gettext(\ 2335c51f124SMoriah Waterland "cannot increment %s lock for object <%s>: pwrite failure: %s") 2345c51f124SMoriah Waterland 2355c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_PWRITE_FAILURE gettext(\ 2365c51f124SMoriah Waterland "cannot decrement %s lock for object <%s>: pwrite failure: %s") 2375c51f124SMoriah Waterland 2385c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_PREAD_FAILURE gettext(\ 2395c51f124SMoriah Waterland "cannot decrement %s lock for object <%s>: pread failure: %s") 2405c51f124SMoriah Waterland 2415c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_LSEEK_FAILURE gettext(\ 2425c51f124SMoriah Waterland "cannot decrement %s lock for object <%s>: lseek failure: %s") 2435c51f124SMoriah Waterland 2445c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_FTRUNCATE_FAILURE gettext(\ 2455c51f124SMoriah Waterland "cannot decrement %s lock for object <%s>: ftruncate failure: %s") 2465c51f124SMoriah Waterland 2475c51f124SMoriah Waterland /* 2485c51f124SMoriah Waterland * i18n: 2495c51f124SMoriah Waterland * next two messages grouped together 2505c51f124SMoriah Waterland */ 2515c51f124SMoriah Waterland 2525c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_BUSY_QUASI gettext(\ 2535c51f124SMoriah Waterland "cannot acquire %s lock on <%s> key <%s>: object matches wildcard " \ 2545c51f124SMoriah Waterland "<%s> lock%s") 2555c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_BUSY_FIRST gettext(\ 2565c51f124SMoriah Waterland "cannot acquire %s lock on <%s> key <%s>: object <%s> is locked <%s>%s") 2575c51f124SMoriah Waterland 2585c51f124SMoriah Waterland /* 2595c51f124SMoriah Waterland * i18n: note this message may be appended to the previous message 2605c51f124SMoriah Waterland * by supplying it to the final "%s" at the end of the line above; 2615c51f124SMoriah Waterland * that is either: 2625c51f124SMoriah Waterland * cannot acquire %s lock on <%s> key <%s>: object is locked <%s> 2635c51f124SMoriah Waterland * or: 2645c51f124SMoriah Waterland * cannot acquire %s lock on <%s> [...] is locked <%s> and no key specified 2655c51f124SMoriah Waterland */ 2665c51f124SMoriah Waterland 2675c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_BUSY_ADDITIONAL gettext(\ 2685c51f124SMoriah Waterland " and no key specified") 2695c51f124SMoriah Waterland 2705c51f124SMoriah Waterland /* 2715c51f124SMoriah Waterland * i18n: note these two "messages" are inserted into other 2725c51f124SMoriah Waterland * messages, such as: 2735c51f124SMoriah Waterland * cannot acquire %s lock on <%s> 2745c51f124SMoriah Waterland * will be either: 2755c51f124SMoriah Waterland * cannot acquire shared lock on <%s> 2765c51f124SMoriah Waterland * or 2775c51f124SMoriah Waterland * cannot acquire exclusive lock on <%s> 2785c51f124SMoriah Waterland */ 2795c51f124SMoriah Waterland 2805c51f124SMoriah Waterland #define MSG_LOCK_EXC gettext(\ 2815c51f124SMoriah Waterland "exclusive") 2825c51f124SMoriah Waterland 2835c51f124SMoriah Waterland #define MSG_LOCK_SHR gettext(\ 2845c51f124SMoriah Waterland "shared") 2855c51f124SMoriah Waterland 2865c51f124SMoriah Waterland /* 2875c51f124SMoriah Waterland * i18n: note these messages are "debugging" messages and will normally 2885c51f124SMoriah Waterland * not be seen unless debugging has been enabled for problem root causing 2895c51f124SMoriah Waterland * so they are not meant to be perfectly "human readable" 2905c51f124SMoriah Waterland */ 2915c51f124SMoriah Waterland 2925c51f124SMoriah Waterland #define MSG_VALID_NOPID gettext(\ 2935c51f124SMoriah Waterland "validate lock <%s>: VALID (no pid)") 2945c51f124SMoriah Waterland 2955c51f124SMoriah Waterland #define MSG_VALID_BADZID gettext(\ 2965c51f124SMoriah Waterland "validate lock <%s>: VALID (lock zid <%ld> this zid <%ld>)") 2975c51f124SMoriah Waterland 2985c51f124SMoriah Waterland #define MSG_VALID_ZIDOK gettext(\ 2995c51f124SMoriah Waterland "validate lock <%s>: zone i.d.s match (lock zid <%ld> this zid <%ld>)") 3005c51f124SMoriah Waterland 3015c51f124SMoriah Waterland #define MSG_VALID_OK gettext(\ 3025c51f124SMoriah Waterland "validate lock <%s> pid <%ld> path <%s>: VALID") 3035c51f124SMoriah Waterland 3045c51f124SMoriah Waterland #define MSG_VALID_NOTOK gettext(\ 3055c51f124SMoriah Waterland "validate lock <%s> pid <%ld> path <%s>: NOT VALID") 3065c51f124SMoriah Waterland 3075c51f124SMoriah Waterland #define MSG_LCKMCH_ENTRY gettext(\ 3085c51f124SMoriah Waterland "lockMatch: *** BEGIN *** compare objects <%s> <%s>") 3095c51f124SMoriah Waterland 3105c51f124SMoriah Waterland #define MSG_LCKMCH_FSTNODE gettext(\ 3115c51f124SMoriah Waterland "lockMatch: first lock node (%d) <%s>") 3125c51f124SMoriah Waterland 3135c51f124SMoriah Waterland #define MSG_LCKMCH_SCNDNODE gettext(\ 3145c51f124SMoriah Waterland "lockMatch: second lock node (%d) <%s>") 3155c51f124SMoriah Waterland 3165c51f124SMoriah Waterland #define MSG_LCKMCH_NODES gettext(\ 3175c51f124SMoriah Waterland "lockMatch: first lock node <%s> prefix <%s> (%d) second lock " \ 3185c51f124SMoriah Waterland " node <%s> prefix <%s> (%d)") 3195c51f124SMoriah Waterland 3205c51f124SMoriah Waterland #define MSG_LCKMCH_DIRMCH gettext(\ 3215c51f124SMoriah Waterland "lockMatch: no prefix direct comparison: match: <%s> <%s>") 3225c51f124SMoriah Waterland 3235c51f124SMoriah Waterland #define MSG_LCKMCH_DIRNOMCH gettext(\ 3245c51f124SMoriah Waterland "lockMatch: no prefix direct comparison: NO MATCH: <%s> <%s>") 3255c51f124SMoriah Waterland 3265c51f124SMoriah Waterland #define MSG_LCKMCH_PFXMCH gettext(\ 3275c51f124SMoriah Waterland "lockMatch: prefix comparison: match: <%s> <%s>") 3285c51f124SMoriah Waterland 3295c51f124SMoriah Waterland #define MSG_LCKMCH_PFXNOMCH gettext(\ 3305c51f124SMoriah Waterland "lockMatch: prefix comparison: NO MATCH: <%s> <%s>") 3315c51f124SMoriah Waterland 3325c51f124SMoriah Waterland #define MSG_LCKMCH_FSTLCK gettext(\ 3335c51f124SMoriah Waterland "lockMatch: first lock index (%d) last scanned node <%s> prefix " \ 3345c51f124SMoriah Waterland "<%s> (%d)") 3355c51f124SMoriah Waterland 3365c51f124SMoriah Waterland #define MSG_LCKMCH_SCNDLCK gettext(\ 3375c51f124SMoriah Waterland "lockMatch: second lock index (%d) last scanned node <%s> prefix " \ 3385c51f124SMoriah Waterland "<%s> (%d)") 3395c51f124SMoriah Waterland 3405c51f124SMoriah Waterland #define MSG_LCKMCH_ABSNOMCH gettext(\ 3415c51f124SMoriah Waterland "lockMatch: absolute locks: NO MATCH: <%s> <%s>") 3425c51f124SMoriah Waterland 3435c51f124SMoriah Waterland #define MSG_LCKMCH_OBJMCH gettext(\ 3445c51f124SMoriah Waterland "lockMatch: object locks: match: <%s> <%s>") 3455c51f124SMoriah Waterland 3465c51f124SMoriah Waterland #define MSG_LCKMCH_OVLPNOMCH gettext(\ 3475c51f124SMoriah Waterland "lockMatch: nonmatching overlapping objects: <%s> <%s> before " \ 3485c51f124SMoriah Waterland "(%d) <%s>") 3495c51f124SMoriah Waterland 3505c51f124SMoriah Waterland #define MSG_LCKMCH_SAME gettext(\ 3515c51f124SMoriah Waterland "lockMatch: locks begin with same node - compare: <%s> <%s> at <%s>") 3525c51f124SMoriah Waterland 3535c51f124SMoriah Waterland #define MSG_LCKMCH_SCNDSUB gettext(\ 3545c51f124SMoriah Waterland "lockMatch: second lock <%s> subset of <%s> at (%d) <%s>") 3555c51f124SMoriah Waterland 3565c51f124SMoriah Waterland #define MSG_LCKMCH_FRSTSUB gettext(\ 3575c51f124SMoriah Waterland "lockMatch: first lock <%s> subset of <%s> at (%d) <%s>") 3585c51f124SMoriah Waterland 3595c51f124SMoriah Waterland #define MSG_LCKMCH_DONTKNOW gettext(\ 3605c51f124SMoriah Waterland "lockMatch: unable to determine how to compare locks: <%s> <%s>: " \ 3615c51f124SMoriah Waterland "using direct comparision") 3625c51f124SMoriah Waterland 3635c51f124SMoriah Waterland #define MSG_LCKMCH_READY gettext(\ 3645c51f124SMoriah Waterland "lockMatch: comparing nodes locks <%s> <%s>") 3655c51f124SMoriah Waterland 3665c51f124SMoriah Waterland #define MSG_LCKMCH_NODEFAIL gettext(\ 3675c51f124SMoriah Waterland "lockMatch: node (%d) comparison: NO MATCH: <%s> != <%s>") 3685c51f124SMoriah Waterland 3695c51f124SMoriah Waterland #define MSG_LCKMCH_NODEOK gettext(\ 3705c51f124SMoriah Waterland "lockMatch: node (%d) comparision: match: <%s> == <%s>") 3715c51f124SMoriah Waterland 3725c51f124SMoriah Waterland #define MSG_LCKMCH_MATCHOK gettext(\ 3735c51f124SMoriah Waterland "lockMatch: locks match: <%s> == <%s>") 3745c51f124SMoriah Waterland 3755c51f124SMoriah Waterland #define MSG_LOCK_EXEC_RESULTS gettext(\ 3765c51f124SMoriah Waterland "command <%s> executed: pid <%d> errno <0x%04x> status <0x%04x> " \ 3775c51f124SMoriah Waterland "final status <0x%04x> output <%s>") 3785c51f124SMoriah Waterland 3795c51f124SMoriah Waterland #define MSG_LOCK_GENUID_INTERNAL gettext(\ 3805c51f124SMoriah Waterland "generated new unique key using date: %s") 3815c51f124SMoriah Waterland 3825c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_DECING gettext(\ 3835c51f124SMoriah Waterland "decrement <%s> lock count record <%d> count <%d>") 3845c51f124SMoriah Waterland 3855c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_DONE gettext(\ 3865c51f124SMoriah Waterland "decrement lock record <%d> count <%d> object <%s> key <%s>") 3875c51f124SMoriah Waterland 3885c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_REMOVE gettext(\ 3895c51f124SMoriah Waterland "decrement lock remove record lastPos %ld last record %d " \ 3905c51f124SMoriah Waterland "current record %d") 3915c51f124SMoriah Waterland 3925c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_LASTONE gettext(\ 3935c51f124SMoriah Waterland "decrement lock removing <%s> lock last record <%d> " \ 3945c51f124SMoriah Waterland "truncating to <%ld>") 3955c51f124SMoriah Waterland 3965c51f124SMoriah Waterland #define MSG_LOCK_DECLOCK_REMOVING gettext(\ 3975c51f124SMoriah Waterland "decrement lock removing record <%d> last record <%d> " \ 3985c51f124SMoriah Waterland "truncating to <%ld>") 3995c51f124SMoriah Waterland 4005c51f124SMoriah Waterland #define MSG_LOCK_INCLOCK_ENTRY gettext(\ 4015c51f124SMoriah Waterland "increment <%s> lock count record <%d> count <%d>") 4025c51f124SMoriah Waterland 4035c51f124SMoriah Waterland #define MSG_LOCK_INCLOCK_DONE gettext(\ 4045c51f124SMoriah Waterland "increment lock record <%d> count <%d> object <%s> key <%s>") 4055c51f124SMoriah Waterland 4065c51f124SMoriah Waterland #define MSG_LOCK_ADDLOCK_ADDING gettext(\ 4075c51f124SMoriah Waterland "adding %s lock pos <%d> object <%s> key <%s> pid <%ld> zid <%ld>") 4085c51f124SMoriah Waterland 4095c51f124SMoriah Waterland #define MSG_LOCK_FINDLOCK_ENTRY gettext(\ 4105c51f124SMoriah Waterland "find lock object <%s> key <%s>") 4115c51f124SMoriah Waterland 4125c51f124SMoriah Waterland #define MSG_LOCK_FINDLOCK_READRECORD gettext(\ 4135c51f124SMoriah Waterland "find lock read record <%d>: count <%d> object <%s> key <%s> pid " \ 4145c51f124SMoriah Waterland "<%ld> zid <%ld>") 4155c51f124SMoriah Waterland 4165c51f124SMoriah Waterland #define MSG_LOCK_FINDLOCK_FOUND gettext(\ 4175c51f124SMoriah Waterland "find lock record found") 4185c51f124SMoriah Waterland 4195c51f124SMoriah Waterland #define MSG_LOCK_FINDLOCK_NOTFOUND gettext(\ 4205c51f124SMoriah Waterland "find lock record not found") 4215c51f124SMoriah Waterland 4225c51f124SMoriah Waterland #define MSG_LOCK_OPENFILE_ENTRY gettext(\ 4235c51f124SMoriah Waterland "open lock file root <%s> file <%s>") 4245c51f124SMoriah Waterland 4255c51f124SMoriah Waterland #define MSG_LOCK_OPENFILE_SLEEPING gettext(\ 4265c51f124SMoriah Waterland "open lock file busy <%s>: sleeping <%d>") 4275c51f124SMoriah Waterland 4285c51f124SMoriah Waterland #define MSG_LOCK_OPENFILE_FAILURE gettext(\ 4295c51f124SMoriah Waterland "open lock file could not be opened: %s") 4305c51f124SMoriah Waterland 4315c51f124SMoriah Waterland #define MSG_LOCK_OPENFILE_SLEEP2 gettext(\ 4325c51f124SMoriah Waterland "open lock file cannot obtain record lock <%s>: sleeping <%d>") 4335c51f124SMoriah Waterland 4345c51f124SMoriah Waterland #define MSG_LOCK_OPENFILE_FAIL2 gettext(\ 4355c51f124SMoriah Waterland "open lock file could not obtain record lock: <%s>") 4365c51f124SMoriah Waterland 4375c51f124SMoriah Waterland #define MSG_LOCK_OPENFILE_SUCCESS gettext(\ 4385c51f124SMoriah Waterland "open lock file: opened and locked fd <%d>") 4395c51f124SMoriah Waterland 4405c51f124SMoriah Waterland #define MSG_LOCK_STATUS_READRECORD gettext(\ 4415c51f124SMoriah Waterland "status read record <%d>: count <%d> object <%s> key <%s> pid <%ld> " \ 4425c51f124SMoriah Waterland "zid <%ld>") 4435c51f124SMoriah Waterland 4445c51f124SMoriah Waterland #define MSG_LOCK_STATUS_ENTRY gettext(\ 4455c51f124SMoriah Waterland "status key=<%s> object=<%s>") 4465c51f124SMoriah Waterland 4475c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_FOUND gettext(\ 4485c51f124SMoriah Waterland "object <%s> key <%s> is locked: decrementing lock count") 4495c51f124SMoriah Waterland 4505c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_ENTRY gettext(\ 4515c51f124SMoriah Waterland "release lock key=<%s> object=<%s> quiet=<%d>") 4525c51f124SMoriah Waterland 4535c51f124SMoriah Waterland #define MSG_LOCK_RELEASE_FINDRESULT gettext(\ 4545c51f124SMoriah Waterland "release lock result <%d> record <%d>") 4555c51f124SMoriah Waterland 4565c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_FOUND_INC gettext(\ 4575c51f124SMoriah Waterland "object <%s> key <%s> is locked: incrementing <%s> lock count") 4585c51f124SMoriah Waterland 4595c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_ENTRY gettext(\ 4605c51f124SMoriah Waterland "acquire lock key=<%s> object=<%s> quiet=<%d> exclusive=<%d>") 4615c51f124SMoriah Waterland 4625c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_FINDRESULT gettext(\ 4635c51f124SMoriah Waterland "acquire %s lock result <%d> record <%d>") 4645c51f124SMoriah Waterland 4655c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_LOCKED_SHARED gettext(\ 4665c51f124SMoriah Waterland "object <%s> key <%s> is locked but shared: incrementing lock count") 4675c51f124SMoriah Waterland 4685c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_NOTLOCKED gettext(\ 4695c51f124SMoriah Waterland "cannot acquire %s lock on <%s> key <%s>: object not locked " \ 4705c51f124SMoriah Waterland "and non-matching key specified") 4715c51f124SMoriah Waterland 4725c51f124SMoriah Waterland #define MSG_LOCK_ACQUIRE_NOTFOUND gettext(\ 4735c51f124SMoriah Waterland "acquiring %s lock on object <%s>") 4745c51f124SMoriah Waterland 4755c51f124SMoriah Waterland #ifdef __cplusplus 4765c51f124SMoriah Waterland } 4775c51f124SMoriah Waterland #endif 4785c51f124SMoriah Waterland 4795c51f124SMoriah Waterland #endif /* _PKGADM_MSGS_H */ 480