8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / svr4pkg / pkgcond / pkgcond_msgs.h
blobc9f79d9d9e24a1f91b1835498272df7562454818
1 /*
2 * CDDL HEADER START
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.
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.
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]
19 * CDDL HEADER END
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
26 #ifndef _PKGCOND_MSGS_H
27 #define _PKGCOND_MSGS_H
30 #include <libintl.h>
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
36 #ifdef lint
37 #define gettext(x) x
38 #endif
40 /* generic messages */
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")
57 #define MSG_NO_PKG_ENV_DATA_PRESENT gettext(\
58 "no data available from package tools: zone information may be incomplete")
60 #define MSG_NO_ARGUMENTS_SPECIFIED gettext(\
61 "no condition to check specified")
63 #define MSG_INVALID_OPTION_SPECIFIED gettext(\
64 "option <%c> not recognized")
66 #define MSG_IS_INVALID_OPTION gettext(\
67 "option <%c> not recognized by condition <%s>")
69 #define MSG_UNRECOGNIZED_CONDITION_SPECIFIED gettext(\
70 "condition not recognized")
72 #define MSG_IS_WHAT_RESULT gettext(\
73 "%s=%d")
75 /* debugging messages */
77 #define DBG_NO_RECURSION gettext(\
78 "nonrecursive call to <%s>")
80 #define DBG_RECURSION gettext(\
81 "recursive call to <%s> count <%d> ignored")
83 #define DBG_TESTPATH_OK gettext(\
84 "path <%s> matches all criteria")
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")
90 #define DBG_ADDV_YES gettext(\
91 "root path <%s> can have a driver added")
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")
97 #define DBG_UPDV_YES gettext(\
98 "root path <%s> can have a driver updated")
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")
104 #define DBG_RMDV_YES gettext(\
105 "root path <%s> can have a driver removed")
107 #define DBG_ROOTPATH_IS gettext(\
108 "root path is <%s>")
110 #define DBG_CANNOT_ACCESS_PATH_BUT_SHOULD gettext(\
111 "test_path: path <%s> must exist and does not: %s")
113 #define DBG_CANNOT_ACCESS_PATH_OK gettext(\
114 "test_path: path <%s> must not (and does not) exist")
116 #define DBG_PATH_DOES_NOT_EXIST gettext(\
117 "test_path: path <%s> does not exist: %s")
119 #define DBG_CANNOT_LSTAT_PATH gettext(\
120 "test_path: cannot lstat path <%s>: %s")
122 #define DBG_IS_A_DIRECTORY gettext(\
123 "test_path: path <%s> is a directory but is not supposed to be")
125 #define DBG_IS_NOT_A_DIRECTORY gettext(\
126 "test_path: path <%s> is not a directory but is supposed to be")
128 #define DBG_DIRECTORY_NOT gettext(\
129 "test_path: path <%s> is not a directory")
131 #define DBG_DIRECTORY_IS gettext(\
132 "test_path: path <%s> is a directory")
134 #define DBG_IS_A_FILE gettext(\
135 "test_path: path <%s> is a file but is not supposed to be")
137 #define DBG_IS_NOT_A_FILE gettext(\
138 "test_path: path <%s> is not a file but is supposed to be")
140 #define DBG_TOKEN__EXISTS gettext(\
141 "test_path: token <%s> exists in path <%s>")
143 #define DBG_FILE_NOT gettext(\
144 "test_path: path <%s> is not a file")
146 #define DBG_FILE_IS gettext(\
147 "test_path: path <%s> is a file")
149 #define DBG_IS_A_SYMLINK gettext(\
150 "test_path: path <%s> is a symlink but is not supposed to be")
152 #define DBG_IS_NOT_A_SYMLINK gettext(\
153 "test_path: path <%s> is not a symlink but is supposed to be")
155 #define DBG_SORTEDINS_SKIPPED gettext(\
156 "duplicate entry <%d> : <%s> (<%s> vs <%s>, <%s> vs <%s>): merged options")
158 #define DBG_SYMLINK_NOT gettext(\
159 "test_path: path <%s> is not a symlink")
161 #define DBG_SYMLINK_IS gettext(\
162 "test_path: path <%s> is a symlink")
164 #define DBG_SET_NEGATE_RESULTS gettext(\
165 "set_negate_results: current setting <%d> new setting <%d>")
167 #define DBG_ADJUST_RESULTS gettext(\
168 "adjust_results: result <%d> negate <%d> returned result <%d>")
170 #define DBG_PARSE_GLOBAL gettext(\
171 "parsing global data <%s>")
173 #define DBG_NO_DEFAULT_ROOT_PATH_SET gettext(\
174 "no default root path set")
176 #define DBG_DEFAULT_ROOT_PATH_SET gettext(\
177 "default root path <%s> set from environment variable <%s>")
179 #define DBG_RESULTS gettext(\
180 "returning results <%d>")
182 #define DBG_SET_ROOT_PATH_TO gettext(\
183 "setting root path to <%s>")
185 #define DBG_TEST_PATH gettext(\
186 "test path <%s> flags <0x%08lx>")
188 #define DBG_TEST_PATH_NO_RESOLVE gettext(\
189 "cannot resolve path <%s>")
191 #define DBG_TEST_PATH_RESOLVE gettext(\
192 "test resolved path <%s>")
194 #define DBG_TEST_EXISTS_SHOULD_NOT gettext(\
195 "path <%s> exists but should not")
197 #define DBG_PARSED_ENVIRONMENT gettext(\
198 "global data parsed from environment variable <%s>")
200 #define DBG_DUMP_GLOBAL_ENTRY gettext(\
201 "global data settings")
203 #define DBG_DUMP_GLOBAL_PARENT_ZONE gettext(\
204 "parentzone zoneName <%s> zoneType <%s>")
206 #define DBG_DUMP_GLOBAL_CURRENT_ZONE gettext(\
207 "currentzone zoneName <%s> zoneType <%s>")
209 #define DBG_IDLC_INITIAL_INSTALL gettext(\
210 "path <%s> is not a diskless client: initial installation in progress")
212 #define DBG_IDLC_ZONE_INSTALL gettext(\
213 "path <%s> is not a diskless client: initial zone installation in progress")
215 #define DBG_IDLC_PKG_NOT_INSTALLED gettext(\
216 "path <%s> is not a diskless client: package <%s> is not installed in <%s>")
218 #define DBG_IDLC_ROOTPATH_BAD gettext(\
219 "path <%s> is not a diskless client: root path cannot be <%s>")
221 #define DBG_IDLC_ZONE_BAD gettext(\
222 "path <%s> is not a diskless client: current zone must be <%s>")
224 #define DBG_IDLC_PATH_MISSING gettext(\
225 "path <%s> is not a diskless client: <%s> does not exist")
227 #define DBG_IDLC_USR_IS_NOT_EMPTY gettext(\
228 "path <%s> is not a diskless client: </usr> is not empty")
230 #define DBG_IDLC_NO_TEMPLATES_PATH gettext(\
231 "path <%s> is not a diskless client: <%s/%s> does not exist")
233 #define DBG_IDLC_PATH_IS_DISKLESS_CLIENT gettext(\
234 "path <%s> is a diskless client")
236 #define DBG_ISGZ_INITIAL_INSTALL gettext(\
237 "path <%s> is not a global zone: initial installation in progress")
239 #define DBG_ISGZ_NGZ_ZONE_INSTALL gettext(\
240 "path <%s> is not a global zone: initial non-global zone " \
241 "installation in progress")
243 #define DBG_ISGZ_PATH_IS_GLOBAL_ZONE gettext(\
244 "path <%s> is a global zone")
246 #define DBG_ISGZ_PATH_ISNT_DIRECTORY gettext(\
247 "path <%s> is not a global zone: directory <%s> does not exist")
249 #define DBG_ISGZ_PATH_EXISTS gettext(\
250 "path <%s> is not a global zone: <%s> exists")
252 #define DBG_ISGZ_ZONENAME_ISNT_GLOBAL gettext(\
253 "path <%s> is not a global zone: zone name <%s> is not <global>")
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")
259 #define DBG_INIM_INITIAL_INSTALL gettext(\
260 "path <%s> is not a netinstall image: initial installation in progress")
262 #define DBG_INIM_ZONE_INSTALL gettext(\
263 "path <%s> is not a netinstall image: initial zone installation in progress")
265 #define DBG_INIM_PATH_IS_NETINSTALL_IMAGE gettext(\
266 "path <%s> is a netinstall image")
268 #define DBG_INIM_BAD_CURRENT_ZONE gettext(\
269 "path <%s> is not a netinstall image: current zone is not <%s>")
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")
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")
279 #define DBG_IMRT_INITIAL_INSTALL gettext(\
280 "path <%s> is not a mounted miniroot image: initial installation in progress")
282 #define DBG_IMRT_ZONE_INSTALL gettext(\
283 "path <%s> is not a mounted miniroot image: initial zone " \
284 "installation in progress")
286 #define DBG_IMRT_PATH_IS_MOUNTED_MINIROOT gettext(\
287 "path <%s> is a mounted miniroot")
289 #define DBG_IMRT_BAD_CURRENT_ZONE gettext(\
290 "path <%s> is not a mounted miniroot image: current zone is not <%s>")
292 #define DBG_IMRT_ROOTDIR_BAD gettext(\
293 "path <%s> is not a mounted miniroot image: root directory is not <%s>")
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")
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")
303 #define DBG_NGZN_INITIAL_INSTALL gettext(\
304 "path <%s> is not a non-global zone: initial installation in progress")
306 #define DBG_NGZN_GLOBAL_ZONE_INSTALL gettext(\
307 "path <%s> is not a non-global zone: initial global zone " \
308 "installation in progress")
310 #define DBG_NGZN_IN_GZ_IS_NONGLOBAL_ZONE gettext(\
311 "path <%s> is a non-global zone: running in global zone")
313 #define DBG_NGZN_PARENT_CHILD_SAMEZONE gettext(\
314 "path <%s> is a non-global zone: parent/child are same zone name <%s>")
316 #define DBG_NGZN_IS_NONGLOBAL_ZONE gettext(\
317 "path <%s> is a non-global zone")
319 #define DBG_NGZN_ZONENAME_ISNT_NGZ gettext(\
320 "path <%s> is not a non-global zone: zone name is <%s>")
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>")
325 #define DBG_NGZN_ZONENAME_IS_NGZ gettext(\
326 "path <%s> is a non-global zone: zone name is <%s>")
328 #define DBG_NGZN_PATH_EXISTS gettext(\
329 "path <%s> is not a non-global zone: <%s> exists")
331 #define DBG_NGZN_BAD_PARENT_ZONETYPE gettext(\
332 "path <%s> is not a non-global zone: parent zone type is <%s>")
334 #define DBG_NGZN_BAD_CURRENT_ZONETYPE gettext(\
335 "path <%s> is not a non-global zone: current zone type is <%s>")
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")
341 #define DBG_IRST_INITIAL_INSTALL gettext(\
342 "path <%s> is not the current running system: initial installation in progress")
344 #define DBG_IRST_ZONE_INSTALL gettext(\
345 "path <%s> is not the current running system: initial zone installation " \
346 "in progress")
348 #define DBG_IRST_PATH_IS_RUNNING_SYSTEM gettext(\
349 "path <%s> is a running system")
351 #define DBG_IRST_ZONE_BAD gettext(\
352 "path <%s> is not the current running system: the current zone name " \
353 " is not <%s>")
355 #define DBG_IRST_ROOTPATH_BAD gettext(\
356 "path <%s> is not the current running system: root path is not <%s>")
358 #define DBG_IALR_INITIAL_INSTALL gettext(\
359 "path <%s> is an alternative root: initial installation in progress")
361 #define DBG_IALR_ZONE_INSTALL gettext(\
362 "path <%s> is not an alternative root: initial zone installation in progress")
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")
368 #define DBG_IALR_BAD_ROOTPATH gettext(\
369 "path <%s> is not an alternative root: root directory is <%s>")
371 #define DBG_IALR_IS gettext(\
372 "root path <%s> is an alternative root")
374 #define DBG_WRNG_IS gettext(\
375 "root path <%s> is a whole root non-global zone")
377 #define DBG_BENV_INITIAL_INSTALL gettext(\
378 "path <%s> is not an alternative boot environment: initial " \
379 "installation in progress")
381 #define DBG_BENV_ZONE_INSTALL gettext(\
382 "path <%s> is not an alternative boot environment: initial zone " \
383 "installation in progress")
385 #define DBG_BENV_IS gettext(\
386 "path <%s> is an alternative boot environment")
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")
392 #define DBG_BENV_NO_ETCLUTAB gettext(\
393 "path <%s> is not an alternative boot environment: <%s> does not exist")
395 #define DBG_BENV_BAD_ZONE gettext(\
396 "path <%s> is not an alternative boot environment: " \
397 "the current zone name is not <%s>")
399 #define DBG_BENV_BAD_ROOTPATH gettext(\
400 "path <%s> is not an alternative boot environment: root directory is <%s>")
402 #define DBG_PWRT_READONLY gettext(\
403 "root path <%s> is not writeable: is read only <%s>")
405 #define DBG_PWRT_IS gettext(\
406 "root path <%s> is writeable")
408 #define DBG_PWRT_INFO gettext(\
409 "root path <%s> is mount point <%s> fstype <%s> options <%s>")
411 #define DBG_NO_GLOBAL_DATA_AVAILABLE gettext(\
412 "no global data available in environment variable <%s>")
414 #define DBG_CKSR_FSREADONLY gettext(\
415 "file system <%s> type <%s> is read-only")
417 #define DBG_CALCSCFG_MOUNTED gettext(\
418 "analyzing mounted file systems")
420 #define DBG_SINS_ENTRY gettext(\
421 "inserting mount point <%s> type <%s> options <%s>")
423 #define DBG_NGZN_PATH_EXISTS gettext(\
424 "path <%s> is not a non-global zone: <%s> exists")
426 #define DBG_CMDLINE_PATH gettext(\
427 "command line path to check set to: <%s>")
429 /* warnings */
431 #define WRN_PARSED_DATA_MISSING gettext(\
432 "available global data missing <%s>")
434 /* errors */
436 #define MSG_FATAL gettext(\
437 "Fatal Error")
439 #define ERR_REQUIRED_ROOTPATH_MISSING gettext(\
440 "the <%s> condition requires a root path to be specified")
442 #define ERR_CANNOT_GET_ZONENAME gettext(\
443 "could not determine zone name")
445 #define ERR_CANNOT_CALC_FS_CONFIG gettext(\
446 "cannot calculate file system config")
448 #define ERR_CANNOT_PARSE_GLOBAL_DATA gettext(\
449 "cannot parse global data SML: <%s>")
451 #define ERR_UNRECOGNIZED_OPTION gettext(\
452 "unrecognized option <%s>")
454 #define ERR_DEFAULT_ROOT_INVALID gettext(\
455 "cannot set root path to <%s>: %s")
457 #define ERR_DEFAULT_ROOT_NOT_DIR gettext(\
458 "cannot set root path to <%s>: not a directory")
460 #define ERR_CANNOT_SET_ROOT_PATH gettext(\
461 "cannot set root path from environment variable <%s>")
463 #define ERR_CANNOT_USE_GLOBAL_DATA gettext(\
464 "global data from environment variable <%s> cannot be used to determine " \
465 "conditions and capabilities")
467 #define ERR_BAD_SUB gettext(\
468 "\"%s\" is not a valid condition")
470 #ifdef __cplusplus
472 #endif
474 #endif /* _PKGCOND_MSGS_H */