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 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 #ifndef _MESSAGE_H 27 #define _MESSAGE_H 28 29 #pragma ident "%Z%%M% %I% %E% SMI" 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 #define CANNOT_BE_USED \ 36 gettext("Pattern '%s' cannot be used with device '%s:%s'\n") 37 38 #define MUST_BE_ROOT gettext("you must be root to run this program\n") 39 40 #define CANT_FIND_USER gettext("name service cannot find user: %s\n") 41 42 #define CANT_FIND_GROUP gettext("name service cannot find group %s\n") 43 44 #define NO_LINKTAB gettext("no devlink.tab rules loaded from file '%s'\n") 45 46 #define NO_MODULES gettext("no modules loaded from MODPATH '%s'\n") 47 48 #define ABORTING gettext("aborting\n") 49 50 #define MODIFY_PATH gettext("use devfsadm -l to modify\n") 51 52 #define CONFIGURING gettext("Configuring devices.\n") 53 54 #define CHROOT_FAILED gettext("chdir to root failed: %s\n") 55 56 #define DAEMON_RUNNING gettext("daemon pid %d is already running\n") 57 58 #define ALIAS_TOO_LONG \ 59 gettext("alias name is too long; must be %d characters or less: %s\n") 60 61 #define MAJOR_AND_B_FLAG \ 62 gettext("must specify major number and driver name when using the -b flag\n") 63 64 #define MODCTL_ADDMAJBIND \ 65 gettext("modctl failed to add major number binding.\n") 66 67 #define DRIVER_FAILURE gettext("driver failed to attach: %s\n") 68 69 #define IS_EVENTD_RUNNING gettext("check to make sure syseventd is running\n") 70 71 #define UNKNOWN_EVENT gettext("parse_event: unknown event type: %s\n") 72 73 #define DI_INIT_FAILED gettext("di_init failed for %s: %s\n") 74 75 #define CLONE_NOT_FOUND gettext("di_init failed to find clone entry for %s\n") 76 77 #define DLOPEN_FAILED gettext("dlopen failed: %s: %s\n") 78 79 #define REGCOMP_FAILED gettext("regcomp failed for %s: error code: %d\n") 80 81 #define IGNORING_ENTRY \ 82 gettext("ignoring devfsadm_create entry #%d in module %s\n") 83 84 #define CANT_CREATE_THREAD gettext("can not create thread %s: %s\n") 85 86 #define CANT_CREATE_DOOR gettext("can not create event door %s: %s\n") 87 88 #define FAILED_FOR_MODULE gettext("%s failed for module %s\n") 89 90 #define REMOVING_LINK gettext("removing link %s -> %s invalid contents\n") 91 92 #define CREATING_LINK gettext("symlink %s -> %s\n") 93 94 #define SYMLINK_FAILED gettext("symlink failed for %s -> %s: %s\n") 95 96 #define MAX_ATTEMPTS \ 97 gettext("cannot create link: %s -> %s. max attempts exceeded\n") 98 99 #define PERM_MSG gettext("chown/chmod %s %ul/%ul/%o\n") 100 101 #define NO_DEVFS_NODE gettext("no devfs node or mismatched dev_t for %s\n") 102 103 #define CHMOD_FAILED gettext("chmod failed for %s: %s\n") 104 105 #define CHOWN_FAILED gettext("chown failed for %s: %s\n") 106 107 #define RM_INVALID_MINOR_NODE gettext("removing node %s. invalid st_rdev\n") 108 109 #define OPENDIR_FAILED gettext("opendir failed for %s: %s\n") 110 111 #define READLINK_FAILED gettext("%s: readlink failed for %s: %s\n") 112 113 #define CANT_LOAD_SYSCALL gettext("cannot load system call for inst_sync\n") 114 115 #define SUPER_TO_SYNC \ 116 gettext("you must be superuser to sync /etc/path_to_inst\n") 117 118 #define INSTSYNC_FAILED gettext("inst_sync failed for %s: %s\n") 119 120 #define RENAME_FAILED gettext("rename failed for %s: %s\n") 121 122 #define CANT_UPDATE gettext("cannot update: %s\n") 123 124 #define FCLOSE_FAILED gettext("fclose failed: %s: %s\n") 125 126 #define FAILED_TO_UPDATE gettext("WARNING: failed to update %s\n") 127 128 #define OPEN_FAILED gettext("open failed for %s: %s\n") 129 130 #define LSEEK_FAILED gettext("lseek failed for %s: %s\n") 131 132 #define LOCK_FAILED gettext("fcntl(F_SETLKW) failed for %s: %s\n") 133 134 #define WRITE_FAILED gettext("write failed for %s: %s\n") 135 136 #define UNLOCK_FAILED gettext("fcntl(F_UNLCK) failed for %s: %s\n") 137 138 #define CLOSE_FAILED gettext("close failed for %s: %s\n") 139 140 #define LSTAT_FAILED gettext("lstat failed for %s: %s\n") 141 142 #define STAT_FAILED gettext("stat failed for %s: %s\n") 143 144 #define GID_FAILED gettext("cannot determine gid for %d: %s\n") 145 146 #define MKNOD_FAILED gettext("mknod failed for %s: %s\n") 147 148 #define MODGETNAME_FAILED gettext("MODGETNAME failed for major number %lu\n") 149 150 #define FIND_MAJOR_FAILED gettext("could not find major number for driver %s\n") 151 152 #define FOPEN_FAILED gettext("fopen failed for %s: %s\n") 153 154 #define IGNORING_LINE_IN gettext("line %d: malformed in %s\n") 155 156 #define MISSING_TAB \ 157 gettext("line %d: configuration file %s has a missing tab -- ignoring\n") 158 159 #define MISSING_DEVNAME \ 160 gettext("line %d: configuration file %s has a missing dev name field -- \ 161 ignoring\n") 162 163 #define TOO_MANY_FIELDS \ 164 gettext("line %d: configuration file %s has too many fields -- ignoring\n") 165 166 #define LINE_TOO_LONG \ 167 gettext("Line %d too long in configuration file %s -- should be less \ 168 than %d characters\n") 169 170 #define UNRECOGNIZED_KEY \ 171 gettext("unrecognized keyword '%s' -- ignoring line %d of file %s\n") 172 173 #define BADKEYWORD gettext("bad keyword '%s' on line %d of file %s\n") 174 175 #define MISSING_EQUAL \ 176 gettext("missing '=' in devfs_spec field line %d from file %s\n") 177 178 #define CONFIG_INCORRECT \ 179 gettext("line %d: configuration file %s incorrect: %s -- ignoring\n") 180 181 #define NO_NODE gettext("no node name found for %s\n") 182 183 #define NO_MINOR gettext("no minor name for %s\n") 184 185 #define DRV_BUT_NO_ALIAS gettext("line %d: driver name with no alias in %s\n") 186 187 #define MALLOC_FAILED gettext("malloc failed for %d bytes\n") 188 189 #define REALLOC_FAILED gettext("realloc failed for %d bytes\n") 190 191 #define CALLOC_FAILED gettext("calloc failed for %d bytes\n") 192 193 #define STRDUP_FAILED gettext("strdup failed for %s\n") 194 195 #define CLOSEDIR_FAILED gettext("closedir failed %s\n") 196 197 #define MKDIR_FAILED gettext("mkdir failed for %s 0x%x: %s\n") 198 199 #define UNLINK_FAILED gettext("unlink failed for %s: %s\n") 200 201 #define DI_DEVFS_PATH_FAILED gettext("di_devfs_path failed: %s\n") 202 203 #define COMPAT_LINK_USAGE gettext("Usage:\n\t\t[ -C ]\n\t\t[ \ 204 -r root_directory ]\n\t\t[ -n ]\n\t\t[ -v ]\n") 205 206 #define DEVLINKS_USAGE gettext("Usage:\n\t\t[ -d ]\n\t\t[ -n ]\n\t\t[ -r \ 207 root_directory ]\n\t\t[ -t table-file ]\n\t\t[ -v ]\n") 208 209 #define DRVCONFIG_USAGE gettext("Usage:\n\t\t[ -a alias_name ]\n\t\t[ -b ]\ 210 \n\t\t[ -c class_name ]\n\t\t[ -d ]\n\t\t[ -i driver_name ]\n\t\t[ -m \ 211 major_number ]\n\t\t[ -n ]\n\t\t[ -r rootdir ]\n\t\t[ -v ]\n") 212 213 #define DEVFSADM_USAGE gettext("Usage:\n\t\t[ -c device_class ]\n\t\t[ -C ]\ 214 \n\t\t[ -i driver_name ]\n\t\t[ -l module_path ]\n\t\t[ -n ]\ 215 \n\t\t[ -r rootdir ]\n\t\t[ -s ]\n\t\t[ -t devlink_table_file ]\n\t\t[ -v ]\n") 216 217 #define DEVFSADM_UNLINK gettext("removing file: %s\n") 218 219 #define INVOKED_WITH gettext("invoked with %s\n") 220 221 #define MISSING_SYMBOLS gettext("missing symbols in %s\n") 222 223 #define RCM_ALLOC_HANDLE_ERROR gettext("Unable to allocate rcm handle\n") 224 225 #define RCM_NOTIFY_FAILED \ 226 gettext("RCM notification failed: " \ 227 "path = %s, driver = %s, instance = %d: %s\n") 228 229 #define RCM_NVLIST_BUILD_ERROR \ 230 gettext("failed to build nvlist for notifying RCM: " \ 231 "path = %s, driver = %s, instance = %d: %s\n") 232 233 #define INVALID_DEVLINK_SPEC gettext("Invalid devlink spec: '%s'\n") 234 235 #define DRV_LOAD_REQD gettext("-n option cannot be used with -i. Ignoring\n") 236 237 #define DPLCY_ONE_DFLT gettext("%s: Only one default entry allowed\n") 238 239 #define DPLCY_FIRST gettext("%s: First entry must be default entry\n") 240 241 #define INVALID_MINOR gettext("%s: invalid minor node specification\n") 242 243 #define MINOR_TOO_LONG gettext("%s:%s: minor node specification too long\n") 244 245 #define UNEXPECTED_EOF gettext("%s: unexpected end of file\n") 246 247 #define BAD_ENTRY gettext("\tin the following entry at line %d\n%s\n") 248 249 #define NO_MEMORY gettext("Out of memory\n") 250 251 252 #define EVENT_ATTR_LOOKUP_FAILED \ 253 gettext("failed to lookup event attributes: %s\n") 254 255 #define PROP_ADD_FAILED \ 256 gettext("failed to add the property %s to event attributes\n") 257 258 #define DEV_NAME_LOOKUP_FAILED \ 259 gettext("failed to lookup dev name for %s\n") 260 261 #define BUILD_EVENT_ATTR_FAILED \ 262 gettext("failed to build event attributes: %s\n") 263 264 #define LOG_EVENT_FAILED gettext("failed to log event: %s\n") 265 266 #define ZONE_PATHCHECK \ 267 gettext("cannot manage root path '%s': path is part of zone '%s'\n") 268 269 #define DEVNAME_CONTACT_FAILED \ 270 gettext("cannot talk to devname fs %s: %s\n") 271 272 #define NVLIST_ERROR gettext("nvlist interface failed: %s\n") 273 274 #define NOT_DIR gettext("file is not a directory: %s\n") 275 276 #ifdef __cplusplus 277 } 278 #endif 279 280 #endif /* _MESSAGE_H */ 281