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
50523b0abasabi * Common Development and Distribution License (the "License").
60523b0abasabi * You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate *
87c478bdstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate * See the License for the specific language governing permissions
117c478bdstevel@tonic-gate * and limitations under the License.
127c478bdstevel@tonic-gate *
137c478bdstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate *
197c478bdstevel@tonic-gate * CDDL HEADER END
207c478bdstevel@tonic-gate */
217c478bdstevel@tonic-gate/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
227c478bdstevel@tonic-gate/*	  All Rights Reserved  	*/
237c478bdstevel@tonic-gate
247c478bdstevel@tonic-gate
257c478bdstevel@tonic-gate/*
260a1278fGary Mills * Copyright (c) 2013 Gary Mills
270a1278fGary Mills *
280523b0abasabi * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
297c478bdstevel@tonic-gate * Use is subject to license terms.
307c478bdstevel@tonic-gate */
317c478bdstevel@tonic-gate
327c478bdstevel@tonic-gate#ifndef	_MESSAGES_H
337c478bdstevel@tonic-gate#define	_MESSAGES_H
347c478bdstevel@tonic-gate
357c478bdstevel@tonic-gateextern void errmsg(int, ...);
367c478bdstevel@tonic-gate
377c478bdstevel@tonic-gate/* WARNING: uid %d is reserved. */
387c478bdstevel@tonic-gate#define	M_RESERVED		0
397c478bdstevel@tonic-gate
407c478bdstevel@tonic-gate/* WARNING: more than NGROUPS_MAX(%d) groups specified. */
417c478bdstevel@tonic-gate#define	M_MAXGROUPS	1
427c478bdstevel@tonic-gate
437c478bdstevel@tonic-gate/* ERROR: invalid syntax.\nusage:  useradd ... */
447c478bdstevel@tonic-gate#define	M_AUSAGE		2
457c478bdstevel@tonic-gate
467c478bdstevel@tonic-gate/* ERROR: Invalid syntax.\nusage:  userdel [-r] login\n" */
477c478bdstevel@tonic-gate#define	M_DUSAGE		3
487c478bdstevel@tonic-gate
497c478bdstevel@tonic-gate/* ERROR: Invalid syntax.\nusage:  usermod ... */
507c478bdstevel@tonic-gate#define	M_MUSAGE		4
517c478bdstevel@tonic-gate
527c478bdstevel@tonic-gate
537c478bdstevel@tonic-gate/* ERROR: Unexpected failure.  Defaults unchanged. */
547c478bdstevel@tonic-gate#define	M_FAILED	5
557c478bdstevel@tonic-gate
567c478bdstevel@tonic-gate/* ERROR: Unable to remove files from home directory. */
577c478bdstevel@tonic-gate#define	M_RMFILES	6
587c478bdstevel@tonic-gate
597c478bdstevel@tonic-gate/* ERROR: Unable to remove home directory. */
607c478bdstevel@tonic-gate#define	M_RMHOME		7
617c478bdstevel@tonic-gate
627c478bdstevel@tonic-gate/* ERROR: Cannot update system files - login cannot be %s. */
637c478bdstevel@tonic-gate#define	M_UPDATE		8
647c478bdstevel@tonic-gate
657c478bdstevel@tonic-gate/* ERROR: uid %d is already in use.  Choose another. */
667c478bdstevel@tonic-gate#define	M_UID_USED	9
677c478bdstevel@tonic-gate
687c478bdstevel@tonic-gate/* ERROR: %s is already in use.  Choose another. */
697c478bdstevel@tonic-gate#define	M_USED	10
707c478bdstevel@tonic-gate
717c478bdstevel@tonic-gate/* ERROR: %s does not exist. */
727c478bdstevel@tonic-gate#define	M_EXIST	11
737c478bdstevel@tonic-gate
747c478bdstevel@tonic-gate/* ERROR: %s is not a valid %s.  Choose another. */
757c478bdstevel@tonic-gate#define	M_INVALID		12
767c478bdstevel@tonic-gate
777c478bdstevel@tonic-gate/* ERROR: %s is in use.  Cannot %s it. */
787c478bdstevel@tonic-gate#define	M_BUSY	13
797c478bdstevel@tonic-gate
807c478bdstevel@tonic-gate/* WARNING: %s has no permissions to use %s. */
817c478bdstevel@tonic-gate#define	M_NO_PERM	14
827c478bdstevel@tonic-gate
837c478bdstevel@tonic-gate/* ERROR: There is not sufficient space to move %s home directory to %s */
847c478bdstevel@tonic-gate#define	M_NOSPACE		15
857c478bdstevel@tonic-gate
867c478bdstevel@tonic-gate/* ERROR: %s %d is too big.  Choose another. */
877c478bdstevel@tonic-gate#define	M_TOOBIG	16
887c478bdstevel@tonic-gate
897c478bdstevel@tonic-gate/* ERROR: group %s does not exist.  Choose another. */
907c478bdstevel@tonic-gate#define	M_GRP_NOTUSED	17
917c478bdstevel@tonic-gate
927c478bdstevel@tonic-gate/* ERROR: Unable to %s: %s */
937c478bdstevel@tonic-gate#define	M_OOPS	18
947c478bdstevel@tonic-gate
957c478bdstevel@tonic-gate/* ERROR: %s is not a full path name.  Choose another. */
967c478bdstevel@tonic-gate#define	M_RELPATH	19
977c478bdstevel@tonic-gate
987c478bdstevel@tonic-gate/* ERROR: %s is the primary group name.  Choose another. */
997c478bdstevel@tonic-gate#define	M_SAME_GRP	20
1007c478bdstevel@tonic-gate
1017c478bdstevel@tonic-gate/* ERROR: Inconsistent password files.  See pwconv(1M). */
1027c478bdstevel@tonic-gate#define	M_HOSED_FILES	21
1037c478bdstevel@tonic-gate
1047c478bdstevel@tonic-gate/* ERROR: %s is not a local user. */
1057c478bdstevel@tonic-gate#define	M_NONLOCAL	22
1067c478bdstevel@tonic-gate
1077c478bdstevel@tonic-gate/* ERROR: Permission denied. */
1087c478bdstevel@tonic-gate#define	M_PERM_DENIED	23
1097c478bdstevel@tonic-gate
1107c478bdstevel@tonic-gate/* WARNING: Group entry exceeds 2048 char: /etc/group entry truncated. */
1117c478bdstevel@tonic-gate#define	M_GROUP_ENTRY_OVF  24
1127c478bdstevel@tonic-gate
1137c478bdstevel@tonic-gate/* ERROR: invalid syntax.\nusage:  roleadd ... */
1147c478bdstevel@tonic-gate#define	M_ARUSAGE		25
1157c478bdstevel@tonic-gate
1167c478bdstevel@tonic-gate/* ERROR: Invalid syntax.\nusage:  roledel [-r] login\n" */
1177c478bdstevel@tonic-gate#define	M_DRUSAGE		26
1187c478bdstevel@tonic-gate
1197c478bdstevel@tonic-gate/* ERROR: Invalid syntax.\nusage:  rolemod -u ... */
1207c478bdstevel@tonic-gate#define	M_MRUSAGE		27
1217c478bdstevel@tonic-gate
1227c478bdstevel@tonic-gate/* ERROR: project %s does not exist.  Choose another. */
1237c478bdstevel@tonic-gate#define	M_PROJ_NOTUSED 28
1247c478bdstevel@tonic-gate
1257c478bdstevel@tonic-gate/* WARNING: more than NPROJECTS_MAX(%d) projects specified. */
1267c478bdstevel@tonic-gate#define	M_MAXPROJECTS	29
1277c478bdstevel@tonic-gate
1287c478bdstevel@tonic-gate/* WARNING: Project entry exceeds 512 char: /etc/project entry truncated. */
1297c478bdstevel@tonic-gate#define	M_PROJ_ENTRY_OVF  30
1307c478bdstevel@tonic-gate
1317c478bdstevel@tonic-gate/* ERROR: Invalid key. */
1327c478bdstevel@tonic-gate#define	M_INVALID_KEY	31
1337c478bdstevel@tonic-gate
1347c478bdstevel@tonic-gate/* ERROR: Missing value specification. */
1357c478bdstevel@tonic-gate#define	M_INVALID_VALUE	32
1367c478bdstevel@tonic-gate
1377c478bdstevel@tonic-gate/* ERROR: Multiple definitions of key ``%s''. */
1387c478bdstevel@tonic-gate#define	M_REDEFINED_KEY	33
1397c478bdstevel@tonic-gate
1400523b0abasabi/* ERROR: Roles must be modified with rolemod */
1417c478bdstevel@tonic-gate#define	M_ISROLE	34
1427c478bdstevel@tonic-gate
1430523b0abasabi/* ERROR: Users must be modified with usermod */
1447c478bdstevel@tonic-gate#define	M_ISUSER	35
1457c478bdstevel@tonic-gate
1467c478bdstevel@tonic-gate/* WARNING: gid %d is reserved. */
1477c478bdstevel@tonic-gate#define	M_RESERVED_GID		36
1487c478bdstevel@tonic-gate
1490523b0abasabi/* ERROR: Failed to read /etc/group file due to invalid entry or read error. */
1507c478bdstevel@tonic-gate#define	M_READ_ERROR	37
1517c478bdstevel@tonic-gate
1520a1278fGary Mills/* ERROR: %s is too long.  Choose another. */
1530a1278fGary Mills#define	M_TOO_LONG	38
1540a1278fGary Mills
1557fc68ddAlbert Lee/*
1567fc68ddAlbert Lee * WARNING: Avoided creating ZFS filesystem as parent directory
1577fc68ddAlbert Lee * %s is not a ZFS mount point.
1587fc68ddAlbert Lee */
1597fc68ddAlbert Lee#define	M_NO_ZFS_MOUNTPOINT	39
1607fc68ddAlbert Lee
1617fc68ddAlbert Lee
1627c478bdstevel@tonic-gate#endif /* _MESSAGES_H */
163