xref: /titanic_50/usr/src/cmd/oamuser/user/messages.h (revision 36fe4a92b52649b0979d6a13212f4cea730d19c7)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 /*
27  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
28  * Use is subject to license terms.
29  */
30 
31 #ifndef	_MESSAGES_H
32 #define	_MESSAGES_H
33 
34 #pragma ident	"%Z%%M%	%I%	%E% SMI"
35 
36 extern void errmsg(int, ...);
37 
38 /* WARNING: uid %d is reserved. */
39 #define	M_RESERVED		0
40 
41 /* WARNING: more than NGROUPS_MAX(%d) groups specified. */
42 #define	M_MAXGROUPS	1
43 
44 /* ERROR: invalid syntax.\nusage:  useradd ... */
45 #define	M_AUSAGE		2
46 
47 /* ERROR: Invalid syntax.\nusage:  userdel [-r] login\n" */
48 #define	M_DUSAGE		3
49 
50 /* ERROR: Invalid syntax.\nusage:  usermod ... */
51 #define	M_MUSAGE		4
52 
53 
54 /* ERROR: Unexpected failure.  Defaults unchanged. */
55 #define	M_FAILED	5
56 
57 /* ERROR: Unable to remove files from home directory. */
58 #define	M_RMFILES	6
59 
60 /* ERROR: Unable to remove home directory. */
61 #define	M_RMHOME		7
62 
63 /* ERROR: Cannot update system files - login cannot be %s. */
64 #define	M_UPDATE		8
65 
66 /* ERROR: uid %d is already in use.  Choose another. */
67 #define	M_UID_USED	9
68 
69 /* ERROR: %s is already in use.  Choose another. */
70 #define	M_USED	10
71 
72 /* ERROR: %s does not exist. */
73 #define	M_EXIST	11
74 
75 /* ERROR: %s is not a valid %s.  Choose another. */
76 #define	M_INVALID		12
77 
78 /* ERROR: %s is in use.  Cannot %s it. */
79 #define	M_BUSY	13
80 
81 /* WARNING: %s has no permissions to use %s. */
82 #define	M_NO_PERM	14
83 
84 /* ERROR: There is not sufficient space to move %s home directory to %s */
85 #define	M_NOSPACE		15
86 
87 /* ERROR: %s %d is too big.  Choose another. */
88 #define	M_TOOBIG	16
89 
90 /* ERROR: group %s does not exist.  Choose another. */
91 #define	M_GRP_NOTUSED	17
92 
93 /* ERROR: Unable to %s: %s */
94 #define	M_OOPS	18
95 
96 /* ERROR: %s is not a full path name.  Choose another. */
97 #define	M_RELPATH	19
98 
99 /* ERROR: %s is the primary group name.  Choose another. */
100 #define	M_SAME_GRP	20
101 
102 /* ERROR: Inconsistent password files.  See pwconv(1M). */
103 #define	M_HOSED_FILES	21
104 
105 /* ERROR: %s is not a local user. */
106 #define	M_NONLOCAL	22
107 
108 /* ERROR: Permission denied. */
109 #define	M_PERM_DENIED	23
110 
111 /* WARNING: Group entry exceeds 2048 char: /etc/group entry truncated. */
112 #define	M_GROUP_ENTRY_OVF  24
113 
114 /* ERROR: invalid syntax.\nusage:  roleadd ... */
115 #define	M_ARUSAGE		25
116 
117 /* ERROR: Invalid syntax.\nusage:  roledel [-r] login\n" */
118 #define	M_DRUSAGE		26
119 
120 /* ERROR: Invalid syntax.\nusage:  rolemod -u ... */
121 #define	M_MRUSAGE		27
122 
123 /* ERROR: project %s does not exist.  Choose another. */
124 #define	M_PROJ_NOTUSED 28
125 
126 /* WARNING: more than NPROJECTS_MAX(%d) projects specified. */
127 #define	M_MAXPROJECTS	29
128 
129 /* WARNING: Project entry exceeds 512 char: /etc/project entry truncated. */
130 #define	M_PROJ_ENTRY_OVF  30
131 
132 /* ERROR: Invalid key. */
133 #define	M_INVALID_KEY	31
134 
135 /* ERROR: Missing value specification. */
136 #define	M_INVALID_VALUE	32
137 
138 /* ERROR: Multiple definitions of key ``%s''. */
139 #define	M_REDEFINED_KEY	33
140 
141 /* ERROR: Roles most be modified with rolemod */
142 #define	M_ISROLE	34
143 
144 /* ERROR: Users most be modified with usermod */
145 #define	M_ISUSER	35
146 
147 /* WARNING: gid %d is reserved. */
148 #define	M_RESERVED_GID		36
149 
150 /* ERROR: Failed to read /etc/group file due to invaild entry or read error. */
151 #define	M_READ_ERROR	37
152 
153 #endif /* _MESSAGES_H */
154