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/head/limits.h
          +++ new/usr/src/head/limits.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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
  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  
  22   22  /*
       23 + * Copyright (c) 2013 Gary Mills
       24 + *
  23   25   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1988 AT&T */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  
  31   33  #ifndef _LIMITS_H
  32   34  #define _LIMITS_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.34  */
  35      -
  36   36  #include <sys/feature_tests.h>
  37   37  #include <sys/isa_defs.h>
  38   38  #include <iso/limits_iso.h>
  39   39  
  40   40  /*
  41   41   * Include fixed width type limits as proposed by the ISO/JTC1/SC22/WG14 C
  42   42   * committee's working draft for the revision of the current ISO C standard,
  43   43   * ISO/IEC 9899:1990 Programming language - C.  These are not currently
  44   44   * required by any standard but constitute a useful, general purpose set
  45   45   * of type definitions and limits which is namespace clean with respect to
↓ open down ↓ 238 lines elided ↑ open up ↑
 284  284  #define _CLOCK_T
 285  285  typedef long    clock_t;
 286  286  #endif  /* !_CLOCK_T */
 287  287  
 288  288  extern long _sysconf(int);      /* System Private interface to sysconf() */
 289  289  #define CLK_TCK ((clock_t)_sysconf(3))  /* 3 is _SC_CLK_TCK */
 290  290  
 291  291  #endif /* CLK_TCK */
 292  292  
 293  293  #define LOGNAME_MAX     8       /* max # of characters in a login name */
      294 +#define LOGNAME_MAX_ILLUMOS     32      /* max # of characters in an */
      295 +                                        /* illumos login name */
 294  296  #define TTYNAME_MAX     128     /* max # of characters in a tty name */
 295  297  
 296  298  #endif  /* if defined(__EXTENSIONS__) || (!defined(_STRICT_STDC) ... */
 297  299  
 298  300  #if     defined(__EXTENSIONS__) || (_POSIX_C_SOURCE >= 199506L)
 299  301  #include <sys/unistd.h>
 300  302  
 301  303  #if !defined(_SIZE_T) || __cplusplus >= 199711L
 302  304  #define _SIZE_T
 303  305  #if defined(_LP64) || defined(_I32LPx)
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX