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