Print this page
remove support for non-ANSI compilation


   2  * CDDL HEADER START
   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*


  22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  27 /*        All Rights Reserved   */
  28 
  29 
  30 #ifndef _SYS_SYSTEMINFO_H
  31 #define _SYS_SYSTEMINFO_H
  32 
  33 #ifdef  __cplusplus
  34 extern "C" {
  35 #endif
  36 
  37 #ifdef  _KERNEL
  38 extern char architecture[];
  39 extern char architecture_32[];
  40 extern char hw_serial[];        /* machine's 32-bit hostid; a decimal string */
  41 extern char hw_provider[];


  81 /* Solaris defined `get' commands (513-768) */
  82 #define SI_PLATFORM             513     /* return platform identifier */
  83 #define SI_ISALIST              514     /* return supported isa list */
  84 #define SI_DHCP_CACHE           515     /* return kernel-cached DHCPACK */
  85 #define SI_ARCHITECTURE_32      516     /* basic 32-bit SI_ARCHITECTURE */
  86 #define SI_ARCHITECTURE_64      517     /* basic 64-bit SI_ARCHITECTURE */
  87 #define SI_ARCHITECTURE_K       518     /* kernel SI_ARCHITECTURE equivalent */
  88 #define SI_ARCHITECTURE_NATIVE  519     /* SI_ARCHITECTURE of the caller */
  89 
  90 /* Solaris defined `set' commands (769-1024) (none currently assigned) */
  91 
  92 
  93 #define HW_INVALID_HOSTID       0xFFFFFFFF      /* an invalid hostid */
  94 #define HW_HOSTID_LEN           11              /* minimum buffer size needed */
  95                                                 /* to hold a decimal or hex */
  96                                                 /* hostid string */
  97 #define DOM_NM_LN               64              /* maximum length of domain */
  98                                                 /* name */
  99 
 100 #if !defined(_KERNEL)
 101 #if defined(__STDC__)
 102 int sysinfo(int, char *, long);
 103 #else
 104 int sysinfo();
 105 #endif
 106 #endif
 107 
 108 #ifdef  __cplusplus
 109 }
 110 #endif
 111 
 112 #endif /* _SYS_SYSTEMINFO_H */


   2  * CDDL HEADER START
   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  23  *
  24  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25  * Use is subject to license terms.
  26  */
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 
  32 #ifndef _SYS_SYSTEMINFO_H
  33 #define _SYS_SYSTEMINFO_H
  34 
  35 #ifdef  __cplusplus
  36 extern "C" {
  37 #endif
  38 
  39 #ifdef  _KERNEL
  40 extern char architecture[];
  41 extern char architecture_32[];
  42 extern char hw_serial[];        /* machine's 32-bit hostid; a decimal string */
  43 extern char hw_provider[];


  83 /* Solaris defined `get' commands (513-768) */
  84 #define SI_PLATFORM             513     /* return platform identifier */
  85 #define SI_ISALIST              514     /* return supported isa list */
  86 #define SI_DHCP_CACHE           515     /* return kernel-cached DHCPACK */
  87 #define SI_ARCHITECTURE_32      516     /* basic 32-bit SI_ARCHITECTURE */
  88 #define SI_ARCHITECTURE_64      517     /* basic 64-bit SI_ARCHITECTURE */
  89 #define SI_ARCHITECTURE_K       518     /* kernel SI_ARCHITECTURE equivalent */
  90 #define SI_ARCHITECTURE_NATIVE  519     /* SI_ARCHITECTURE of the caller */
  91 
  92 /* Solaris defined `set' commands (769-1024) (none currently assigned) */
  93 
  94 
  95 #define HW_INVALID_HOSTID       0xFFFFFFFF      /* an invalid hostid */
  96 #define HW_HOSTID_LEN           11              /* minimum buffer size needed */
  97                                                 /* to hold a decimal or hex */
  98                                                 /* hostid string */
  99 #define DOM_NM_LN               64              /* maximum length of domain */
 100                                                 /* name */
 101 
 102 #if !defined(_KERNEL)

 103 int sysinfo(int, char *, long);


 104 #endif

 105 
 106 #ifdef  __cplusplus
 107 }
 108 #endif
 109 
 110 #endif /* _SYS_SYSTEMINFO_H */