Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/nsswitch.h
          +++ new/usr/src/head/nsswitch.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 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*
  27   29   * nsswitch.h
  28   30   *
  29   31   * Low-level interface to the name-service switch.  The interface defined
  30   32   * in <nss_common.h> should be used in preference to this.
  31   33   *
  32   34   * This is a Project Private interface.  It may change in future releases.
  33   35   */
  34   36  
  35   37  #ifndef _NSSWITCH_H
  36   38  #define _NSSWITCH_H
  37   39  
  38      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  39      -
  40   40  #ifdef  __cplusplus
  41   41  extern "C" {
  42   42  #endif
  43   43  
  44   44  #ifndef __NSW_CONFIG_FILE
  45   45  #define __NSW_CONFIG_FILE       "/etc/nsswitch.conf"
  46   46  #endif
  47   47  #define __NSW_DEFAULT_FILE      "/etc/default/nss"
  48   48  
  49   49  #define __NSW_HOSTS_DB          "hosts"
↓ open down ↓ 68 lines elided ↑ open up ↑
 118  118  
 119  119  #define __NSW_ACTION(lkp, err)  \
 120  120          ((lkp)->next == NULL ? \
 121  121                  __NSW_RETURN \
 122  122          : \
 123  123                  ((err) >= 0 && (err) < __NSW_STD_ERRS ? \
 124  124                          (lkp)->actions[err] \
 125  125                  : \
 126  126                          __nsw_extended_action(lkp, err)))
 127  127  
 128      -#ifdef __STDC__
 129      -
 130  128  struct __nsw_switchconfig *__nsw_getconfig
 131  129          (const char *, enum __nsw_parse_err *);
 132  130  int __nsw_freeconfig(struct __nsw_switchconfig *);
 133  131  action_t __nsw_extended_action(struct __nsw_lookup *, int);
 134  132  
 135      -#else
 136      -
 137      -struct __nsw_switchconfig *__nsw_getconfig();
 138      -int __nsw_freeconfig();
 139      -action_t __nsw_extended_action();
 140      -
 141      -#endif /* __STDC__ */
 142      -
 143  133  #ifdef  __cplusplus
 144  134  }
 145  135  #endif
 146  136  
 147  137  #endif /* _NSSWITCH_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX