Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/netdir.h
          +++ new/usr/src/head/netdir.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * and limitations under the License.
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
       22 +/*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + */
  22   25  /*      Copyright (c) 1992 Sun Microsystems, Inc.       */
  23   26  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  24   27  /*        All Rights Reserved   */
  25   28  
  26      -
  27   29  /*
  28   30   * netdir.h
  29   31   *
  30   32   * This is the include file that defines various structures and
  31   33   * constants used by the netdir routines.
  32   34   */
  33   35  
  34   36  #ifndef _NETDIR_H
  35   37  #define _NETDIR_H
  36   38  
  37      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.5   */
  38      -
  39   39  /*
  40   40   * This files uses struct netconfig, and netconfig.h must be included
  41   41   * before this to avoid warnings.
  42   42   */
  43   43  
  44   44  #include <netconfig.h>
  45   45  
  46   46  #ifdef  __cplusplus
  47   47  extern "C" {
  48   48  #endif
↓ open down ↓ 23 lines elided ↑ open up ↑
  72   72   * _nderror is a private variable to the netdir system.
  73   73   */
  74   74  #ifdef _REENTRANT
  75   75  extern int      *__nderror();
  76   76  #define _nderror        (*(__nderror()))
  77   77  #else
  78   78  extern int _nderror;
  79   79  #endif  /* _REENTRANT */
  80   80  
  81   81  
  82      -#ifdef __STDC__
  83      -
  84   82  int netdir_options(struct netconfig *, int option, int fd, char *par);
  85   83  int netdir_getbyname(struct netconfig *, struct nd_hostserv *,
  86   84      struct nd_addrlist **);
  87   85  int netdir_getbyaddr(struct netconfig *, struct nd_hostservlist **,
  88   86      struct netbuf *);
  89   87  int __netdir_getbyaddr_nosrv(struct netconfig *, struct nd_hostservlist **,
  90   88      struct netbuf *);
  91   89  int netdir_mergeaddr(struct netconfig *, char **muaddr, char *uaddr,
  92   90      char *ruaddr);
  93   91  void netdir_free(void *, int);
  94   92  struct netbuf *uaddr2taddr(struct netconfig *, char *);
  95   93  char *taddr2uaddr(struct netconfig *, struct netbuf *);
  96   94  void netdir_perror(char *);
  97   95  char *netdir_sperror();
  98   96  struct nd_addrlist *_netdir_getbyname(struct netconfig *, struct nd_hostserv *);
  99   97  struct nd_hostservlist *_netdir_getbyaddr(struct netconfig *, struct netbuf *);
 100   98  struct netbuf *_uaddr2taddr(struct netconfig *, char *);
 101   99  char *_taddr2uaddr(struct netconfig *, struct netbuf *);
 102  100  char *_netdir_mergeaddr(struct netconfig *, char *uaddr, char *ruaddr);
 103  101  
 104      -#else   /* __STDC__ */
 105      -
 106      -int netdir_options();
 107      -int netdir_getbyname();
 108      -int netdir_getbyaddr();
 109      -int netdir_mergeaddr();
 110      -void netdir_free();
 111      -struct netbuf *uaddr2taddr();
 112      -void netdir_perror();
 113      -char *netdir_sperror();
 114      -char *taddr2uaddr();
 115      -struct nd_addrlist *_netdir_getbyname();
 116      -struct nd_hostservlist *_netdir_getbyaddr();
 117      -char *_netdir_mergeaddr();
 118      -struct netbuf *_uaddr2taddr();
 119      -char *_taddr2uaddr();
 120      -
 121      -#endif  /* __STDC__ */
 122      -
 123  102  /*
 124  103   * These are all objects that can be freed by netdir_free
 125  104   */
 126  105  #define ND_HOSTSERV     0
 127  106  #define ND_HOSTSERVLIST 1
 128  107  #define ND_ADDR         2
 129  108  #define ND_ADDRLIST     3
 130  109  
 131  110  /*
 132  111   * These are the various errors that can be encountered while attempting
↓ open down ↓ 57 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX