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