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