17c478bdstevel@tonic-gate/*
27c478bdstevel@tonic-gate * CDDL HEADER START
37c478bdstevel@tonic-gate *
47c478bdstevel@tonic-gate * The contents of this file are subject to the terms of the
57c478bdstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only
67c478bdstevel@tonic-gate * (the "License").  You may not use this file except in compliance
77c478bdstevel@tonic-gate * with the License.
87c478bdstevel@tonic-gate *
97c478bdstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bdstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
117c478bdstevel@tonic-gate * See the License for the specific language governing permissions
127c478bdstevel@tonic-gate * and limitations under the License.
137c478bdstevel@tonic-gate *
147c478bdstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
157c478bdstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bdstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
177c478bdstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
187c478bdstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bdstevel@tonic-gate *
207c478bdstevel@tonic-gate * CDDL HEADER END
217c478bdstevel@tonic-gate */
227c478bdstevel@tonic-gate/*
237c478bdstevel@tonic-gate * Copyright (c) 1996 Sun Microsystems, Inc.  All Rights Reserved
247c478bdstevel@tonic-gate *
257c478bdstevel@tonic-gate * module:
267c478bdstevel@tonic-gate *	messages.h
277c478bdstevel@tonic-gate *
287c478bdstevel@tonic-gate * purpose:
297c478bdstevel@tonic-gate *	contins defines for all localizable messages
307c478bdstevel@tonic-gate *
317c478bdstevel@tonic-gate * notes:
327c478bdstevel@tonic-gate *	unless otherwise specified, all %s arguments can be assumed
337c478bdstevel@tonic-gate * 	to be file names.  Non-obvious arguments are explained in
347c478bdstevel@tonic-gate *	comments.
357c478bdstevel@tonic-gate */
367c478bdstevel@tonic-gate
377c478bdstevel@tonic-gate#ifndef	_MESSAGES_H
387c478bdstevel@tonic-gate#define	_MESSAGES_H
397c478bdstevel@tonic-gate
407c478bdstevel@tonic-gate#pragma ident	"%W%	%E% SMI"
417c478bdstevel@tonic-gate
427c478bdstevel@tonic-gate#ifdef	__cplusplus
437c478bdstevel@tonic-gateextern "C" {
447c478bdstevel@tonic-gate#endif
457c478bdstevel@tonic-gate
467c478bdstevel@tonic-gate#include <libintl.h>
477c478bdstevel@tonic-gate
487c478bdstevel@tonic-gate/*
497c478bdstevel@tonic-gate * summary output messages
507c478bdstevel@tonic-gate */
517c478bdstevel@tonic-gate#define	SUM_hd		"RECONCILE %s and %s (%d files)\n"
527c478bdstevel@tonic-gate#define	SUM_dst		"\t-> %4d copies, %4d deletes, %4d ownership\n"
537c478bdstevel@tonic-gate#define	SUM_src		"\t<- %4d copies, %4d deletes, %4d ownership\n"
547c478bdstevel@tonic-gate#define	SUM_unresolved	"\tUNRESOLVED CONFLICTS: %d\n"
557c478bdstevel@tonic-gate
567c478bdstevel@tonic-gate/*
577c478bdstevel@tonic-gate * verbose mode analysis commentary
587c478bdstevel@tonic-gate */
597c478bdstevel@tonic-gate#define	V_nomore	"# file %s no longer exists\n"
607c478bdstevel@tonic-gate#define	V_deleted	"# file %s deleted from %s\n"	/* src/dst */
617c478bdstevel@tonic-gate#define	V_created	"# file %s created on %s\n"	/* src/dst */
627c478bdstevel@tonic-gate#define	V_delconf	"# file %s has been deleted and changed\n"
637c478bdstevel@tonic-gate#define	V_trunconf	"# file %s has been truncated and changed\n"
647c478bdstevel@tonic-gate#define	V_unchanged	"# file %s has two identical versions\n"
657c478bdstevel@tonic-gate#define	V_different	"# file %s has two different versions\n"
667c478bdstevel@tonic-gate#define	V_modes		"# file %s has changed modes/ownership\n"
677c478bdstevel@tonic-gate#define	V_changed	"# file %s has been modified\n"
687c478bdstevel@tonic-gate#define	V_renamed	"# file %s has been renamed to %s\n"
697c478bdstevel@tonic-gate#define	V_prunes	"# %d stale entries pruned from baseline\n"
707c478bdstevel@tonic-gate#define	V_nostat	"# WARNING: unable to stat file %s\n"
717c478bdstevel@tonic-gate#define	V_change	"# WARNING: file %s on %s, was <%ld,%ld>#%ld, now <%ld,%ld>#%ld\n"
727c478bdstevel@tonic-gate#define	V_suppressed	"# file %s not reconciled due to halt-on-error\n"
737c478bdstevel@tonic-gate
747c478bdstevel@tonic-gate/*
757c478bdstevel@tonic-gate * usage messages
767c478bdstevel@tonic-gate */
777c478bdstevel@tonic-gate#define	ERR_usage	"Usage:"
787c478bdstevel@tonic-gate#define	USE_a		"always check for Access Control Lists"
797c478bdstevel@tonic-gate#define	USE_e		"everything must agree (modes, owner, group)"
807c478bdstevel@tonic-gate#define	USE_h		"halt immediately after a file propagation error"
817c478bdstevel@tonic-gate#define	USE_m		"modification times should be preserved"
827c478bdstevel@tonic-gate#define	USE_n		"no touch (do not change any files)"
837c478bdstevel@tonic-gate#define	USE_q		"quiet    (do not list reconciliation commands)"
847c478bdstevel@tonic-gate#define	USE_v		"verbose  (commentary on each changed file)"
857c478bdstevel@tonic-gate#define	USE_y		"yes      (do not prompt for confirmations)"
867c478bdstevel@tonic-gate#define	USE_s		"source directory for new rules"
877c478bdstevel@tonic-gate#define	USE_d		"destination directory for new rules"
887c478bdstevel@tonic-gate#define	USE_r		"restrict reconciliation to specified directories"
897c478bdstevel@tonic-gate#define	USE_f		"force conflicts to resolve in favor of src/dst/old/new"
907c478bdstevel@tonic-gate#define	USE_o		"one-way: only propagate changes from src/dst"
917c478bdstevel@tonic-gate
927c478bdstevel@tonic-gate/*
937c478bdstevel@tonic-gate * These are the basic usage scenario line, and in most cases should not
947c478bdstevel@tonic-gate * be translated.
957c478bdstevel@tonic-gate */
967c478bdstevel@tonic-gate#define	USE_simple	"[-mnqv] -s dir -d dir file ..."
977c478bdstevel@tonic-gate#define	USE_all		"[-aehmnqvy] [-r dir] [-f src/dst/old/new] [-o src/dst]"
987c478bdstevel@tonic-gate
997c478bdstevel@tonic-gate/*
1007c478bdstevel@tonic-gate * error messages
1017c478bdstevel@tonic-gate */
1027c478bdstevel@tonic-gate#define	ERR_open	"ERROR: cannot open %s file %s\n"
1037c478bdstevel@tonic-gate#define	ERR_creat	"ERROR: unable to create %s file %s\n"
1047c478bdstevel@tonic-gate#define	ERR_write	"ERROR: write error in %s file %s\n"
1057c478bdstevel@tonic-gate#define	ERR_fclose	"ERROR: error in flushing and closing %s file %s\n"
1067c478bdstevel@tonic-gate#define	ERR_chdir	"ERROR: unable to chdir to %s\n"
1077c478bdstevel@tonic-gate#define	ERR_rename	"ERROR: unable to rename %s file %s to %s\n"
1087c478bdstevel@tonic-gate#define	ERR_lock	"ERROR: unable to lock %s file %s\n"
1097c478bdstevel@tonic-gate			/*
1107c478bdstevel@tonic-gate			 * first %s argument is "rules" or "baseline"
1117c478bdstevel@tonic-gate			 */
1127c478bdstevel@tonic-gate#define	ERR_badinput	"ERROR: invalid input at line %d, %s in %s\n"
1137c478bdstevel@tonic-gate			/*
1147c478bdstevel@tonic-gate			 * first %s argument is a the name of the offending
1157c478bdstevel@tonic-gate			 * field (e.g. "mode" or "major dev").  The last
1167c478bdstevel@tonic-gate			 * %s argument is the name of the file being
1177c478bdstevel@tonic-gate			 * processed.
1187c478bdstevel@tonic-gate			 */
1197c478bdstevel@tonic-gate#define	ERR_badver	"ERROR: bad version (%d.%d) found in %s file %s\n"
1207c478bdstevel@tonic-gate			/*
1217c478bdstevel@tonic-gate			 * second %s is "rules" or "baseline"
1227c478bdstevel@tonic-gate			 * last %s is file name
1237c478bdstevel@tonic-gate			 */
1247c478bdstevel@tonic-gate
1257c478bdstevel@tonic-gate
1267c478bdstevel@tonic-gate#define	ERR_nocwd	"ERROR: unable to get working directory for %s\n"
1277c478bdstevel@tonic-gate#define	ERR_longname	"ERROR: excessively long name %s\n"
1287c478bdstevel@tonic-gate#define	ERR_undef	"ERROR: undefined variable %s\n"
1297c478bdstevel@tonic-gate#define	ERR_deep	"ERROR: directory tree is too deep at directory %s\n"
1307c478bdstevel@tonic-gate
1317c478bdstevel@tonic-gate#define	ERR_badopt	"ERROR: unrecognized option -%c %s\n"
1327c478bdstevel@tonic-gate			/*
1337c478bdstevel@tonic-gate			 * the %c argument is the offending flag
1347c478bdstevel@tonic-gate			 * (e.g. -f or -o) and the %s is the argument
1357c478bdstevel@tonic-gate			 * that followed it.
1367c478bdstevel@tonic-gate			 */
1377c478bdstevel@tonic-gate
1387c478bdstevel@tonic-gate#define	ERR_nofsync	"ERROR: unable to find rule and baseline files\n"
1397c478bdstevel@tonic-gate#define	ERR_badbase	"ERROR: invalid BASE directory %s\n"
1407c478bdstevel@tonic-gate#define	ERR_nosrc	"ERROR: no source directory specified\n"
1417c478bdstevel@tonic-gate#define	ERR_nodst	"ERROR: no destination directory specified\n"
1427c478bdstevel@tonic-gate#define	ERR_nonames	"ERROR: no file/directory names specified and no rules file found\n"
1437c478bdstevel@tonic-gate#define	ERR_tomany	"ERROR: only %d -r arguments allowed\n"
1447c478bdstevel@tonic-gate#define	ERR_rdwri	"ERROR: cannot read/write file %s\n"
1457c478bdstevel@tonic-gate#define	ERR_dirwac	"ERROR: cannot create files in directory %s\n"
1467c478bdstevel@tonic-gate#define	ERR_nomem	"ERROR: unable to allocate memory for %s\n"
1477c478bdstevel@tonic-gate			/*
1487c478bdstevel@tonic-gate			 * the %s argument is the name of a data structure
1497c478bdstevel@tonic-gate			 * that could not be allocated.  It is only useful
1507c478bdstevel@tonic-gate			 * for telling the support person over the phone.
1517c478bdstevel@tonic-gate			 */
1527c478bdstevel@tonic-gate
1537c478bdstevel@tonic-gate#define	ERR_badrun	"ERROR: bad exit code from %s\n"
1547c478bdstevel@tonic-gate			/*
1557c478bdstevel@tonic-gate			 * argument is a command from the rules file
1567c478bdstevel@tonic-gate			 */
1577c478bdstevel@tonic-gate
1587c478bdstevel@tonic-gate#define	ERR_cannot	"ERROR: %s %s\n"
1597c478bdstevel@tonic-gate			/*
1607c478bdstevel@tonic-gate			 * The first %s argument will be a PROB_ string.
1617c478bdstevel@tonic-gate			 * The second %s argument is the file we were
1627c478bdstevel@tonic-gate			 * trying to do it to.
1637c478bdstevel@tonic-gate			 */
1647c478bdstevel@tonic-gate
1657c478bdstevel@tonic-gate#define	ERR_abort_h	"ERROR: aborting because of propagation failure\n"
1667c478bdstevel@tonic-gate
1677c478bdstevel@tonic-gate#define	WARN_ignore	"WARNING: ignoring LIST rule for %s (illegal '.', '..', or '/')\n"
1687c478bdstevel@tonic-gate#define	WARN_noacls	"WARNING: ACLs are not supported for file %s\n"
1697c478bdstevel@tonic-gate#define	WARN_deletes	"WARNING: this operation might delete %d files\n"
1707c478bdstevel@tonic-gate#define	WARN_rmdirs	"WARNING: operation might delete %d non-empty directories\n"
1717c478bdstevel@tonic-gate#define	WARN_ichange	"WARNING: %d listed directories have changed Inode #s\n"
1727c478bdstevel@tonic-gate#define	WARN_proceed	"Press Enter to confirm, or interrupt to abort\n"
1737c478bdstevel@tonic-gate#define	WARN_super	"NOTE: there are ownership and protection conflicts that can only be\n      resolved by the super user\n"
1747c478bdstevel@tonic-gate
1757c478bdstevel@tonic-gate/*
1767c478bdstevel@tonic-gate * descriptions of problems in unreconcilable files
1777c478bdstevel@tonic-gate */
1787c478bdstevel@tonic-gate#define	PROB_del_change	"deleted and changed"
1797c478bdstevel@tonic-gate#define	PROB_different	"two different versions"
1807c478bdstevel@tonic-gate#define	PROB_ownership	"different owners"
1817c478bdstevel@tonic-gate#define	PROB_protection	"different protections"
1827c478bdstevel@tonic-gate#define	PROB_prohibited	"blocked by -o switch"
1837c478bdstevel@tonic-gate#define	PROB_aborted	"aborted by -h switch"
1847c478bdstevel@tonic-gate
1857c478bdstevel@tonic-gate#define	PROB_chown	"unable to chown"
1867c478bdstevel@tonic-gate#define	PROB_chgrp	"unable to chgrp"
1877c478bdstevel@tonic-gate#define	PROB_chmod	"unable to chmod"
1887c478bdstevel@tonic-gate#define	PROB_chacl	"unable to setfacl"
1897c478bdstevel@tonic-gate#define	PROB_link	"unable to link"
1907c478bdstevel@tonic-gate#define	PROB_unlink	"unable to unlink"
1917c478bdstevel@tonic-gate#define	PROB_rmdir	"unable to rmdir"
1927c478bdstevel@tonic-gate#define	PROB_copy	"unable to copy"
1937c478bdstevel@tonic-gate#define	PROB_mknod	"unable to mknod"
1947c478bdstevel@tonic-gate#define	PROB_mkdir	"unable to mkdir"
1957c478bdstevel@tonic-gate#define	PROB_readlink	"unable to read symlink"
1967c478bdstevel@tonic-gate#define	PROB_symlink	"unable to create symlink"
1977c478bdstevel@tonic-gate#define	PROB_restat	"unable to stat/restat"
1987c478bdstevel@tonic-gate#define	PROB_deal	"unable to deal with"
1997c478bdstevel@tonic-gate#define	PROB_copyin	"unable to open changed file"
2007c478bdstevel@tonic-gate#define	PROB_copyout	"unable to create new file"
2017c478bdstevel@tonic-gate#define	PROB_botch	"unable to safely setfacl"
2027c478bdstevel@tonic-gate#define	PROB_rename	"unable to rename"
2037c478bdstevel@tonic-gate#define	PROB_rename2	"unable to rename/create"
2047c478bdstevel@tonic-gate#define	PROB_read	"read error"
2057c478bdstevel@tonic-gate#define	PROB_write	"write error"
2067c478bdstevel@tonic-gate#define	PROB_space	"insufficient space to copy"
2077c478bdstevel@tonic-gate
2087c478bdstevel@tonic-gate
2097c478bdstevel@tonic-gate/*
2107c478bdstevel@tonic-gate * text snippets
2117c478bdstevel@tonic-gate */
2127c478bdstevel@tonic-gate#define	TXT_src		"source"			/* for WARN_change   */
2137c478bdstevel@tonic-gate#define	TXT_dst		"destination"			/* for WARN_change   */
2147c478bdstevel@tonic-gate#define	TXT_srcdst	"missing source/destination"	/* for ERR_bad_input */
2157c478bdstevel@tonic-gate#define	TXT_noargs	"missing arguments"		/* for ERR_bad_input */
2167c478bdstevel@tonic-gate#define	TXT_badver	"invalid version number"	/* for ERR_bad_input */
2177c478bdstevel@tonic-gate#define	TXT_nobase	"LIST without a BASE"		/* for ERR_bad_input */
2187c478bdstevel@tonic-gate#define	TXT_rules	"rules"				/* for ERR_bad_ver   */
2197c478bdstevel@tonic-gate#define	TXT_base	"baseline"			/* for ERR_bad_ver   */
2207c478bdstevel@tonic-gate
2217c478bdstevel@tonic-gate#ifdef	__cplusplus
2227c478bdstevel@tonic-gate}
2237c478bdstevel@tonic-gate#endif
2247c478bdstevel@tonic-gate
2257c478bdstevel@tonic-gate#endif	/* _MESSAGES_H */
226