Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/nss_netdir.h
          +++ new/usr/src/head/nss_netdir.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   * nss_netdir.h
  28   30   *
  29   31   * Defines structures that are shared between the OSNET-private
  30   32   * _get_hostserv_inetnetdir_byYY() interfaces and the public
  31   33   * interfaces gethostbyYY()/getservbyYY() and netdir_getbyYY().
  32   34   * Ideally, this header file should never be visible to developers
  33   35   * outside of the OSNET build.
  34   36   */
  35   37  
  36   38  #ifndef _NSS_NETDIR_H
  37   39  #define _NSS_NETDIR_H
  38   40  
  39      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  40      -
  41   41  #ifdef  __cplusplus
  42   42  extern "C" {
  43   43  #endif
  44   44  
  45   45  typedef enum {
  46   46          NSS_HOST,
  47   47          NSS_SERV,
  48   48          NETDIR_BY,
  49   49          NETDIR_BY_NOSRV,                /* bypass service lookup */
  50   50          NETDIR_BY6,
↓ open down ↓ 65 lines elided ↑ open up ↑
 116  116          struct nd_hostservlist **nd_hslist;
 117  117          union {
 118  118                  struct {
 119  119                          struct hostent *hent;
 120  120                          int     *herrno_p;
 121  121                  } host;
 122  122                  struct servent *serv;
 123  123          } nss;
 124  124  };
 125  125  
 126      -#ifdef __STDC__
 127      -
 128  126  int __classic_netdir_getbyname(struct netconfig *,
 129  127                  struct nd_hostserv *, struct nd_addrlist **);
 130  128  int __classic_netdir_getbyaddr(struct netconfig *,
 131  129                  struct nd_hostservlist **, struct netbuf *);
 132  130  int _get_hostserv_inetnetdir_byname(struct netconfig *,
 133  131                  struct nss_netdirbyname_in *, union nss_netdirbyname_out *);
 134  132  int _get_hostserv_inetnetdir_byaddr(struct netconfig *,
 135  133                  struct nss_netdirbyaddr_in *, union nss_netdirbyaddr_out *);
 136  134  int __inet_netdir_options(struct netconfig *,
 137  135                  int option, int fd, char *par);
 138  136  struct netbuf *__inet_uaddr2taddr(struct netconfig *, char *);
 139  137  char *__inet_taddr2uaddr(struct netconfig *, struct netbuf *);
 140  138  
 141      -#else
 142      -
 143      -int __classic_netdir_getbyname();
 144      -int __classic_netdir_getbyaddr();
 145      -int _get_hostserv_inetnetdir_byname();
 146      -int _get_hostserv_inetnetdir_byaddr();
 147      -int __inet_netdir_options();
 148      -struct netbuf *__inet_uaddr2taddr();
 149      -char *__inet_taddr2uaddr();
 150      -
 151      -#endif /* __STDC__ */
 152      -
 153  139  #ifdef  __cplusplus
 154  140  }
 155  141  #endif
 156  142  
 157  143  #endif /* _NSS_NETDIR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX