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, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _MESSAGE_H 28 #define _MESSAGE_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 #define FILE_MISS gettext("file not found: %s\n") 37 38 #define ARCH_EXEC_MISS gettext("archive creation file not found: %s: %s\n") 39 40 #define DIR_MISS gettext("directory not found: %s\n") 41 42 #define MUST_BE_ROOT gettext("you must be root to run this program\n") 43 44 #define NOT_GRUB_BOOT gettext("%s: not a GRUB boot OS instance\n") 45 46 #define MULT_CMDS gettext("multiple commands specified: -%c\n") 47 48 #define INVALID_SUBCMD gettext("invalid sub-command specified: %s\n") 49 50 #define NEED_SUBCMD gettext("this command requires a sub-command\n") 51 52 #define NEED_CMD gettext("a command option must be specified\n") 53 54 #define CMD_ERR gettext("command failed with errors: %s\n") 55 56 #define DUP_OPT gettext("duplicate options specified: -%c\n") 57 58 #define BAD_OPT gettext("invalid option or missing option argument: -%c\n") 59 60 #define NO_ARG gettext("missing or too many command argument(s)\n") 61 62 #define NO_OPT_REQ gettext("this sub-command (%s) does not take options\n") 63 64 #define MISS_OPT gettext("an option is required for this sub-command: %s\n") 65 66 #define ABS_PATH_REQ gettext("path is not absolute: %s\n") 67 68 #define TOO_LONG gettext("the following line is too long (> %d chars)\n\t%s\n") 69 70 #define NOT_ON_SPARC gettext("this operation is not supported on sparc\n") 71 72 #define NEED_ALT_ROOT gettext("an alternate root must be specified\n") 73 74 #define NO_FILE_ENTRY gettext("file not in list: %s\n") 75 76 #define DUP_FILE_ENTRY gettext("file already in list: %s\n") 77 78 #define NO_ENTRY gettext("no %s entry found\n") 79 80 #define NO_MATCH_ENTRY gettext("no matching entry found\n") 81 82 #define NO_BOOTADM_MATCH gettext("no matching bootadm entry found\n") 83 84 #define NO_MEM gettext("could not allocate memory: size = %u\n") 85 86 #define NO_CMD gettext("no command at line %d\n") 87 88 #define DUP_CMD \ 89 gettext("duplicate command %s at line %d of %sboot/grub/menu.lst\n") 90 91 #define INVALID_TIMEOUT gettext("invalid timeout value: %s\n") 92 93 #define NO_MENU gettext("menu file not found: %s\n") 94 95 #define LIST_TITLE gettext("%d %s\n") 96 97 #define GLOBAL_CMD gettext("%s %s\n") 98 99 #define REGCOMP_FAIL gettext("regular expression failed to compile\n") 100 101 #define INVALID_ENTRY gettext("invalid boot entry number: %s\n") 102 103 #define DUP_ENTRY gettext("a boot entry with this title already exists: %s\n") 104 105 #define LIST_ENTRY gettext("%s\n") 106 107 #define SUBOPT_VALUE gettext("suboption %s requires a value\n") 108 109 #define INVALID_SUBOPT gettext("invalid suboption: %s\n") 110 111 #define SUBOPT_MISS gettext("missing suboption: %s\n") 112 113 #define INVALID_HDR gettext("invalid entry header: %s\n") 114 115 #define INVALID_TITLE gettext("invalid title entry: %s\n") 116 117 #define INVALID_ROOT gettext("invalid root entry: %s\n") 118 119 #define INVALID_KERNEL gettext("invalid kernel entry: %s\n") 120 121 #define INVALID_MODULE gettext("invalid module entry: %s\n") 122 123 #define INVALID_FOOTER gettext("invalid entry footer: %s\n") 124 125 #define EMPTY_FILE gettext("file is missing or empty: %s\n") 126 127 #define UNLINK_EMPTY gettext("file is empty, deleting file: %s\n") 128 129 #define UNLINK_FAIL gettext("failed to unlink file: %s: %s\n") 130 131 #define NOT_CHR gettext("not a character device: %s\n") 132 133 #define NO_DIR gettext("directory not found: %s\n") 134 135 #define NOT_DIR gettext("not a directory: %s\n") 136 137 #define NO_MATCH gettext("no matching entry found: %s\n") 138 139 #define INVALID_OPT gettext("invalid option: %s\n") 140 141 #define FAILED_SIG gettext("Cannot set SIGCHLD disposition: %s\n") 142 143 #define CANT_UNBLOCK_SIGCHLD gettext("Cannot unblock SIGCHLD: %s\n") 144 145 #define BLOCKED_SIG gettext("SIGCHLD signal blocked. Cannot exec: %s\n") 146 147 #define POPEN_FAIL gettext("popen failed: %s\n") 148 149 #define PCLOSE_FAIL gettext("pclose failed: %s\n") 150 151 #define EXEC_FAIL gettext("command terminated abnormally: %s: %d\n") 152 153 #define INVALID_ARCH_FS \ 154 gettext("invalid or unsupported archive filesystem: %s\n") 155 156 #define NEED_FORCE \ 157 gettext("This operation is only supported with the force flag (-f)\n") 158 159 #define REL_PATH_REQ \ 160 gettext("path (%s) must be relative to root. For example: etc/foo\n") 161 162 #define OPEN_FAIL gettext("failed to open file: %s: %s\n") 163 164 #define LOCK_FAIL gettext("failed to lock file: %s: %s\n") 165 166 #define UNLOCK_FAIL gettext("failed to unlock file: %s: %s\n") 167 168 #define FILE_LOCKED gettext("Another instance of bootadm (pid %u) is running\n") 169 170 #define FLIST_FAIL \ 171 gettext("failed to open archive filelist: %s: %s\n") 172 173 #define NO_FLIST gettext("archive filelist is empty\n") 174 175 #define CLOSE_FAIL gettext("failed to close file: %s: %s\n") 176 177 #define RENAME_FAIL gettext("rename to file failed: %s: %s\n") 178 179 #define NOT_IN_MNTTAB gettext("alternate root %s not in mnttab\n") 180 181 #define CANT_RESOLVE gettext("cannot resolve path %s: %s\n") 182 183 #define ROOT_ABS gettext("this sub-command doesn't take root arguments: %s\n") 184 185 #define RDONLY_FS gettext("read-only filesystem: %s\n") 186 187 #define ARCHIVE_FAIL gettext("failed to create boot archive: %s\n") 188 189 #define ARCHIVE_NOT_CREATED gettext("couldn't create boot archive: %s\n") 190 191 #define WRITE_FAIL gettext("write to file failed: %s: %s\n") 192 193 #define STAT_FAIL gettext("stat of file failed: %s: %s\n") 194 195 #define PACK_FAIL gettext("failed to pack stat data: %s\n") 196 197 #define NVALLOC_FAIL gettext("failed to create stat data: %s\n") 198 199 #define NVADD_FAIL gettext("failed to update stat data for: %s: %s\n") 200 201 #define NOT_NV gettext("option is not a name=value pair: %s\n") 202 203 #define DISKMAP_FAIL gettext("cannot map disk %s to grub name\n") 204 205 #define DISKMAP_FAIL_NONFATAL \ 206 gettext("cannot map disk %s to grub name, assume disk 0.\n") 207 208 #define WARN_BOOT \ 209 gettext("WARNING: Incorrect use of this command may make \ 210 the system unbootable\n") 211 212 #define WARN_FAILSAFE_BOOT \ 213 gettext("WARNING: Incorrect use of this command may make \ 214 the failsafe archive unbootable\n") 215 216 #define UPDATE_NO_STAT \ 217 gettext("%s state file %s not found.\n") 218 219 #define CHECK_NOT_SUPPORTED \ 220 gettext("the check option is not supported with subcmd: %s\n") 221 222 #define PARSEABLE_NEW_FILE gettext(" new %s\n") 223 224 #define PARSEABLE_OUT_DATE gettext(" changed %s\n") 225 226 #define UPDATE_FORCE gettext("forced update of archive requested\n") 227 228 #define NO_NEW_STAT gettext("cannot create new stat data\n") 229 230 #define UPDATE_ARCH_MISS gettext("archive not found: %s\n") 231 232 #define READ_FAIL gettext("read failed for file: %s: %s\n") 233 234 #define UNPACK_FAIL gettext("failed to unpack stat data: %s: %s\n") 235 236 #define NFTW_FAIL gettext("cannot find: %s: %s\n") 237 238 #define NVL_ALLOC_FAIL gettext("failed to alloc nvlist: %s\n") 239 240 #define STATVFS_FAIL gettext("statvfs failed for %s: %s\n") 241 242 #define IS_RAMDISK gettext("%s is on a ramdisk device\n") 243 244 #define SKIP_RAMDISK gettext("Skipping archive creation\n") 245 246 #define PRINT gettext("%s\n") 247 248 #define PRINT_NO_NEWLINE gettext("%s") 249 250 #define PRINT_TITLE gettext("%d %s\n") 251 252 #define INT_ERROR gettext("Internal error: %s\n") 253 254 #define CANT_FIND_USER \ 255 gettext("getpwnam: uid for %s failed, defaulting to %d\n") 256 257 #define CANT_FIND_GROUP \ 258 gettext("getgrnam: gid for %s failed, defaulting to %d\n") 259 260 #define CHMOD_FAIL gettext("chmod operation on %s failed - %s\n") 261 262 #define CHOWN_FAIL gettext("chgrp operation on %s failed - %s\n") 263 264 #define MISSING_SLICE_FILE gettext("GRUB slice file %s missing: %s\n") 265 266 #define BAD_SLICE_FILE gettext("Invalid GRUB slice file %s\n") 267 268 #define MKDIR_FAILED gettext("mkdir of %s failed: %s\n") 269 270 #define MOUNT_FAILED gettext("mount of %s (fstype %s) at %s failed\n") 271 272 #define RMDIR_FAILED gettext("rmdir of %s failed: %s\n") 273 274 #define UMOUNT_FAILED gettext("unmount of %s failed\n") 275 276 #define CANNOT_RESTORE_GRUB_SLICE gettext("cannot restore GRUB slice\n") 277 278 #define RESTORE_GRUB_FAILED gettext("cannot restore GRUB loader\n") 279 280 #define MISSING_BACKUP_MENU gettext("no backup menu %s: %s\n") 281 282 #define RESTORE_MENU_FAILED gettext("cannot restore menu %s\n") 283 284 #define MISSING_ROOT_FILE gettext("file missing: %s: %s\n") 285 286 #define BAD_ROOT_FILE gettext("file is invalid: %s\n") 287 288 #define USING_GRUB_SLICE gettext("\nUsing GRUB menu on device %s\n\n") 289 290 #define RESTORING_GRUB \ 291 gettext("No GRUB installation found. Restoring GRUB from backup\n") 292 293 #define REBOOT_WITH_ARGS_FAILED \ 294 gettext("Cannot update menu. Cannot reboot with requested arguments\n") 295 296 #ifdef __cplusplus 297 } 298 #endif 299 300 #endif /* _MESSAGE_H */ 301