17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5facf4a8dSllai1 * Common Development and Distribution License (the "License"). 6facf4a8dSllai1 * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22*568e756aSvikram * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifndef _MESSAGE_H 277c478bd9Sstevel@tonic-gate #define _MESSAGE_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate #ifdef __cplusplus 327c478bd9Sstevel@tonic-gate extern "C" { 337c478bd9Sstevel@tonic-gate #endif 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate #define CANNOT_BE_USED \ 367c478bd9Sstevel@tonic-gate gettext("Pattern '%s' cannot be used with device '%s:%s'\n") 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate #define MUST_BE_ROOT gettext("you must be root to run this program\n") 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate #define CANT_FIND_USER gettext("name service cannot find user: %s\n") 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gate #define CANT_FIND_GROUP gettext("name service cannot find group %s\n") 437c478bd9Sstevel@tonic-gate 447c478bd9Sstevel@tonic-gate #define NO_LINKTAB gettext("no devlink.tab rules loaded from file '%s'\n") 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gate #define NO_MODULES gettext("no modules loaded from MODPATH '%s'\n") 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate #define ABORTING gettext("aborting\n") 497c478bd9Sstevel@tonic-gate 507c478bd9Sstevel@tonic-gate #define MODIFY_PATH gettext("use devfsadm -l to modify\n") 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate #define CONFIGURING gettext("Configuring devices.\n") 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate #define CHROOT_FAILED gettext("chdir to root failed: %s\n") 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate #define DAEMON_RUNNING gettext("daemon pid %d is already running\n") 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate #define ALIAS_TOO_LONG \ 597c478bd9Sstevel@tonic-gate gettext("alias name is too long; must be %d characters or less: %s\n") 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gate #define MAJOR_AND_B_FLAG \ 627c478bd9Sstevel@tonic-gate gettext("must specify major number and driver name when using the -b flag\n") 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate #define MODCTL_ADDMAJBIND \ 657c478bd9Sstevel@tonic-gate gettext("modctl failed to add major number binding.\n") 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate #define DRIVER_FAILURE gettext("driver failed to attach: %s\n") 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate #define IS_EVENTD_RUNNING gettext("check to make sure syseventd is running\n") 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate #define UNKNOWN_EVENT gettext("parse_event: unknown event type: %s\n") 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate #define DI_INIT_FAILED gettext("di_init failed for %s: %s\n") 747c478bd9Sstevel@tonic-gate 757c478bd9Sstevel@tonic-gate #define CLONE_NOT_FOUND gettext("di_init failed to find clone entry for %s\n") 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate #define DLOPEN_FAILED gettext("dlopen failed: %s: %s\n") 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate #define REGCOMP_FAILED gettext("regcomp failed for %s: error code: %d\n") 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate #define IGNORING_ENTRY \ 827c478bd9Sstevel@tonic-gate gettext("ignoring devfsadm_create entry #%d in module %s\n") 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate #define CANT_CREATE_THREAD gettext("can not create thread %s: %s\n") 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate #define CANT_CREATE_DOOR gettext("can not create event door %s: %s\n") 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate #define FAILED_FOR_MODULE gettext("%s failed for module %s\n") 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate #define REMOVING_LINK gettext("removing link %s -> %s invalid contents\n") 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate #define CREATING_LINK gettext("symlink %s -> %s\n") 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gate #define SYMLINK_FAILED gettext("symlink failed for %s -> %s: %s\n") 957c478bd9Sstevel@tonic-gate 967c478bd9Sstevel@tonic-gate #define MAX_ATTEMPTS \ 977c478bd9Sstevel@tonic-gate gettext("cannot create link: %s -> %s. max attempts exceeded\n") 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate #define PERM_MSG gettext("chown/chmod %s %ul/%ul/%o\n") 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gate #define NO_DEVFS_NODE gettext("no devfs node or mismatched dev_t for %s\n") 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gate #define CHMOD_FAILED gettext("chmod failed for %s: %s\n") 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate #define CHOWN_FAILED gettext("chown failed for %s: %s\n") 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate #define RM_INVALID_MINOR_NODE gettext("removing node %s. invalid st_rdev\n") 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate #define OPENDIR_FAILED gettext("opendir failed for %s: %s\n") 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate #define READLINK_FAILED gettext("%s: readlink failed for %s: %s\n") 1127c478bd9Sstevel@tonic-gate 1137c478bd9Sstevel@tonic-gate #define CANT_LOAD_SYSCALL gettext("cannot load system call for inst_sync\n") 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gate #define SUPER_TO_SYNC \ 1167c478bd9Sstevel@tonic-gate gettext("you must be superuser to sync /etc/path_to_inst\n") 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gate #define INSTSYNC_FAILED gettext("inst_sync failed for %s: %s\n") 1197c478bd9Sstevel@tonic-gate 1207c478bd9Sstevel@tonic-gate #define RENAME_FAILED gettext("rename failed for %s: %s\n") 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gate #define CANT_UPDATE gettext("cannot update: %s\n") 1237c478bd9Sstevel@tonic-gate 1247c478bd9Sstevel@tonic-gate #define FCLOSE_FAILED gettext("fclose failed: %s: %s\n") 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gate #define FAILED_TO_UPDATE gettext("WARNING: failed to update %s\n") 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gate #define OPEN_FAILED gettext("open failed for %s: %s\n") 1297c478bd9Sstevel@tonic-gate 1307c478bd9Sstevel@tonic-gate #define LSEEK_FAILED gettext("lseek failed for %s: %s\n") 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gate #define LOCK_FAILED gettext("fcntl(F_SETLKW) failed for %s: %s\n") 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gate #define WRITE_FAILED gettext("write failed for %s: %s\n") 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gate #define UNLOCK_FAILED gettext("fcntl(F_UNLCK) failed for %s: %s\n") 1377c478bd9Sstevel@tonic-gate 1387c478bd9Sstevel@tonic-gate #define CLOSE_FAILED gettext("close failed for %s: %s\n") 1397c478bd9Sstevel@tonic-gate 1407c478bd9Sstevel@tonic-gate #define LSTAT_FAILED gettext("lstat failed for %s: %s\n") 1417c478bd9Sstevel@tonic-gate 1427c478bd9Sstevel@tonic-gate #define STAT_FAILED gettext("stat failed for %s: %s\n") 1437c478bd9Sstevel@tonic-gate 1447c478bd9Sstevel@tonic-gate #define GID_FAILED gettext("cannot determine gid for %d: %s\n") 1457c478bd9Sstevel@tonic-gate 1467c478bd9Sstevel@tonic-gate #define MKNOD_FAILED gettext("mknod failed for %s: %s\n") 1477c478bd9Sstevel@tonic-gate 1487c478bd9Sstevel@tonic-gate #define MODGETNAME_FAILED gettext("MODGETNAME failed for major number %lu\n") 1497c478bd9Sstevel@tonic-gate 1507c478bd9Sstevel@tonic-gate #define FIND_MAJOR_FAILED gettext("could not find major number for driver %s\n") 1517c478bd9Sstevel@tonic-gate 1527c478bd9Sstevel@tonic-gate #define FOPEN_FAILED gettext("fopen failed for %s: %s\n") 1537c478bd9Sstevel@tonic-gate 1547c478bd9Sstevel@tonic-gate #define IGNORING_LINE_IN gettext("line %d: malformed in %s\n") 1557c478bd9Sstevel@tonic-gate 1567c478bd9Sstevel@tonic-gate #define MISSING_TAB \ 1577c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s has a missing tab -- ignoring\n") 1587c478bd9Sstevel@tonic-gate 1597c478bd9Sstevel@tonic-gate #define MISSING_DEVNAME \ 1607c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s has a missing dev name field -- \ 1617c478bd9Sstevel@tonic-gate ignoring\n") 1627c478bd9Sstevel@tonic-gate 1637c478bd9Sstevel@tonic-gate #define TOO_MANY_FIELDS \ 1647c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s has too many fields -- ignoring\n") 1657c478bd9Sstevel@tonic-gate 1667c478bd9Sstevel@tonic-gate #define LINE_TOO_LONG \ 1677c478bd9Sstevel@tonic-gate gettext("Line %d too long in configuration file %s -- should be less \ 1687c478bd9Sstevel@tonic-gate than %d characters\n") 1697c478bd9Sstevel@tonic-gate 1707c478bd9Sstevel@tonic-gate #define UNRECOGNIZED_KEY \ 1717c478bd9Sstevel@tonic-gate gettext("unrecognized keyword '%s' -- ignoring line %d of file %s\n") 1727c478bd9Sstevel@tonic-gate 1737c478bd9Sstevel@tonic-gate #define BADKEYWORD gettext("bad keyword '%s' on line %d of file %s\n") 1747c478bd9Sstevel@tonic-gate 1757c478bd9Sstevel@tonic-gate #define MISSING_EQUAL \ 1767c478bd9Sstevel@tonic-gate gettext("missing '=' in devfs_spec field line %d from file %s\n") 1777c478bd9Sstevel@tonic-gate 1787c478bd9Sstevel@tonic-gate #define CONFIG_INCORRECT \ 1797c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s incorrect: %s -- ignoring\n") 1807c478bd9Sstevel@tonic-gate 1817c478bd9Sstevel@tonic-gate #define NO_NODE gettext("no node name found for %s\n") 1827c478bd9Sstevel@tonic-gate 1837c478bd9Sstevel@tonic-gate #define NO_MINOR gettext("no minor name for %s\n") 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate #define DRV_BUT_NO_ALIAS gettext("line %d: driver name with no alias in %s\n") 1867c478bd9Sstevel@tonic-gate 1877c478bd9Sstevel@tonic-gate #define MALLOC_FAILED gettext("malloc failed for %d bytes\n") 1887c478bd9Sstevel@tonic-gate 1897c478bd9Sstevel@tonic-gate #define REALLOC_FAILED gettext("realloc failed for %d bytes\n") 1907c478bd9Sstevel@tonic-gate 1917c478bd9Sstevel@tonic-gate #define CALLOC_FAILED gettext("calloc failed for %d bytes\n") 1927c478bd9Sstevel@tonic-gate 1937c478bd9Sstevel@tonic-gate #define STRDUP_FAILED gettext("strdup failed for %s\n") 1947c478bd9Sstevel@tonic-gate 1957c478bd9Sstevel@tonic-gate #define CLOSEDIR_FAILED gettext("closedir failed %s\n") 1967c478bd9Sstevel@tonic-gate 1977c478bd9Sstevel@tonic-gate #define MKDIR_FAILED gettext("mkdir failed for %s 0x%x: %s\n") 1987c478bd9Sstevel@tonic-gate 1997c478bd9Sstevel@tonic-gate #define UNLINK_FAILED gettext("unlink failed for %s: %s\n") 2007c478bd9Sstevel@tonic-gate 2017c478bd9Sstevel@tonic-gate #define DI_DEVFS_PATH_FAILED gettext("di_devfs_path failed: %s\n") 2027c478bd9Sstevel@tonic-gate 2037c478bd9Sstevel@tonic-gate #define COMPAT_LINK_USAGE gettext("Usage:\n\t\t[ -C ]\n\t\t[ \ 2047c478bd9Sstevel@tonic-gate -r root_directory ]\n\t\t[ -n ]\n\t\t[ -v ]\n") 2057c478bd9Sstevel@tonic-gate 2067c478bd9Sstevel@tonic-gate #define DEVLINKS_USAGE gettext("Usage:\n\t\t[ -d ]\n\t\t[ -n ]\n\t\t[ -r \ 2077c478bd9Sstevel@tonic-gate root_directory ]\n\t\t[ -t table-file ]\n\t\t[ -v ]\n") 2087c478bd9Sstevel@tonic-gate 2097c478bd9Sstevel@tonic-gate #define DRVCONFIG_USAGE gettext("Usage:\n\t\t[ -a alias_name ]\n\t\t[ -b ]\ 2107c478bd9Sstevel@tonic-gate \n\t\t[ -c class_name ]\n\t\t[ -d ]\n\t\t[ -i driver_name ]\n\t\t[ -m \ 2117c478bd9Sstevel@tonic-gate major_number ]\n\t\t[ -n ]\n\t\t[ -r rootdir ]\n\t\t[ -v ]\n") 2127c478bd9Sstevel@tonic-gate 2137c478bd9Sstevel@tonic-gate #define DEVFSADM_USAGE gettext("Usage:\n\t\t[ -c device_class ]\n\t\t[ -C ]\ 2147c478bd9Sstevel@tonic-gate \n\t\t[ -i driver_name ]\n\t\t[ -l module_path ]\n\t\t[ -n ]\ 2157c478bd9Sstevel@tonic-gate \n\t\t[ -r rootdir ]\n\t\t[ -s ]\n\t\t[ -t devlink_table_file ]\n\t\t[ -v ]\n") 2167c478bd9Sstevel@tonic-gate 2177c478bd9Sstevel@tonic-gate #define DEVFSADM_UNLINK gettext("removing file: %s\n") 2187c478bd9Sstevel@tonic-gate 2197c478bd9Sstevel@tonic-gate #define INVOKED_WITH gettext("invoked with %s\n") 2207c478bd9Sstevel@tonic-gate 2217c478bd9Sstevel@tonic-gate #define MISSING_SYMBOLS gettext("missing symbols in %s\n") 2227c478bd9Sstevel@tonic-gate 2237c478bd9Sstevel@tonic-gate #define RCM_ALLOC_HANDLE_ERROR gettext("Unable to allocate rcm handle\n") 2247c478bd9Sstevel@tonic-gate 2257c478bd9Sstevel@tonic-gate #define RCM_NOTIFY_FAILED \ 2267c478bd9Sstevel@tonic-gate gettext("RCM notification failed: " \ 2277c478bd9Sstevel@tonic-gate "path = %s, driver = %s, instance = %d: %s\n") 2287c478bd9Sstevel@tonic-gate 2297c478bd9Sstevel@tonic-gate #define RCM_NVLIST_BUILD_ERROR \ 2307c478bd9Sstevel@tonic-gate gettext("failed to build nvlist for notifying RCM: " \ 2317c478bd9Sstevel@tonic-gate "path = %s, driver = %s, instance = %d: %s\n") 2327c478bd9Sstevel@tonic-gate 2337c478bd9Sstevel@tonic-gate #define INVALID_DEVLINK_SPEC gettext("Invalid devlink spec: '%s'\n") 2347c478bd9Sstevel@tonic-gate 2357c478bd9Sstevel@tonic-gate #define DRV_LOAD_REQD gettext("-n option cannot be used with -i. Ignoring\n") 2367c478bd9Sstevel@tonic-gate 2377c478bd9Sstevel@tonic-gate #define DPLCY_ONE_DFLT gettext("%s: Only one default entry allowed\n") 2387c478bd9Sstevel@tonic-gate 2397c478bd9Sstevel@tonic-gate #define DPLCY_FIRST gettext("%s: First entry must be default entry\n") 2407c478bd9Sstevel@tonic-gate 2417c478bd9Sstevel@tonic-gate #define INVALID_MINOR gettext("%s: invalid minor node specification\n") 2427c478bd9Sstevel@tonic-gate 2437c478bd9Sstevel@tonic-gate #define MINOR_TOO_LONG gettext("%s:%s: minor node specification too long\n") 2447c478bd9Sstevel@tonic-gate 2457c478bd9Sstevel@tonic-gate #define UNEXPECTED_EOF gettext("%s: unexpected end of file\n") 2467c478bd9Sstevel@tonic-gate 2477c478bd9Sstevel@tonic-gate #define BAD_ENTRY gettext("\tin the following entry at line %d\n%s\n") 2487c478bd9Sstevel@tonic-gate 2497c478bd9Sstevel@tonic-gate #define NO_MEMORY gettext("Out of memory\n") 2507c478bd9Sstevel@tonic-gate 2517c478bd9Sstevel@tonic-gate 2527c478bd9Sstevel@tonic-gate #define EVENT_ATTR_LOOKUP_FAILED \ 2537c478bd9Sstevel@tonic-gate gettext("failed to lookup event attributes: %s\n") 2547c478bd9Sstevel@tonic-gate 2557c478bd9Sstevel@tonic-gate #define PROP_ADD_FAILED \ 2567c478bd9Sstevel@tonic-gate gettext("failed to add the property %s to event attributes\n") 2577c478bd9Sstevel@tonic-gate 2587c478bd9Sstevel@tonic-gate #define DEV_NAME_LOOKUP_FAILED \ 2597c478bd9Sstevel@tonic-gate gettext("failed to lookup dev name for %s\n") 2607c478bd9Sstevel@tonic-gate 2617c478bd9Sstevel@tonic-gate #define BUILD_EVENT_ATTR_FAILED \ 2627c478bd9Sstevel@tonic-gate gettext("failed to build event attributes: %s\n") 2637c478bd9Sstevel@tonic-gate 2647c478bd9Sstevel@tonic-gate #define LOG_EVENT_FAILED gettext("failed to log event: %s\n") 2657c478bd9Sstevel@tonic-gate 2667c478bd9Sstevel@tonic-gate #define ZONE_PATHCHECK \ 2677c478bd9Sstevel@tonic-gate gettext("cannot manage root path '%s': path is part of zone '%s'\n") 2687c478bd9Sstevel@tonic-gate 269facf4a8dSllai1 #define DEVNAME_CONTACT_FAILED \ 270facf4a8dSllai1 gettext("cannot talk to devname fs %s: %s\n") 271facf4a8dSllai1 2727c478bd9Sstevel@tonic-gate #define NVLIST_ERROR gettext("nvlist interface failed: %s\n") 2737c478bd9Sstevel@tonic-gate 274facf4a8dSllai1 #define NOT_DIR gettext("file is not a directory: %s\n") 275facf4a8dSllai1 276*568e756aSvikram #define NO_DEVLINK_CACHE gettext("devlink cache does not exist\n") 277*568e756aSvikram 2787c478bd9Sstevel@tonic-gate #ifdef __cplusplus 2797c478bd9Sstevel@tonic-gate } 2807c478bd9Sstevel@tonic-gate #endif 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate #endif /* _MESSAGE_H */ 283