Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/systeminfo.h
          +++ new/usr/src/uts/common/sys/systeminfo.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 2009 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  27   29  /*        All Rights Reserved   */
  28   30  
  29   31  
  30   32  #ifndef _SYS_SYSTEMINFO_H
  31   33  #define _SYS_SYSTEMINFO_H
↓ open down ↓ 59 lines elided ↑ open up ↑
  91   93  
  92   94  
  93   95  #define HW_INVALID_HOSTID       0xFFFFFFFF      /* an invalid hostid */
  94   96  #define HW_HOSTID_LEN           11              /* minimum buffer size needed */
  95   97                                                  /* to hold a decimal or hex */
  96   98                                                  /* hostid string */
  97   99  #define DOM_NM_LN               64              /* maximum length of domain */
  98  100                                                  /* name */
  99  101  
 100  102  #if !defined(_KERNEL)
 101      -#if defined(__STDC__)
 102  103  int sysinfo(int, char *, long);
 103      -#else
 104      -int sysinfo();
 105  104  #endif
 106      -#endif
 107  105  
 108  106  #ifdef  __cplusplus
 109  107  }
 110  108  #endif
 111  109  
 112  110  #endif /* _SYS_SYSTEMINFO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX