xref: /titanic_44/usr/src/cmd/devfsadm/message.h (revision 17e9b2b79f1b6ad823020c5671e72cfa3fc10c7e)
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 /*
226532b960SJerry Gilliam  * Copyright 2009 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 #ifdef	__cplusplus
307c478bd9Sstevel@tonic-gate extern "C" {
317c478bd9Sstevel@tonic-gate #endif
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate #define	CANNOT_BE_USED \
347c478bd9Sstevel@tonic-gate 	gettext("Pattern '%s' cannot be used with device '%s:%s'\n")
357c478bd9Sstevel@tonic-gate 
367c478bd9Sstevel@tonic-gate #define	MUST_BE_ROOT gettext("you must be root to run this program\n")
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate #define	CANT_FIND_USER gettext("name service cannot find user: %s\n")
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate #define	CANT_FIND_GROUP gettext("name service cannot find group %s\n")
417c478bd9Sstevel@tonic-gate 
427c478bd9Sstevel@tonic-gate #define	NO_LINKTAB gettext("no devlink.tab rules loaded from file '%s'\n")
437c478bd9Sstevel@tonic-gate 
447c478bd9Sstevel@tonic-gate #define	NO_MODULES gettext("no modules loaded from MODPATH '%s'\n")
457c478bd9Sstevel@tonic-gate 
467c478bd9Sstevel@tonic-gate #define	ABORTING gettext("aborting\n")
477c478bd9Sstevel@tonic-gate 
487c478bd9Sstevel@tonic-gate #define	MODIFY_PATH gettext("use devfsadm -l to modify\n")
497c478bd9Sstevel@tonic-gate 
507c478bd9Sstevel@tonic-gate #define	CONFIGURING gettext("Configuring devices.\n")
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate #define	CHROOT_FAILED gettext("chdir to root failed: %s\n")
537c478bd9Sstevel@tonic-gate 
547c478bd9Sstevel@tonic-gate #define	DAEMON_RUNNING gettext("daemon pid %d is already running\n")
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate #define	ALIAS_TOO_LONG \
577c478bd9Sstevel@tonic-gate gettext("alias name is too long; must be %d characters or less: %s\n")
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate #define	MAJOR_AND_B_FLAG \
607c478bd9Sstevel@tonic-gate gettext("must specify major number and driver name when using the -b flag\n")
617c478bd9Sstevel@tonic-gate 
627c478bd9Sstevel@tonic-gate #define	MODCTL_ADDMAJBIND \
637c478bd9Sstevel@tonic-gate gettext("modctl failed to add major number binding.\n")
647c478bd9Sstevel@tonic-gate 
656532b960SJerry Gilliam #define	MODCTL_REMMAJBIND \
666532b960SJerry Gilliam gettext("modctl failed to remove major number binding.\n")
676532b960SJerry Gilliam 
687c478bd9Sstevel@tonic-gate #define	DRIVER_FAILURE gettext("driver failed to attach: %s\n")
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate #define	IS_EVENTD_RUNNING gettext("check to make sure syseventd is running\n")
717c478bd9Sstevel@tonic-gate 
727c478bd9Sstevel@tonic-gate #define	UNKNOWN_EVENT gettext("parse_event: unknown event type: %s\n")
737c478bd9Sstevel@tonic-gate 
747c478bd9Sstevel@tonic-gate #define	DI_INIT_FAILED gettext("di_init failed for %s: %s\n")
757c478bd9Sstevel@tonic-gate 
767c478bd9Sstevel@tonic-gate #define	CLONE_NOT_FOUND gettext("di_init failed to find clone entry for %s\n")
777c478bd9Sstevel@tonic-gate 
787c478bd9Sstevel@tonic-gate #define	DLOPEN_FAILED gettext("dlopen failed: %s: %s\n")
797c478bd9Sstevel@tonic-gate 
807c478bd9Sstevel@tonic-gate #define	REGCOMP_FAILED gettext("regcomp failed for %s: error code: %d\n")
817c478bd9Sstevel@tonic-gate 
827c478bd9Sstevel@tonic-gate #define	IGNORING_ENTRY \
837c478bd9Sstevel@tonic-gate gettext("ignoring devfsadm_create entry #%d in module %s\n")
847c478bd9Sstevel@tonic-gate 
857c478bd9Sstevel@tonic-gate #define	CANT_CREATE_THREAD gettext("can not create thread %s: %s\n")
867c478bd9Sstevel@tonic-gate 
877c478bd9Sstevel@tonic-gate #define	CANT_CREATE_DOOR gettext("can not create event door %s: %s\n")
887c478bd9Sstevel@tonic-gate 
897c478bd9Sstevel@tonic-gate #define	FAILED_FOR_MODULE gettext("%s failed for module %s\n")
907c478bd9Sstevel@tonic-gate 
917c478bd9Sstevel@tonic-gate #define	REMOVING_LINK gettext("removing link %s -> %s invalid contents\n")
927c478bd9Sstevel@tonic-gate 
937c478bd9Sstevel@tonic-gate #define	CREATING_LINK gettext("symlink %s -> %s\n")
947c478bd9Sstevel@tonic-gate 
957c478bd9Sstevel@tonic-gate #define	SYMLINK_FAILED gettext("symlink failed for %s -> %s: %s\n")
967c478bd9Sstevel@tonic-gate 
977c478bd9Sstevel@tonic-gate #define	MAX_ATTEMPTS \
987c478bd9Sstevel@tonic-gate gettext("cannot create link: %s -> %s.  max attempts exceeded\n")
997c478bd9Sstevel@tonic-gate 
1007c478bd9Sstevel@tonic-gate #define	PERM_MSG gettext("chown/chmod %s %ul/%ul/%o\n")
1017c478bd9Sstevel@tonic-gate 
1027c478bd9Sstevel@tonic-gate #define	NO_DEVFS_NODE gettext("no devfs node or mismatched dev_t for %s\n")
1037c478bd9Sstevel@tonic-gate 
1047c478bd9Sstevel@tonic-gate #define	CHMOD_FAILED gettext("chmod failed for %s: %s\n")
1057c478bd9Sstevel@tonic-gate 
1067c478bd9Sstevel@tonic-gate #define	CHOWN_FAILED gettext("chown failed for %s: %s\n")
1077c478bd9Sstevel@tonic-gate 
1087c478bd9Sstevel@tonic-gate #define	RM_INVALID_MINOR_NODE gettext("removing node %s.  invalid st_rdev\n")
1097c478bd9Sstevel@tonic-gate 
1107c478bd9Sstevel@tonic-gate #define	OPENDIR_FAILED gettext("opendir failed for %s: %s\n")
1117c478bd9Sstevel@tonic-gate 
1127c478bd9Sstevel@tonic-gate #define	READLINK_FAILED gettext("%s: readlink failed for %s: %s\n")
1137c478bd9Sstevel@tonic-gate 
1147c478bd9Sstevel@tonic-gate #define	CANT_LOAD_SYSCALL gettext("cannot load system call for inst_sync\n")
1157c478bd9Sstevel@tonic-gate 
1167c478bd9Sstevel@tonic-gate #define	SUPER_TO_SYNC \
1177c478bd9Sstevel@tonic-gate gettext("you must be superuser to sync /etc/path_to_inst\n")
1187c478bd9Sstevel@tonic-gate 
1197c478bd9Sstevel@tonic-gate #define	INSTSYNC_FAILED gettext("inst_sync failed for %s: %s\n")
1207c478bd9Sstevel@tonic-gate 
1217c478bd9Sstevel@tonic-gate #define	RENAME_FAILED gettext("rename failed for %s: %s\n")
1227c478bd9Sstevel@tonic-gate 
1237c478bd9Sstevel@tonic-gate #define	CANT_UPDATE gettext("cannot update: %s\n")
1247c478bd9Sstevel@tonic-gate 
1257c478bd9Sstevel@tonic-gate #define	FCLOSE_FAILED gettext("fclose failed: %s: %s\n")
1267c478bd9Sstevel@tonic-gate 
1277c478bd9Sstevel@tonic-gate #define	FAILED_TO_UPDATE gettext("WARNING: failed to update %s\n")
1287c478bd9Sstevel@tonic-gate 
1297c478bd9Sstevel@tonic-gate #define	OPEN_FAILED gettext("open failed for %s: %s\n")
1307c478bd9Sstevel@tonic-gate 
1317c478bd9Sstevel@tonic-gate #define	LSEEK_FAILED gettext("lseek failed for %s: %s\n")
1327c478bd9Sstevel@tonic-gate 
1337c478bd9Sstevel@tonic-gate #define	LOCK_FAILED gettext("fcntl(F_SETLKW) failed for %s: %s\n")
1347c478bd9Sstevel@tonic-gate 
1357c478bd9Sstevel@tonic-gate #define	WRITE_FAILED gettext("write failed for %s: %s\n")
1367c478bd9Sstevel@tonic-gate 
1377c478bd9Sstevel@tonic-gate #define	UNLOCK_FAILED gettext("fcntl(F_UNLCK) failed for %s: %s\n")
1387c478bd9Sstevel@tonic-gate 
1397c478bd9Sstevel@tonic-gate #define	CLOSE_FAILED gettext("close failed for %s: %s\n")
1407c478bd9Sstevel@tonic-gate 
1417c478bd9Sstevel@tonic-gate #define	LSTAT_FAILED gettext("lstat failed for %s: %s\n")
1427c478bd9Sstevel@tonic-gate 
1437c478bd9Sstevel@tonic-gate #define	STAT_FAILED gettext("stat failed for %s: %s\n")
1447c478bd9Sstevel@tonic-gate 
1457c478bd9Sstevel@tonic-gate #define	GID_FAILED gettext("cannot determine gid for %d: %s\n")
1467c478bd9Sstevel@tonic-gate 
1477c478bd9Sstevel@tonic-gate #define	MKNOD_FAILED gettext("mknod failed for %s: %s\n")
1487c478bd9Sstevel@tonic-gate 
1497c478bd9Sstevel@tonic-gate #define	MODGETNAME_FAILED gettext("MODGETNAME failed for major number %lu\n")
1507c478bd9Sstevel@tonic-gate 
1517c478bd9Sstevel@tonic-gate #define	FIND_MAJOR_FAILED gettext("could not find major number for driver %s\n")
1527c478bd9Sstevel@tonic-gate 
1537c478bd9Sstevel@tonic-gate #define	FOPEN_FAILED gettext("fopen failed for %s: %s\n")
1547c478bd9Sstevel@tonic-gate 
1557c478bd9Sstevel@tonic-gate #define	IGNORING_LINE_IN gettext("line %d:  malformed in %s\n")
1567c478bd9Sstevel@tonic-gate 
1577c478bd9Sstevel@tonic-gate #define	MISSING_TAB \
1587c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s has a missing tab -- ignoring\n")
1597c478bd9Sstevel@tonic-gate 
1607c478bd9Sstevel@tonic-gate #define	MISSING_DEVNAME \
1617c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s has a missing dev name field -- \
1627c478bd9Sstevel@tonic-gate ignoring\n")
1637c478bd9Sstevel@tonic-gate 
1647c478bd9Sstevel@tonic-gate #define	TOO_MANY_FIELDS \
1657c478bd9Sstevel@tonic-gate gettext("line %d:  configuration file %s has too many fields -- ignoring\n")
1667c478bd9Sstevel@tonic-gate 
1677c478bd9Sstevel@tonic-gate #define	LINE_TOO_LONG \
1687c478bd9Sstevel@tonic-gate gettext("Line %d too long in configuration file %s -- should be less \
1697c478bd9Sstevel@tonic-gate than %d characters\n")
1707c478bd9Sstevel@tonic-gate 
1717c478bd9Sstevel@tonic-gate #define	UNRECOGNIZED_KEY \
1727c478bd9Sstevel@tonic-gate gettext("unrecognized keyword '%s' -- ignoring line %d of file %s\n")
1737c478bd9Sstevel@tonic-gate 
1747c478bd9Sstevel@tonic-gate #define	BADKEYWORD gettext("bad keyword '%s' on line %d of file %s\n")
1757c478bd9Sstevel@tonic-gate 
1767c478bd9Sstevel@tonic-gate #define	MISSING_EQUAL \
1777c478bd9Sstevel@tonic-gate 	gettext("missing '=' in devfs_spec field line %d from file %s\n")
1787c478bd9Sstevel@tonic-gate 
1797c478bd9Sstevel@tonic-gate #define	CONFIG_INCORRECT \
1807c478bd9Sstevel@tonic-gate gettext("line %d: configuration file %s incorrect: %s -- ignoring\n")
1817c478bd9Sstevel@tonic-gate 
1827c478bd9Sstevel@tonic-gate #define	NO_NODE gettext("no node name found for %s\n")
1837c478bd9Sstevel@tonic-gate 
1847c478bd9Sstevel@tonic-gate #define	NO_MINOR gettext("no minor name for %s\n")
1857c478bd9Sstevel@tonic-gate 
1867c478bd9Sstevel@tonic-gate #define	DRV_BUT_NO_ALIAS gettext("line %d: driver name with no alias in %s\n")
1877c478bd9Sstevel@tonic-gate 
1887c478bd9Sstevel@tonic-gate #define	MALLOC_FAILED gettext("malloc failed for %d bytes\n")
1897c478bd9Sstevel@tonic-gate 
1907c478bd9Sstevel@tonic-gate #define	REALLOC_FAILED gettext("realloc failed for %d bytes\n")
1917c478bd9Sstevel@tonic-gate 
1927c478bd9Sstevel@tonic-gate #define	CALLOC_FAILED gettext("calloc failed for %d bytes\n")
1937c478bd9Sstevel@tonic-gate 
1947c478bd9Sstevel@tonic-gate #define	STRDUP_FAILED gettext("strdup failed for %s\n")
1957c478bd9Sstevel@tonic-gate 
1967c478bd9Sstevel@tonic-gate #define	CLOSEDIR_FAILED gettext("closedir failed %s\n")
1977c478bd9Sstevel@tonic-gate 
1987c478bd9Sstevel@tonic-gate #define	MKDIR_FAILED gettext("mkdir failed for %s 0x%x: %s\n")
1997c478bd9Sstevel@tonic-gate 
2007c478bd9Sstevel@tonic-gate #define	UNLINK_FAILED gettext("unlink failed for %s: %s\n")
2017c478bd9Sstevel@tonic-gate 
2027c478bd9Sstevel@tonic-gate #define	DI_DEVFS_PATH_FAILED gettext("di_devfs_path failed: %s\n")
2037c478bd9Sstevel@tonic-gate 
2047c478bd9Sstevel@tonic-gate #define	COMPAT_LINK_USAGE gettext("Usage:\n\t\t[ -C ]\n\t\t[ \
2057c478bd9Sstevel@tonic-gate -r root_directory ]\n\t\t[ -n ]\n\t\t[ -v ]\n")
2067c478bd9Sstevel@tonic-gate 
2077c478bd9Sstevel@tonic-gate #define	DEVLINKS_USAGE gettext("Usage:\n\t\t[ -d ]\n\t\t[ -n ]\n\t\t[ -r \
2087c478bd9Sstevel@tonic-gate root_directory ]\n\t\t[ -t table-file ]\n\t\t[ -v ]\n")
2097c478bd9Sstevel@tonic-gate 
2107c478bd9Sstevel@tonic-gate #define	DRVCONFIG_USAGE gettext("Usage:\n\t\t[ -a alias_name ]\n\t\t[ -b ]\
2117c478bd9Sstevel@tonic-gate \n\t\t[ -c class_name ]\n\t\t[ -d ]\n\t\t[ -i driver_name ]\n\t\t[ -m \
2127c478bd9Sstevel@tonic-gate major_number ]\n\t\t[ -n ]\n\t\t[ -r rootdir ]\n\t\t[ -v ]\n")
2137c478bd9Sstevel@tonic-gate 
2147c478bd9Sstevel@tonic-gate #define	DEVFSADM_USAGE gettext("Usage:\n\t\t[ -c device_class ]\n\t\t[ -C ]\
2157c478bd9Sstevel@tonic-gate \n\t\t[ -i driver_name ]\n\t\t[ -l module_path ]\n\t\t[ -n ]\
2167c478bd9Sstevel@tonic-gate \n\t\t[ -r rootdir ]\n\t\t[ -s ]\n\t\t[ -t devlink_table_file ]\n\t\t[ -v ]\n")
2177c478bd9Sstevel@tonic-gate 
2187c478bd9Sstevel@tonic-gate #define	DEVFSADM_UNLINK gettext("removing file: %s\n")
2197c478bd9Sstevel@tonic-gate 
2207c478bd9Sstevel@tonic-gate #define	INVOKED_WITH gettext("invoked with %s\n")
2217c478bd9Sstevel@tonic-gate 
2227c478bd9Sstevel@tonic-gate #define	INVALID_DEVLINK_SPEC gettext("Invalid devlink spec: '%s'\n")
2237c478bd9Sstevel@tonic-gate 
2247c478bd9Sstevel@tonic-gate #define	DRV_LOAD_REQD gettext("-n option cannot be used with -i. Ignoring\n")
2257c478bd9Sstevel@tonic-gate 
2267c478bd9Sstevel@tonic-gate #define	DPLCY_ONE_DFLT gettext("%s: Only one default entry allowed\n")
2277c478bd9Sstevel@tonic-gate 
2287c478bd9Sstevel@tonic-gate #define	DPLCY_FIRST gettext("%s: First entry must be default entry\n")
2297c478bd9Sstevel@tonic-gate 
2307c478bd9Sstevel@tonic-gate #define	INVALID_MINOR gettext("%s: invalid minor node specification\n")
2317c478bd9Sstevel@tonic-gate 
2327c478bd9Sstevel@tonic-gate #define	MINOR_TOO_LONG gettext("%s:%s: minor node specification too long\n")
2337c478bd9Sstevel@tonic-gate 
2347c478bd9Sstevel@tonic-gate #define	UNEXPECTED_EOF gettext("%s: unexpected end of file\n")
2357c478bd9Sstevel@tonic-gate 
2367c478bd9Sstevel@tonic-gate #define	BAD_ENTRY gettext("\tin the following entry at line %d\n%s\n")
2377c478bd9Sstevel@tonic-gate 
2387c478bd9Sstevel@tonic-gate #define	NO_MEMORY gettext("Out of memory\n")
2397c478bd9Sstevel@tonic-gate 
2407c478bd9Sstevel@tonic-gate 
2417c478bd9Sstevel@tonic-gate #define	EVENT_ATTR_LOOKUP_FAILED \
2427c478bd9Sstevel@tonic-gate     gettext("failed to lookup event attributes: %s\n")
2437c478bd9Sstevel@tonic-gate 
2447c478bd9Sstevel@tonic-gate #define	PROP_ADD_FAILED \
2457c478bd9Sstevel@tonic-gate     gettext("failed to add the property %s to event attributes\n")
2467c478bd9Sstevel@tonic-gate 
2477c478bd9Sstevel@tonic-gate #define	DEV_NAME_LOOKUP_FAILED \
2487c478bd9Sstevel@tonic-gate     gettext("failed to lookup dev name for %s\n")
2497c478bd9Sstevel@tonic-gate 
2507c478bd9Sstevel@tonic-gate #define	BUILD_EVENT_ATTR_FAILED \
2517c478bd9Sstevel@tonic-gate     gettext("failed to build event attributes: %s\n")
2527c478bd9Sstevel@tonic-gate 
2537c478bd9Sstevel@tonic-gate #define	LOG_EVENT_FAILED gettext("failed to log event: %s\n")
2547c478bd9Sstevel@tonic-gate 
2557c478bd9Sstevel@tonic-gate #define	ZONE_PATHCHECK \
2567c478bd9Sstevel@tonic-gate     gettext("cannot manage root path '%s': path is part of zone '%s'\n")
2577c478bd9Sstevel@tonic-gate 
258*17e9b2b7SDhanaraj M #define	MUST_BE_GLOBAL_ZONE \
259*17e9b2b7SDhanaraj M     gettext("can only be run from the global zone\n")
260*17e9b2b7SDhanaraj M 
261facf4a8dSllai1 #define	DEVNAME_CONTACT_FAILED \
262facf4a8dSllai1     gettext("cannot talk to devname fs %s: %s\n")
263facf4a8dSllai1 
2647c478bd9Sstevel@tonic-gate #define	NVLIST_ERROR gettext("nvlist interface failed: %s\n")
2657c478bd9Sstevel@tonic-gate 
266facf4a8dSllai1 #define	NOT_DIR gettext("file is not a directory: %s\n")
267facf4a8dSllai1 
268568e756aSvikram #define	NO_DEVLINK_CACHE gettext("devlink cache does not exist\n")
269568e756aSvikram 
2707c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
2717c478bd9Sstevel@tonic-gate }
2727c478bd9Sstevel@tonic-gate #endif
2737c478bd9Sstevel@tonic-gate 
2747c478bd9Sstevel@tonic-gate #endif /* _MESSAGE_H */
275