Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/instance.h
          +++ new/usr/src/uts/common/sys/instance.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 (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  23   25   */
  24   26  
  25   27  #ifndef _SYS_INSTANCE_H
  26   28  #define _SYS_INSTANCE_H
  27   29  
  28   30  /*
  29   31   * Instance number assignment data structures
  30   32   */
  31   33  
↓ open down ↓ 95 lines elided ↑ open up ↑
 127  129  in_node_t *e_ddi_path_to_instance(char *path);
 128  130  void e_ddi_borrow_instance(dev_info_t *cdip, in_node_t *cnp);
 129  131  void e_ddi_return_instance(dev_info_t *cdip, char *addr, in_node_t *cnp);
 130  132  
 131  133  /* return values from e_ddi_walk_instances callback */
 132  134  #define INST_WALK_CONTINUE      0
 133  135  #define INST_WALK_TERMINATE     1
 134  136  
 135  137  
 136  138  #else   /* _KERNEL */
 137      -#ifdef __STDC__
 138  139  extern int inst_sync(char *pathname, int flags);
 139      -#else
 140      -extern int inst_sync();
 141      -#endif  /* __STDC__ */
 142  140  #endif  /* _KERNEL */
 143  141  
 144  142  #define INST_SYNC_IF_REQUIRED   0
 145  143  #define INST_SYNC_ALWAYS        1
 146  144  
 147  145  #ifdef  __cplusplus
 148  146  }
 149  147  #endif
 150  148  
 151  149  #endif  /* _SYS_INSTANCE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX