Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/netconfig.h
          +++ new/usr/src/uts/common/sys/netconfig.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  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   22  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   30   * Use is subject to license terms.
  29   31   */
  30   32  
  31   33  #ifndef _SYS_NETCONFIG_H
  32   34  #define _SYS_NETCONFIG_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.4 */
  35      -
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  #define NETCONFIG "/etc/netconfig"
  41   41  #define NETPATH   "NETPATH"
  42   42  
  43   43  struct  netconfig {
  44   44          char            *nc_netid;      /* network identifier           */
  45   45          unsigned int    nc_semantics;   /* defined below                */
↓ open down ↓ 84 lines elided ↑ open up ↑
 130  130  #define NC_UDP          "udp"
 131  131  #define NC_ICMP         "icmp"
 132  132  
 133  133  /*
 134  134   *      Values for nc_proto for "rdma" protofmly
 135  135   */
 136  136  #define NC_KVIPL        "kvipl"
 137  137  #define NC_IBTF         "ibtf"
 138  138  #define NC_KDAPL        "kdapl"
 139  139  
 140      -#if defined(__STDC__)
 141      -
 142  140  extern void             *setnetconfig(void);
 143  141  extern int              endnetconfig(void *);
 144  142  extern struct netconfig *getnetconfig(void *);
 145  143  extern struct netconfig *getnetconfigent(const char *);
 146  144  extern void             freenetconfigent(struct netconfig *);
 147  145  extern void             *setnetpath(void);
 148  146  extern int              endnetpath(void *);
 149  147  extern struct netconfig *getnetpath(void *);
 150  148  extern void             nc_perror(const char *);
 151  149  extern char             *nc_sperror(void);
 152  150  
 153      -#else   /* __STDC__ */
 154      -
 155      -extern void             *setnetconfig();
 156      -extern int              endnetconfig();
 157      -extern struct netconfig *getnetconfig();
 158      -extern struct netconfig *getnetconfigent();
 159      -extern void             freenetconfigent();
 160      -extern void             *setnetpath();
 161      -extern int              endnetpath();
 162      -extern struct netconfig *getnetpath();
 163      -extern void             nc_perror();
 164      -extern char             *nc_sperror();
 165      -
 166      -#endif  /* __STDC__ */
 167      -
 168  151  #ifdef  __cplusplus
 169  152  }
 170  153  #endif
 171  154  
 172  155  #endif  /* _SYS_NETCONFIG_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX