Print this page
remove support for non-ANSI compilation


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


  23  * Copyright 1998-2002 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 #ifndef _SYS_CLADM_H
  28 #define _SYS_CLADM_H
  29 
  30 #pragma ident   "%Z%%M% %I%     %E% SMI"
  31 
  32 #ifdef  __cplusplus
  33 extern "C" {
  34 #endif
  35 
  36 #include <sys/types.h>
  37 #include <sys/clconf.h>
  38 #include <netinet/in.h>
  39 
  40 
  41 /*
  42  * This file defines interfaces which are private to Sun Clustering.
  43  * Others should not depend on this in any way as it may change or be
  44  * removed completely.
  45  */
  46 
  47 /*
  48  * cladm() facilities; see below for definitions pertinent to each of these
  49  * facilities.
  50  */
  51 #define CL_INITIALIZE           0       /* bootstrapping information */


 126         } cl_ipv_un;
 127 } cladm_netaddr_entry_t;
 128 
 129 typedef struct {
 130         uint32_t                cladm_num_netaddrs;
 131         cladm_netaddr_entry_t   *cladm_netaddrs_array;
 132 } cladm_netaddrs_t;
 133 
 134 #if defined(_SYSCALL32)
 135 typedef struct {
 136         uint32_t        cladm_num_netaddrs;
 137         caddr32_t       cladm_netaddrs_array;
 138 } cladm_netaddrs32_t;
 139 #endif /* defined(_SYSCALL32) */
 140 
 141 
 142 #ifdef _KERNEL
 143 extern int cladmin(int fac, int cmd, void *data);
 144 extern int cluster_bootflags;
 145 #else
 146 #if defined(__STDC__)
 147 extern int _cladm(int fac, int cmd, void *data);
 148 #else   /* !defined(__STDC__) */
 149 extern int _cladm();
 150 #endif  /* defined(__STDC__) */
 151 #endif  /* _KERNEL */
 152 
 153 #ifdef  __cplusplus
 154 }
 155 #endif
 156 
 157 
 158 #endif  /* _SYS_CLADM_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 1998-2002 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #ifndef _SYS_CLADM_H
  30 #define _SYS_CLADM_H
  31 


  32 #ifdef  __cplusplus
  33 extern "C" {
  34 #endif
  35 
  36 #include <sys/types.h>
  37 #include <sys/clconf.h>
  38 #include <netinet/in.h>
  39 
  40 
  41 /*
  42  * This file defines interfaces which are private to Sun Clustering.
  43  * Others should not depend on this in any way as it may change or be
  44  * removed completely.
  45  */
  46 
  47 /*
  48  * cladm() facilities; see below for definitions pertinent to each of these
  49  * facilities.
  50  */
  51 #define CL_INITIALIZE           0       /* bootstrapping information */


 126         } cl_ipv_un;
 127 } cladm_netaddr_entry_t;
 128 
 129 typedef struct {
 130         uint32_t                cladm_num_netaddrs;
 131         cladm_netaddr_entry_t   *cladm_netaddrs_array;
 132 } cladm_netaddrs_t;
 133 
 134 #if defined(_SYSCALL32)
 135 typedef struct {
 136         uint32_t        cladm_num_netaddrs;
 137         caddr32_t       cladm_netaddrs_array;
 138 } cladm_netaddrs32_t;
 139 #endif /* defined(_SYSCALL32) */
 140 
 141 
 142 #ifdef _KERNEL
 143 extern int cladmin(int fac, int cmd, void *data);
 144 extern int cluster_bootflags;
 145 #else

 146 extern int _cladm(int fac, int cmd, void *data);



 147 #endif  /* _KERNEL */
 148 
 149 #ifdef  __cplusplus
 150 }
 151 #endif
 152 
 153 
 154 #endif  /* _SYS_CLADM_H */