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