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