Print this page
2989 Eliminate use of LOGNAME_MAX in ON
1166 useradd have warning with name more 8 chars


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  22 /*        All Rights Reserved   */
  23 
  24 
  25 /*


  26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27  * Use is subject to license terms.
  28  */
  29 
  30 #ifndef _MESSAGES_H
  31 #define _MESSAGES_H
  32 
  33 #pragma ident   "%Z%%M% %I%     %E% SMI"
  34 
  35 extern void errmsg(int, ...);
  36 
  37 /* WARNING: uid %d is reserved. */
  38 #define M_RESERVED              0
  39 
  40 /* WARNING: more than NGROUPS_MAX(%d) groups specified. */
  41 #define M_MAXGROUPS     1
  42 
  43 /* ERROR: invalid syntax.\nusage:  useradd ... */
  44 #define M_AUSAGE                2
  45 
  46 /* ERROR: Invalid syntax.\nusage:  userdel [-r] login\n" */
  47 #define M_DUSAGE                3
  48 
  49 /* ERROR: Invalid syntax.\nusage:  usermod ... */
  50 #define M_MUSAGE                4
  51 
  52 
  53 /* ERROR: Unexpected failure.  Defaults unchanged. */
  54 #define M_FAILED        5


 132 #define M_INVALID_KEY   31
 133 
 134 /* ERROR: Missing value specification. */
 135 #define M_INVALID_VALUE 32
 136 
 137 /* ERROR: Multiple definitions of key ``%s''. */
 138 #define M_REDEFINED_KEY 33
 139 
 140 /* ERROR: Roles must be modified with rolemod */
 141 #define M_ISROLE        34
 142 
 143 /* ERROR: Users must be modified with usermod */
 144 #define M_ISUSER        35
 145 
 146 /* WARNING: gid %d is reserved. */
 147 #define M_RESERVED_GID          36
 148 
 149 /* ERROR: Failed to read /etc/group file due to invalid entry or read error. */
 150 #define M_READ_ERROR    37
 151 



 152 #endif /* _MESSAGES_H */


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  22 /*        All Rights Reserved   */
  23 
  24 
  25 /*
  26  * Copyright (c) 2013 Gary Mills
  27  *
  28  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  29  * Use is subject to license terms.
  30  */
  31 
  32 #ifndef _MESSAGES_H
  33 #define _MESSAGES_H
  34 


  35 extern void errmsg(int, ...);
  36 
  37 /* WARNING: uid %d is reserved. */
  38 #define M_RESERVED              0
  39 
  40 /* WARNING: more than NGROUPS_MAX(%d) groups specified. */
  41 #define M_MAXGROUPS     1
  42 
  43 /* ERROR: invalid syntax.\nusage:  useradd ... */
  44 #define M_AUSAGE                2
  45 
  46 /* ERROR: Invalid syntax.\nusage:  userdel [-r] login\n" */
  47 #define M_DUSAGE                3
  48 
  49 /* ERROR: Invalid syntax.\nusage:  usermod ... */
  50 #define M_MUSAGE                4
  51 
  52 
  53 /* ERROR: Unexpected failure.  Defaults unchanged. */
  54 #define M_FAILED        5


 132 #define M_INVALID_KEY   31
 133 
 134 /* ERROR: Missing value specification. */
 135 #define M_INVALID_VALUE 32
 136 
 137 /* ERROR: Multiple definitions of key ``%s''. */
 138 #define M_REDEFINED_KEY 33
 139 
 140 /* ERROR: Roles must be modified with rolemod */
 141 #define M_ISROLE        34
 142 
 143 /* ERROR: Users must be modified with usermod */
 144 #define M_ISUSER        35
 145 
 146 /* WARNING: gid %d is reserved. */
 147 #define M_RESERVED_GID          36
 148 
 149 /* ERROR: Failed to read /etc/group file due to invalid entry or read error. */
 150 #define M_READ_ERROR    37
 151 
 152 /* ERROR: %s is too long.  Choose another. */
 153 #define M_TOO_LONG      38
 154 
 155 #endif /* _MESSAGES_H */