summaryrefslogtreecommitdiff
path: root/usr/src/cmd/oamuser/user/messages.h
blob: c01708320b27f1490efe89d19eb573182bd8108f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
/*	  All Rights Reserved  	*/


/*
 * Copyright (c) 2013 Gary Mills
 *
 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

#ifndef	_MESSAGES_H
#define	_MESSAGES_H

extern void errmsg(int, ...);

/* WARNING: uid %d is reserved. */
#define	M_RESERVED		0

/* WARNING: more than NGROUPS_MAX(%d) groups specified. */
#define	M_MAXGROUPS	1

/* ERROR: invalid syntax.\nusage:  useradd ... */
#define	M_AUSAGE		2

/* ERROR: Invalid syntax.\nusage:  userdel [-r] login\n" */
#define	M_DUSAGE		3

/* ERROR: Invalid syntax.\nusage:  usermod ... */
#define	M_MUSAGE		4


/* ERROR: Unexpected failure.  Defaults unchanged. */
#define	M_FAILED	5

/* ERROR: Unable to remove files from home directory. */
#define	M_RMFILES	6

/* ERROR: Unable to remove home directory. */
#define	M_RMHOME		7

/* ERROR: Cannot update system files - login cannot be %s. */
#define	M_UPDATE		8

/* ERROR: uid %d is already in use.  Choose another. */
#define	M_UID_USED	9

/* ERROR: %s is already in use.  Choose another. */
#define	M_USED	10

/* ERROR: %s does not exist. */
#define	M_EXIST	11

/* ERROR: %s is not a valid %s.  Choose another. */
#define	M_INVALID		12

/* ERROR: %s is in use.  Cannot %s it. */
#define	M_BUSY	13

/* WARNING: %s has no permissions to use %s. */
#define	M_NO_PERM	14

/* ERROR: There is not sufficient space to move %s home directory to %s */
#define	M_NOSPACE		15

/* ERROR: %s %d is too big.  Choose another. */
#define	M_TOOBIG	16

/* ERROR: group %s does not exist.  Choose another. */
#define	M_GRP_NOTUSED	17

/* ERROR: Unable to %s: %s */
#define	M_OOPS	18

/* ERROR: %s is not a full path name.  Choose another. */
#define	M_RELPATH	19

/* ERROR: %s is the primary group name.  Choose another. */
#define	M_SAME_GRP	20

/* ERROR: Inconsistent password files.  See pwconv(8). */
#define	M_HOSED_FILES	21

/* ERROR: %s is not a local user. */
#define	M_NONLOCAL	22

/* ERROR: Permission denied. */
#define	M_PERM_DENIED	23

/* WARNING: Group entry exceeds 2048 char: /etc/group entry truncated. */
#define	M_GROUP_ENTRY_OVF  24

/* ERROR: invalid syntax.\nusage:  roleadd ... */
#define	M_ARUSAGE		25

/* ERROR: Invalid syntax.\nusage:  roledel [-r] login\n" */
#define	M_DRUSAGE		26

/* ERROR: Invalid syntax.\nusage:  rolemod -u ... */
#define	M_MRUSAGE		27

/* ERROR: project %s does not exist.  Choose another. */
#define	M_PROJ_NOTUSED 28

/* WARNING: more than NPROJECTS_MAX(%d) projects specified. */
#define	M_MAXPROJECTS	29

/* WARNING: Project entry exceeds 512 char: /etc/project entry truncated. */
#define	M_PROJ_ENTRY_OVF  30

/* ERROR: Invalid key. */
#define	M_INVALID_KEY	31

/* ERROR: Missing value specification. */
#define	M_INVALID_VALUE	32

/* ERROR: Multiple definitions of key ``%s''. */
#define	M_REDEFINED_KEY	33

/* ERROR: Roles must be modified with rolemod */
#define	M_ISROLE	34

/* ERROR: Users must be modified with usermod */
#define	M_ISUSER	35

/* WARNING: gid %d is reserved. */
#define	M_RESERVED_GID		36

/* ERROR: Failed to read /etc/group file due to invalid entry or read error. */
#define	M_READ_ERROR	37

/* ERROR: %s is too long.  Choose another. */
#define	M_TOO_LONG	38

/*
 * WARNING: Avoided creating ZFS filesystem as parent directory
 * %s is not a ZFS mount point.
 */
#define	M_NO_ZFS_MOUNTPOINT	39


#endif /* _MESSAGES_H */