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/lib/libc/port/gen/sysconf.c
          +++ new/usr/src/lib/libc/port/gen/sysconf.c
↓ 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 2009 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  /* sysconf(3C) - returns system configuration information */
  31   33  
  32   34  #pragma weak _sysconf = sysconf
↓ open down ↓ 332 lines elided ↑ open up ↑
 365  367                  case _SC_THREAD_DESTRUCTOR_ITERATIONS:
 366  368                          return (-1L);
 367  369  
 368  370                  case _SC_GETGR_R_SIZE_MAX:
 369  371                          return ((long)_nss_get_bufsizes(_SC_GETGR_R_SIZE_MAX));
 370  372  
 371  373                  case _SC_GETPW_R_SIZE_MAX:
 372  374                          return ((long)NSS_BUFLEN_PASSWD);
 373  375  
 374  376                  case _SC_LOGIN_NAME_MAX:
 375      -                        return ((long)(LOGNAME_MAX + 1));
      377 +                        return ((long)(LOGIN_NAME_MAX));
 376  378  
 377  379                  case _SC_THREAD_KEYS_MAX:
 378  380                          return (-1L);
 379  381  
 380  382                  case _SC_THREAD_STACK_MIN:
 381  383                          return ((long)thr_min_stack());
 382  384  
 383  385                  case _SC_THREAD_THREADS_MAX:
 384  386                          return (-1L);
 385  387  
↓ open down ↓ 161 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX