pkgcond_msgs.h revision 12734:76969fc28795
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 (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 24 */ 25 26#ifndef _PKGCOND_MSGS_H 27#define _PKGCOND_MSGS_H 28 29 30#include <libintl.h> 31 32#ifdef __cplusplus 33extern "C" { 34#endif 35 36#ifdef lint 37#define gettext(x) x 38#endif 39 40/* generic messages */ 41 42#define MSG_USAGE gettext(\ 43"%s; usage is:\n" \ 44"\t%s [-nv] <condition> [ <option(s)> ]\n" \ 45"\n" \ 46"command options:\n" \ 47"\t-n - negate results of condition test\n" \ 48"\t-v - verbose output of condition testing\n" \ 49"\n" \ 50"<condition> may be any one of:\n" \ 51"%s\n" \ 52"<option(s)> are specific to the condition used\n" \ 53"\n" \ 54"pkgcond -?\n" \ 55"\t- Shows this help message\n") 56 57#define MSG_NO_PKG_ENV_DATA_PRESENT gettext(\ 58"no data available from package tools: zone information may be incomplete") 59 60#define MSG_NO_ARGUMENTS_SPECIFIED gettext(\ 61"no condition to check specified") 62 63#define MSG_INVALID_OPTION_SPECIFIED gettext(\ 64"option <%c> not recognized") 65 66#define MSG_IS_INVALID_OPTION gettext(\ 67"option <%c> not recognized by condition <%s>") 68 69#define MSG_UNRECOGNIZED_CONDITION_SPECIFIED gettext(\ 70"condition not recognized") 71 72#define MSG_IS_WHAT_RESULT gettext(\ 73"%s=%d") 74 75/* debugging messages */ 76 77#define DBG_NO_RECURSION gettext(\ 78"nonrecursive call to <%s>") 79 80#define DBG_RECURSION gettext(\ 81"recursive call to <%s> count <%d> ignored") 82 83#define DBG_TESTPATH_OK gettext(\ 84"path <%s> matches all criteria") 85 86#define DBG_ADDV_PATH_IS_SYMLINK gettext(\ 87"cannot add driver to path <%s>: <%s> does not exist or exists but " \ 88"is a symbolic link") 89 90#define DBG_ADDV_YES gettext(\ 91"root path <%s> can have a driver added") 92 93#define DBG_UPDV_PATH_IS_SYMLINK gettext(\ 94"cannot update driver to path <%s>: <%s> does not exist or exists but " \ 95"is a symbolic link") 96 97#define DBG_UPDV_YES gettext(\ 98"root path <%s> can have a driver updated") 99 100#define DBG_RMDV_PATH_IS_SYMLINK gettext(\ 101"cannot remove driver to path <%s>: <%s> does not exist or exists but " \ 102"is a symbolic link") 103 104#define DBG_RMDV_YES gettext(\ 105"root path <%s> can have a driver removed") 106 107#define DBG_ROOTPATH_IS gettext(\ 108"root path is <%s>") 109 110#define DBG_CANNOT_ACCESS_PATH_BUT_SHOULD gettext(\ 111"test_path: path <%s> must exist and does not: %s") 112 113#define DBG_CANNOT_ACCESS_PATH_OK gettext(\ 114"test_path: path <%s> must not (and does not) exist") 115 116#define DBG_PATH_DOES_NOT_EXIST gettext(\ 117"test_path: path <%s> does not exist: %s") 118 119#define DBG_CANNOT_LSTAT_PATH gettext(\ 120"test_path: cannot lstat path <%s>: %s") 121 122#define DBG_IS_A_DIRECTORY gettext(\ 123"test_path: path <%s> is a directory but is not supposed to be") 124 125#define DBG_IS_NOT_A_DIRECTORY gettext(\ 126"test_path: path <%s> is not a directory but is supposed to be") 127 128#define DBG_DIRECTORY_NOT gettext(\ 129"test_path: path <%s> is not a directory") 130 131#define DBG_DIRECTORY_IS gettext(\ 132"test_path: path <%s> is a directory") 133 134#define DBG_IS_A_FILE gettext(\ 135"test_path: path <%s> is a file but is not supposed to be") 136 137#define DBG_IS_NOT_A_FILE gettext(\ 138"test_path: path <%s> is not a file but is supposed to be") 139 140#define DBG_TOKEN__EXISTS gettext(\ 141"test_path: token <%s> exists in path <%s>") 142 143#define DBG_FILE_NOT gettext(\ 144"test_path: path <%s> is not a file") 145 146#define DBG_FILE_IS gettext(\ 147"test_path: path <%s> is a file") 148 149#define DBG_IS_A_SYMLINK gettext(\ 150"test_path: path <%s> is a symlink but is not supposed to be") 151 152#define DBG_IS_NOT_A_SYMLINK gettext(\ 153"test_path: path <%s> is not a symlink but is supposed to be") 154 155#define DBG_SORTEDINS_SKIPPED gettext(\ 156"duplicate entry <%d> : <%s> (<%s> vs <%s>, <%s> vs <%s>): merged options") 157 158#define DBG_SYMLINK_NOT gettext(\ 159"test_path: path <%s> is not a symlink") 160 161#define DBG_SYMLINK_IS gettext(\ 162"test_path: path <%s> is a symlink") 163 164#define DBG_SET_NEGATE_RESULTS gettext(\ 165"set_negate_results: current setting <%d> new setting <%d>") 166 167#define DBG_ADJUST_RESULTS gettext(\ 168"adjust_results: result <%d> negate <%d> returned result <%d>") 169 170#define DBG_PARSE_GLOBAL gettext(\ 171"parsing global data <%s>") 172 173#define DBG_NO_DEFAULT_ROOT_PATH_SET gettext(\ 174"no default root path set") 175 176#define DBG_DEFAULT_ROOT_PATH_SET gettext(\ 177"default root path <%s> set from environment variable <%s>") 178 179#define DBG_RESULTS gettext(\ 180"returning results <%d>") 181 182#define DBG_SET_ROOT_PATH_TO gettext(\ 183"setting root path to <%s>") 184 185#define DBG_TEST_PATH gettext(\ 186"test path <%s> flags <0x%08lx>") 187 188#define DBG_TEST_PATH_NO_RESOLVE gettext(\ 189"cannot resolve path <%s>") 190 191#define DBG_TEST_PATH_RESOLVE gettext(\ 192"test resolved path <%s>") 193 194#define DBG_TEST_EXISTS_SHOULD_NOT gettext(\ 195"path <%s> exists but should not") 196 197#define DBG_PARSED_ENVIRONMENT gettext(\ 198"global data parsed from environment variable <%s>") 199 200#define DBG_DUMP_GLOBAL_ENTRY gettext(\ 201"global data settings") 202 203#define DBG_DUMP_GLOBAL_PARENT_ZONE gettext(\ 204"parentzone zoneName <%s> zoneType <%s>") 205 206#define DBG_DUMP_GLOBAL_CURRENT_ZONE gettext(\ 207"currentzone zoneName <%s> zoneType <%s>") 208 209#define DBG_IDLC_INITIAL_INSTALL gettext(\ 210"path <%s> is not a diskless client: initial installation in progress") 211 212#define DBG_IDLC_ZONE_INSTALL gettext(\ 213"path <%s> is not a diskless client: initial zone installation in progress") 214 215#define DBG_IDLC_PKG_NOT_INSTALLED gettext(\ 216"path <%s> is not a diskless client: package <%s> is not installed in <%s>") 217 218#define DBG_IDLC_ROOTPATH_BAD gettext(\ 219"path <%s> is not a diskless client: root path cannot be <%s>") 220 221#define DBG_IDLC_ZONE_BAD gettext(\ 222"path <%s> is not a diskless client: current zone must be <%s>") 223 224#define DBG_IDLC_PATH_MISSING gettext(\ 225"path <%s> is not a diskless client: <%s> does not exist") 226 227#define DBG_IDLC_USR_IS_NOT_EMPTY gettext(\ 228"path <%s> is not a diskless client: </usr> is not empty") 229 230#define DBG_IDLC_NO_TEMPLATES_PATH gettext(\ 231"path <%s> is not a diskless client: <%s/%s> does not exist") 232 233#define DBG_IDLC_PATH_IS_DISKLESS_CLIENT gettext(\ 234"path <%s> is a diskless client") 235 236#define DBG_ISGZ_INITIAL_INSTALL gettext(\ 237"path <%s> is not a global zone: initial installation in progress") 238 239#define DBG_ISGZ_NGZ_ZONE_INSTALL gettext(\ 240"path <%s> is not a global zone: initial non-global zone " \ 241"installation in progress") 242 243#define DBG_ISGZ_PATH_IS_GLOBAL_ZONE gettext(\ 244"path <%s> is a global zone") 245 246#define DBG_ISGZ_PATH_ISNT_DIRECTORY gettext(\ 247"path <%s> is not a global zone: directory <%s> does not exist") 248 249#define DBG_ISGZ_PATH_EXISTS gettext(\ 250"path <%s> is not a global zone: <%s> exists") 251 252#define DBG_ISGZ_ZONENAME_ISNT_GLOBAL gettext(\ 253"path <%s> is not a global zone: zone name <%s> is not <global>") 254 255#define DBG_ISGZ_PATH_IS_SYMLINK gettext(\ 256"path <%s> is not a global zone: <%s> does not exist or exists but " \ 257"is a symbolic link") 258 259#define DBG_INIM_INITIAL_INSTALL gettext(\ 260"path <%s> is not a netinstall image: initial installation in progress") 261 262#define DBG_INIM_ZONE_INSTALL gettext(\ 263"path <%s> is not a netinstall image: initial zone installation in progress") 264 265#define DBG_INIM_PATH_IS_NETINSTALL_IMAGE gettext(\ 266"path <%s> is a netinstall image") 267 268#define DBG_INIM_BAD_CURRENT_ZONE gettext(\ 269"path <%s> is not a netinstall image: current zone is not <%s>") 270 271#define DBG_INIM_PATH_ISNT_SYMLINK gettext(\ 272"path <%s> is not a netinstall image: <%s> does not exist or exists " \ 273"but is not a symbolic link") 274 275#define DBG_INIM_PATH_ISNT_DIRECTORY gettext(\ 276"path <%s> is not a netinstall image: <%s> does not exist or " \ 277"is not a directory") 278 279#define DBG_IMRT_INITIAL_INSTALL gettext(\ 280"path <%s> is not a mounted miniroot image: initial installation in progress") 281 282#define DBG_IMRT_ZONE_INSTALL gettext(\ 283"path <%s> is not a mounted miniroot image: initial zone " \ 284"installation in progress") 285 286#define DBG_IMRT_PATH_IS_MOUNTED_MINIROOT gettext(\ 287"path <%s> is a mounted miniroot") 288 289#define DBG_IMRT_BAD_CURRENT_ZONE gettext(\ 290"path <%s> is not a mounted miniroot image: current zone is not <%s>") 291 292#define DBG_IMRT_ROOTDIR_BAD gettext(\ 293"path <%s> is not a mounted miniroot image: root directory is not <%s>") 294 295#define DBG_IMRT_PATH_ISNT_SYMLINK gettext(\ 296"path <%s> is not a mounted miniroot image: <%s> does not exist or is " \ 297" not a symbolic link") 298 299#define DBG_IMRT_PATH_ISNT_DIRECTORY gettext(\ 300"path <%s> is not a netinstall image: <%s> does not exist or is not " \ 301" a directory") 302 303#define DBG_NGZN_INITIAL_INSTALL gettext(\ 304"path <%s> is not a non-global zone: initial installation in progress") 305 306#define DBG_NGZN_GLOBAL_ZONE_INSTALL gettext(\ 307"path <%s> is not a non-global zone: initial global zone " \ 308"installation in progress") 309 310#define DBG_NGZN_IN_GZ_IS_NONGLOBAL_ZONE gettext(\ 311"path <%s> is a non-global zone: running in global zone") 312 313#define DBG_NGZN_PARENT_CHILD_SAMEZONE gettext(\ 314"path <%s> is a non-global zone: parent/child are same zone name <%s>") 315 316#define DBG_NGZN_IS_NONGLOBAL_ZONE gettext(\ 317"path <%s> is a non-global zone") 318 319#define DBG_NGZN_ZONENAME_ISNT_NGZ gettext(\ 320"path <%s> is not a non-global zone: zone name is <%s>") 321 322#define DBG_NGZN_INSTALL_ZONENAME_IS_NGZ gettext(\ 323"path <%s> is a non-global zone: installation of non-global zone name is <%s>") 324 325#define DBG_NGZN_ZONENAME_IS_NGZ gettext(\ 326"path <%s> is a non-global zone: zone name is <%s>") 327 328#define DBG_NGZN_PATH_EXISTS gettext(\ 329"path <%s> is not a non-global zone: <%s> exists") 330 331#define DBG_NGZN_BAD_PARENT_ZONETYPE gettext(\ 332"path <%s> is not a non-global zone: parent zone type is <%s>") 333 334#define DBG_NGZN_BAD_CURRENT_ZONETYPE gettext(\ 335"path <%s> is not a non-global zone: current zone type is <%s>") 336 337#define DBG_NGZN_PATH_DOES_NOT_EXIST gettext(\ 338"path <%s> is not a non-global zone: <%s> does not exist or exists but " \ 339"is a symbolic link") 340 341#define DBG_IRST_INITIAL_INSTALL gettext(\ 342"path <%s> is not the current running system: initial installation in progress") 343 344#define DBG_IRST_ZONE_INSTALL gettext(\ 345"path <%s> is not the current running system: initial zone installation " \ 346"in progress") 347 348#define DBG_IRST_PATH_IS_RUNNING_SYSTEM gettext(\ 349"path <%s> is a running system") 350 351#define DBG_IRST_ZONE_BAD gettext(\ 352"path <%s> is not the current running system: the current zone name " \ 353" is not <%s>") 354 355#define DBG_IRST_ROOTPATH_BAD gettext(\ 356"path <%s> is not the current running system: root path is not <%s>") 357 358#define DBG_IALR_INITIAL_INSTALL gettext(\ 359"path <%s> is an alternative root: initial installation in progress") 360 361#define DBG_IALR_ZONE_INSTALL gettext(\ 362"path <%s> is not an alternative root: initial zone installation in progress") 363 364#define DBG_IALR_PATH_DOES_NOT_EXIST gettext(\ 365"path <%s> is not an alternative root: <%s> does not exist or exists but " \ 366"is a symbolic link") 367 368#define DBG_IALR_BAD_ROOTPATH gettext(\ 369"path <%s> is not an alternative root: root directory is <%s>") 370 371#define DBG_IALR_IS gettext(\ 372"root path <%s> is an alternative root") 373 374#define DBG_WRNG_IS gettext(\ 375"root path <%s> is a whole root non-global zone") 376 377#define DBG_BENV_INITIAL_INSTALL gettext(\ 378"path <%s> is not an alternative boot environment: initial " \ 379"installation in progress") 380 381#define DBG_BENV_ZONE_INSTALL gettext(\ 382"path <%s> is not an alternative boot environment: initial zone " \ 383"installation in progress") 384 385#define DBG_BENV_IS gettext(\ 386"path <%s> is an alternative boot environment") 387 388#define DBG_BENV_NO_ETCLU gettext(\ 389"path <%s> is not an alternative boot environment: <%s> does " \ 390"not exist or is not a directory") 391 392#define DBG_BENV_NO_ETCLUTAB gettext(\ 393"path <%s> is not an alternative boot environment: <%s> does not exist") 394 395#define DBG_BENV_BAD_ZONE gettext(\ 396"path <%s> is not an alternative boot environment: " \ 397"the current zone name is not <%s>") 398 399#define DBG_BENV_BAD_ROOTPATH gettext(\ 400"path <%s> is not an alternative boot environment: root directory is <%s>") 401 402#define DBG_PWRT_READONLY gettext(\ 403"root path <%s> is not writeable: is read only <%s>") 404 405#define DBG_PWRT_IS gettext(\ 406"root path <%s> is writeable") 407 408#define DBG_PWRT_INFO gettext(\ 409"root path <%s> is mount point <%s> fstype <%s> options <%s>") 410 411#define DBG_NO_GLOBAL_DATA_AVAILABLE gettext(\ 412"no global data available in environment variable <%s>") 413 414#define DBG_CKSR_FSREADONLY gettext(\ 415"file system <%s> type <%s> is read-only") 416 417#define DBG_CALCSCFG_MOUNTED gettext(\ 418"analyzing mounted file systems") 419 420#define DBG_SINS_ENTRY gettext(\ 421"inserting mount point <%s> type <%s> options <%s>") 422 423#define DBG_NGZN_PATH_EXISTS gettext(\ 424"path <%s> is not a non-global zone: <%s> exists") 425 426#define DBG_CMDLINE_PATH gettext(\ 427"command line path to check set to: <%s>") 428 429/* warnings */ 430 431#define WRN_PARSED_DATA_MISSING gettext(\ 432"available global data missing <%s>") 433 434/* errors */ 435 436#define MSG_FATAL gettext(\ 437 "Fatal Error") 438 439#define ERR_REQUIRED_ROOTPATH_MISSING gettext(\ 440"the <%s> condition requires a root path to be specified") 441 442#define ERR_CANNOT_GET_ZONENAME gettext(\ 443"could not determine zone name") 444 445#define ERR_CANNOT_CALC_FS_CONFIG gettext(\ 446"cannot calculate file system config") 447 448#define ERR_CANNOT_PARSE_GLOBAL_DATA gettext(\ 449"cannot parse global data SML: <%s>") 450 451#define ERR_UNRECOGNIZED_OPTION gettext(\ 452"unrecognized option <%s>") 453 454#define ERR_DEFAULT_ROOT_INVALID gettext(\ 455"cannot set root path to <%s>: %s") 456 457#define ERR_DEFAULT_ROOT_NOT_DIR gettext(\ 458"cannot set root path to <%s>: not a directory") 459 460#define ERR_CANNOT_SET_ROOT_PATH gettext(\ 461"cannot set root path from environment variable <%s>") 462 463#define ERR_CANNOT_USE_GLOBAL_DATA gettext(\ 464"global data from environment variable <%s> cannot be used to determine " \ 465"conditions and capabilities") 466 467#define ERR_BAD_SUB gettext(\ 468 "\"%s\" is not a valid condition") 469 470#ifdef __cplusplus 471} 472#endif 473 474#endif /* _PKGCOND_MSGS_H */ 475