10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 52621Sllai1 * Common Development and Distribution License (the "License"). 62621Sllai1 * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 228831SJerry.Gilliam@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate * Use is subject to license terms. 240Sstevel@tonic-gate */ 250Sstevel@tonic-gate 260Sstevel@tonic-gate #ifndef _MESSAGE_H 270Sstevel@tonic-gate #define _MESSAGE_H 280Sstevel@tonic-gate 290Sstevel@tonic-gate #ifdef __cplusplus 300Sstevel@tonic-gate extern "C" { 310Sstevel@tonic-gate #endif 320Sstevel@tonic-gate 330Sstevel@tonic-gate #define CANNOT_BE_USED \ 340Sstevel@tonic-gate gettext("Pattern '%s' cannot be used with device '%s:%s'\n") 350Sstevel@tonic-gate 360Sstevel@tonic-gate #define MUST_BE_ROOT gettext("you must be root to run this program\n") 370Sstevel@tonic-gate 380Sstevel@tonic-gate #define CANT_FIND_USER gettext("name service cannot find user: %s\n") 390Sstevel@tonic-gate 400Sstevel@tonic-gate #define CANT_FIND_GROUP gettext("name service cannot find group %s\n") 410Sstevel@tonic-gate 420Sstevel@tonic-gate #define NO_LINKTAB gettext("no devlink.tab rules loaded from file '%s'\n") 430Sstevel@tonic-gate 440Sstevel@tonic-gate #define NO_MODULES gettext("no modules loaded from MODPATH '%s'\n") 450Sstevel@tonic-gate 460Sstevel@tonic-gate #define ABORTING gettext("aborting\n") 470Sstevel@tonic-gate 480Sstevel@tonic-gate #define MODIFY_PATH gettext("use devfsadm -l to modify\n") 490Sstevel@tonic-gate 500Sstevel@tonic-gate #define CONFIGURING gettext("Configuring devices.\n") 510Sstevel@tonic-gate 520Sstevel@tonic-gate #define CHROOT_FAILED gettext("chdir to root failed: %s\n") 530Sstevel@tonic-gate 540Sstevel@tonic-gate #define DAEMON_RUNNING gettext("daemon pid %d is already running\n") 550Sstevel@tonic-gate 560Sstevel@tonic-gate #define ALIAS_TOO_LONG \ 570Sstevel@tonic-gate gettext("alias name is too long; must be %d characters or less: %s\n") 580Sstevel@tonic-gate 590Sstevel@tonic-gate #define MAJOR_AND_B_FLAG \ 600Sstevel@tonic-gate gettext("must specify major number and driver name when using the -b flag\n") 610Sstevel@tonic-gate 620Sstevel@tonic-gate #define MODCTL_ADDMAJBIND \ 630Sstevel@tonic-gate gettext("modctl failed to add major number binding.\n") 640Sstevel@tonic-gate 658831SJerry.Gilliam@Sun.COM #define MODCTL_REMMAJBIND \ 668831SJerry.Gilliam@Sun.COM gettext("modctl failed to remove major number binding.\n") 678831SJerry.Gilliam@Sun.COM 680Sstevel@tonic-gate #define DRIVER_FAILURE gettext("driver failed to attach: %s\n") 690Sstevel@tonic-gate 700Sstevel@tonic-gate #define IS_EVENTD_RUNNING gettext("check to make sure syseventd is running\n") 710Sstevel@tonic-gate 720Sstevel@tonic-gate #define UNKNOWN_EVENT gettext("parse_event: unknown event type: %s\n") 730Sstevel@tonic-gate 740Sstevel@tonic-gate #define DI_INIT_FAILED gettext("di_init failed for %s: %s\n") 750Sstevel@tonic-gate 760Sstevel@tonic-gate #define CLONE_NOT_FOUND gettext("di_init failed to find clone entry for %s\n") 770Sstevel@tonic-gate 780Sstevel@tonic-gate #define DLOPEN_FAILED gettext("dlopen failed: %s: %s\n") 790Sstevel@tonic-gate 800Sstevel@tonic-gate #define REGCOMP_FAILED gettext("regcomp failed for %s: error code: %d\n") 810Sstevel@tonic-gate 820Sstevel@tonic-gate #define IGNORING_ENTRY \ 830Sstevel@tonic-gate gettext("ignoring devfsadm_create entry #%d in module %s\n") 840Sstevel@tonic-gate 850Sstevel@tonic-gate #define CANT_CREATE_THREAD gettext("can not create thread %s: %s\n") 860Sstevel@tonic-gate 870Sstevel@tonic-gate #define CANT_CREATE_DOOR gettext("can not create event door %s: %s\n") 880Sstevel@tonic-gate 890Sstevel@tonic-gate #define FAILED_FOR_MODULE gettext("%s failed for module %s\n") 900Sstevel@tonic-gate 910Sstevel@tonic-gate #define REMOVING_LINK gettext("removing link %s -> %s invalid contents\n") 920Sstevel@tonic-gate 930Sstevel@tonic-gate #define CREATING_LINK gettext("symlink %s -> %s\n") 940Sstevel@tonic-gate 950Sstevel@tonic-gate #define SYMLINK_FAILED gettext("symlink failed for %s -> %s: %s\n") 960Sstevel@tonic-gate 970Sstevel@tonic-gate #define MAX_ATTEMPTS \ 980Sstevel@tonic-gate gettext("cannot create link: %s -> %s. max attempts exceeded\n") 990Sstevel@tonic-gate 1000Sstevel@tonic-gate #define PERM_MSG gettext("chown/chmod %s %ul/%ul/%o\n") 1010Sstevel@tonic-gate 1020Sstevel@tonic-gate #define NO_DEVFS_NODE gettext("no devfs node or mismatched dev_t for %s\n") 1030Sstevel@tonic-gate 1040Sstevel@tonic-gate #define CHMOD_FAILED gettext("chmod failed for %s: %s\n") 1050Sstevel@tonic-gate 1060Sstevel@tonic-gate #define CHOWN_FAILED gettext("chown failed for %s: %s\n") 1070Sstevel@tonic-gate 1080Sstevel@tonic-gate #define RM_INVALID_MINOR_NODE gettext("removing node %s. invalid st_rdev\n") 1090Sstevel@tonic-gate 1100Sstevel@tonic-gate #define OPENDIR_FAILED gettext("opendir failed for %s: %s\n") 1110Sstevel@tonic-gate 1120Sstevel@tonic-gate #define READLINK_FAILED gettext("%s: readlink failed for %s: %s\n") 1130Sstevel@tonic-gate 1140Sstevel@tonic-gate #define CANT_LOAD_SYSCALL gettext("cannot load system call for inst_sync\n") 1150Sstevel@tonic-gate 1160Sstevel@tonic-gate #define SUPER_TO_SYNC \ 1170Sstevel@tonic-gate gettext("you must be superuser to sync /etc/path_to_inst\n") 1180Sstevel@tonic-gate 1190Sstevel@tonic-gate #define INSTSYNC_FAILED gettext("inst_sync failed for %s: %s\n") 1200Sstevel@tonic-gate 1210Sstevel@tonic-gate #define RENAME_FAILED gettext("rename failed for %s: %s\n") 1220Sstevel@tonic-gate 1230Sstevel@tonic-gate #define CANT_UPDATE gettext("cannot update: %s\n") 1240Sstevel@tonic-gate 1250Sstevel@tonic-gate #define FCLOSE_FAILED gettext("fclose failed: %s: %s\n") 1260Sstevel@tonic-gate 1270Sstevel@tonic-gate #define FAILED_TO_UPDATE gettext("WARNING: failed to update %s\n") 1280Sstevel@tonic-gate 1290Sstevel@tonic-gate #define OPEN_FAILED gettext("open failed for %s: %s\n") 1300Sstevel@tonic-gate 1310Sstevel@tonic-gate #define LSEEK_FAILED gettext("lseek failed for %s: %s\n") 1320Sstevel@tonic-gate 1330Sstevel@tonic-gate #define LOCK_FAILED gettext("fcntl(F_SETLKW) failed for %s: %s\n") 1340Sstevel@tonic-gate 1350Sstevel@tonic-gate #define WRITE_FAILED gettext("write failed for %s: %s\n") 1360Sstevel@tonic-gate 1370Sstevel@tonic-gate #define UNLOCK_FAILED gettext("fcntl(F_UNLCK) failed for %s: %s\n") 1380Sstevel@tonic-gate 1390Sstevel@tonic-gate #define CLOSE_FAILED gettext("close failed for %s: %s\n") 1400Sstevel@tonic-gate 1410Sstevel@tonic-gate #define LSTAT_FAILED gettext("lstat failed for %s: %s\n") 1420Sstevel@tonic-gate 1430Sstevel@tonic-gate #define STAT_FAILED gettext("stat failed for %s: %s\n") 1440Sstevel@tonic-gate 1450Sstevel@tonic-gate #define GID_FAILED gettext("cannot determine gid for %d: %s\n") 1460Sstevel@tonic-gate 1470Sstevel@tonic-gate #define MKNOD_FAILED gettext("mknod failed for %s: %s\n") 1480Sstevel@tonic-gate 1490Sstevel@tonic-gate #define MODGETNAME_FAILED gettext("MODGETNAME failed for major number %lu\n") 1500Sstevel@tonic-gate 1510Sstevel@tonic-gate #define FIND_MAJOR_FAILED gettext("could not find major number for driver %s\n") 1520Sstevel@tonic-gate 1530Sstevel@tonic-gate #define FOPEN_FAILED gettext("fopen failed for %s: %s\n") 1540Sstevel@tonic-gate 1550Sstevel@tonic-gate #define IGNORING_LINE_IN gettext("line %d: malformed in %s\n") 1560Sstevel@tonic-gate 1570Sstevel@tonic-gate #define MISSING_TAB \ 1580Sstevel@tonic-gate gettext("line %d: configuration file %s has a missing tab -- ignoring\n") 1590Sstevel@tonic-gate 1600Sstevel@tonic-gate #define MISSING_DEVNAME \ 1610Sstevel@tonic-gate gettext("line %d: configuration file %s has a missing dev name field -- \ 1620Sstevel@tonic-gate ignoring\n") 1630Sstevel@tonic-gate 1640Sstevel@tonic-gate #define TOO_MANY_FIELDS \ 1650Sstevel@tonic-gate gettext("line %d: configuration file %s has too many fields -- ignoring\n") 1660Sstevel@tonic-gate 1670Sstevel@tonic-gate #define LINE_TOO_LONG \ 1680Sstevel@tonic-gate gettext("Line %d too long in configuration file %s -- should be less \ 1690Sstevel@tonic-gate than %d characters\n") 1700Sstevel@tonic-gate 1710Sstevel@tonic-gate #define UNRECOGNIZED_KEY \ 1720Sstevel@tonic-gate gettext("unrecognized keyword '%s' -- ignoring line %d of file %s\n") 1730Sstevel@tonic-gate 1740Sstevel@tonic-gate #define BADKEYWORD gettext("bad keyword '%s' on line %d of file %s\n") 1750Sstevel@tonic-gate 1760Sstevel@tonic-gate #define MISSING_EQUAL \ 1770Sstevel@tonic-gate gettext("missing '=' in devfs_spec field line %d from file %s\n") 1780Sstevel@tonic-gate 1790Sstevel@tonic-gate #define CONFIG_INCORRECT \ 1800Sstevel@tonic-gate gettext("line %d: configuration file %s incorrect: %s -- ignoring\n") 1810Sstevel@tonic-gate 1820Sstevel@tonic-gate #define NO_NODE gettext("no node name found for %s\n") 1830Sstevel@tonic-gate 1840Sstevel@tonic-gate #define NO_MINOR gettext("no minor name for %s\n") 1850Sstevel@tonic-gate 1860Sstevel@tonic-gate #define DRV_BUT_NO_ALIAS gettext("line %d: driver name with no alias in %s\n") 1870Sstevel@tonic-gate 1880Sstevel@tonic-gate #define MALLOC_FAILED gettext("malloc failed for %d bytes\n") 1890Sstevel@tonic-gate 1900Sstevel@tonic-gate #define REALLOC_FAILED gettext("realloc failed for %d bytes\n") 1910Sstevel@tonic-gate 1920Sstevel@tonic-gate #define CALLOC_FAILED gettext("calloc failed for %d bytes\n") 1930Sstevel@tonic-gate 1940Sstevel@tonic-gate #define STRDUP_FAILED gettext("strdup failed for %s\n") 1950Sstevel@tonic-gate 1960Sstevel@tonic-gate #define CLOSEDIR_FAILED gettext("closedir failed %s\n") 1970Sstevel@tonic-gate 1980Sstevel@tonic-gate #define MKDIR_FAILED gettext("mkdir failed for %s 0x%x: %s\n") 1990Sstevel@tonic-gate 2000Sstevel@tonic-gate #define UNLINK_FAILED gettext("unlink failed for %s: %s\n") 2010Sstevel@tonic-gate 2020Sstevel@tonic-gate #define DI_DEVFS_PATH_FAILED gettext("di_devfs_path failed: %s\n") 2030Sstevel@tonic-gate 2040Sstevel@tonic-gate #define COMPAT_LINK_USAGE gettext("Usage:\n\t\t[ -C ]\n\t\t[ \ 2050Sstevel@tonic-gate -r root_directory ]\n\t\t[ -n ]\n\t\t[ -v ]\n") 2060Sstevel@tonic-gate 2070Sstevel@tonic-gate #define DEVLINKS_USAGE gettext("Usage:\n\t\t[ -d ]\n\t\t[ -n ]\n\t\t[ -r \ 2080Sstevel@tonic-gate root_directory ]\n\t\t[ -t table-file ]\n\t\t[ -v ]\n") 2090Sstevel@tonic-gate 2100Sstevel@tonic-gate #define DRVCONFIG_USAGE gettext("Usage:\n\t\t[ -a alias_name ]\n\t\t[ -b ]\ 2110Sstevel@tonic-gate \n\t\t[ -c class_name ]\n\t\t[ -d ]\n\t\t[ -i driver_name ]\n\t\t[ -m \ 2120Sstevel@tonic-gate major_number ]\n\t\t[ -n ]\n\t\t[ -r rootdir ]\n\t\t[ -v ]\n") 2130Sstevel@tonic-gate 2140Sstevel@tonic-gate #define DEVFSADM_USAGE gettext("Usage:\n\t\t[ -c device_class ]\n\t\t[ -C ]\ 2150Sstevel@tonic-gate \n\t\t[ -i driver_name ]\n\t\t[ -l module_path ]\n\t\t[ -n ]\ 2160Sstevel@tonic-gate \n\t\t[ -r rootdir ]\n\t\t[ -s ]\n\t\t[ -t devlink_table_file ]\n\t\t[ -v ]\n") 2170Sstevel@tonic-gate 2180Sstevel@tonic-gate #define DEVFSADM_UNLINK gettext("removing file: %s\n") 2190Sstevel@tonic-gate 2200Sstevel@tonic-gate #define INVOKED_WITH gettext("invoked with %s\n") 2210Sstevel@tonic-gate 2220Sstevel@tonic-gate #define INVALID_DEVLINK_SPEC gettext("Invalid devlink spec: '%s'\n") 2230Sstevel@tonic-gate 2240Sstevel@tonic-gate #define DRV_LOAD_REQD gettext("-n option cannot be used with -i. Ignoring\n") 2250Sstevel@tonic-gate 2260Sstevel@tonic-gate #define DPLCY_ONE_DFLT gettext("%s: Only one default entry allowed\n") 2270Sstevel@tonic-gate 2280Sstevel@tonic-gate #define DPLCY_FIRST gettext("%s: First entry must be default entry\n") 2290Sstevel@tonic-gate 2300Sstevel@tonic-gate #define INVALID_MINOR gettext("%s: invalid minor node specification\n") 2310Sstevel@tonic-gate 2320Sstevel@tonic-gate #define MINOR_TOO_LONG gettext("%s:%s: minor node specification too long\n") 2330Sstevel@tonic-gate 2340Sstevel@tonic-gate #define UNEXPECTED_EOF gettext("%s: unexpected end of file\n") 2350Sstevel@tonic-gate 2360Sstevel@tonic-gate #define BAD_ENTRY gettext("\tin the following entry at line %d\n%s\n") 2370Sstevel@tonic-gate 2380Sstevel@tonic-gate #define NO_MEMORY gettext("Out of memory\n") 2390Sstevel@tonic-gate 2400Sstevel@tonic-gate 2410Sstevel@tonic-gate #define EVENT_ATTR_LOOKUP_FAILED \ 2420Sstevel@tonic-gate gettext("failed to lookup event attributes: %s\n") 2430Sstevel@tonic-gate 2440Sstevel@tonic-gate #define PROP_ADD_FAILED \ 2450Sstevel@tonic-gate gettext("failed to add the property %s to event attributes\n") 2460Sstevel@tonic-gate 2470Sstevel@tonic-gate #define DEV_NAME_LOOKUP_FAILED \ 2480Sstevel@tonic-gate gettext("failed to lookup dev name for %s\n") 2490Sstevel@tonic-gate 2500Sstevel@tonic-gate #define BUILD_EVENT_ATTR_FAILED \ 2510Sstevel@tonic-gate gettext("failed to build event attributes: %s\n") 2520Sstevel@tonic-gate 2530Sstevel@tonic-gate #define LOG_EVENT_FAILED gettext("failed to log event: %s\n") 2540Sstevel@tonic-gate 2550Sstevel@tonic-gate #define ZONE_PATHCHECK \ 2560Sstevel@tonic-gate gettext("cannot manage root path '%s': path is part of zone '%s'\n") 2570Sstevel@tonic-gate 258*10585SDhanaraj.M@Sun.COM #define MUST_BE_GLOBAL_ZONE \ 259*10585SDhanaraj.M@Sun.COM gettext("can only be run from the global zone\n") 260*10585SDhanaraj.M@Sun.COM 2612621Sllai1 #define DEVNAME_CONTACT_FAILED \ 2622621Sllai1 gettext("cannot talk to devname fs %s: %s\n") 2632621Sllai1 2640Sstevel@tonic-gate #define NVLIST_ERROR gettext("nvlist interface failed: %s\n") 2650Sstevel@tonic-gate 2662621Sllai1 #define NOT_DIR gettext("file is not a directory: %s\n") 2672621Sllai1 2683858Svikram #define NO_DEVLINK_CACHE gettext("devlink cache does not exist\n") 2693858Svikram 2700Sstevel@tonic-gate #ifdef __cplusplus 2710Sstevel@tonic-gate } 2720Sstevel@tonic-gate #endif 2730Sstevel@tonic-gate 2740Sstevel@tonic-gate #endif /* _MESSAGE_H */ 275