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/nss_dbdefs.h
          +++ new/usr/src/head/nss_dbdefs.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  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 + * Copyright (c) 2013 Gary Mills
       23 + *
  22   24   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   *
  25   27   * Database-specific definitions for the getXXXbyYYY routines
  26   28   * (e.g getpwuid_r(), ether_ntohost()) that use the name-service switch.
  27   29   * Database-independent definitions are in <nss_common.h>
  28   30   *
  29   31   * Ideally, this is the only switch header file one would add things
  30   32   * to in order to support a new database.
  31   33   *
↓ open down ↓ 149 lines elided ↑ open up ↑
 181  183   * coded array sizes;  the values here are meant to handle anything that
 182  184   * those implementations handled.
 183  185   * === These might more reasonably go in <pwd.h>, <netdb.h> et al
 184  186   */
 185  187  
 186  188  #define NSS_BUFLEN_GROUP        NSS_LINELEN_GROUP
 187  189  #define NSS_BUFLEN_HOSTS        \
 188  190          (NSS_LINELEN_HOSTS + (MAXALIASES + MAXADDRS + 2) * sizeof (char *))
 189  191  #define NSS_BUFLEN_IPNODES      \
 190  192          (NSS_LINELEN_IPNODES + (MAXALIASES + MAXADDRS + 2) * sizeof (char *))
 191      -#define NSS_BUFLEN_NETGROUP     (MAXHOSTNAMELEN * 2 + LOGNAME_MAX + 3)
      193 +#define NSS_BUFLEN_NETGROUP     (MAXHOSTNAMELEN * 2 + LOGNAME_MAX_ILLUMOS + 3)
 192  194  #define NSS_BUFLEN_NETWORKS     NSS_LINELEN_NETWORKS    /* === ?  + 35 * 4 */
 193  195  #define NSS_BUFLEN_PASSWD       NSS_LINELEN_PASSWD
 194  196  #define NSS_BUFLEN_PROJECT      (NSS_LINELEN_PROJECT + 800 * sizeof (char *))
 195  197  #define NSS_BUFLEN_PROTOCOLS    NSS_LINELEN_PROTOCOLS   /* === ?  + 35 * 4 */
 196  198  #define NSS_BUFLEN_PUBLICKEY    NSS_LINELEN_PUBLICKEY
 197  199  #define NSS_BUFLEN_RPC          NSS_LINELEN_RPC         /* === ?  + 35 * 4 */
 198  200  #define NSS_BUFLEN_SERVICES     NSS_LINELEN_SERVICES    /* === ?  + 35 * 4 */
 199  201  #define NSS_BUFLEN_SHADOW       NSS_LINELEN_SHADOW
 200  202  #define NSS_BUFLEN_ETHERS       NSS_LINELEN_ETHERS
 201  203  #define NSS_BUFLEN_BOOTPARAMS   NSS_LINELEN_BOOTPARAMS
↓ open down ↓ 644 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX