Print this page
re #13613 rb4516 Tunables needs volatile keyword


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */



  25 
  26 /*
  27  * The sole purpose of this file is to document our violations of the DDI
  28  * in Solaris and to get ddict to run on the data services stack.
  29  * Definitions and declarations contained in this file are never compiled
  30  * into the code.  It is only included if we are running ddict on our src.
  31  *
  32  * IMPORTANT NOTE:
  33  * Many of the declarations are not correct. It does not matter.
  34  * Structure declarations only define the fields we require.
  35  * Structures which we use in an opaque manner are defined as void *
  36  */
  37 
  38 #ifndef _SYS_CONTRACT_H
  39 #define _SYS_CONTRACT_H
  40 
  41 #ifdef  __cplusplus
  42 extern "C" {
  43 #endif
  44 


 138  * NSCTL module violations
 139  */
 140 #define ERESTART 0
 141 #define EUSERS 0
 142 #define ENAMETOOLONG 0
 143 #define ENOSYS  0
 144 #define FOPEN   0
 145 int ddi_name_to_major() { }
 146 /*
 147  * End of NSCTL module violations
 148  */
 149 
 150 /*
 151  * NSKERN module violations
 152  */
 153 #define UL_GETFSIZE     0
 154 #define USHRT_MAX       0
 155 
 156 typedef u_longlong_t    rlim64_t;
 157 int ulimit() { }
 158 int maxphys;
 159 
 160 #define AT_SIZE 0
 161 #define VBLK    0
 162 #define VCHR    0
 163 #define VREG    0
 164 #define VLNK    0
 165 
 166 #define VOP_CLOSE(vp, f, c, o, cr)      ((void)0)
 167 #define VOP_RWLOCK(vp, w)       ((void)0)
 168 #define VOP_RWUNLOCK(vp, w)     ((void)0)
 169 #define VOP_READ(vp, uiop, iof, cr)     ((void)0)
 170 #define VOP_WRITE(vp, uiop, iof, cr)    ((void)0)
 171 
 172 int vn_open(char *pnamep, void seg, int filemode, int createmode,
 173                 struct vnode **vpp, void crwhy, mode_t umask) { }
 174 
 175 /*
 176  * End of NSKERN module violations
 177  */
 178 




   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 2008 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 /*
  26  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  27  */
  28 
  29 /*
  30  * The sole purpose of this file is to document our violations of the DDI
  31  * in Solaris and to get ddict to run on the data services stack.
  32  * Definitions and declarations contained in this file are never compiled
  33  * into the code.  It is only included if we are running ddict on our src.
  34  *
  35  * IMPORTANT NOTE:
  36  * Many of the declarations are not correct. It does not matter.
  37  * Structure declarations only define the fields we require.
  38  * Structures which we use in an opaque manner are defined as void *
  39  */
  40 
  41 #ifndef _SYS_CONTRACT_H
  42 #define _SYS_CONTRACT_H
  43 
  44 #ifdef  __cplusplus
  45 extern "C" {
  46 #endif
  47 


 141  * NSCTL module violations
 142  */
 143 #define ERESTART 0
 144 #define EUSERS 0
 145 #define ENAMETOOLONG 0
 146 #define ENOSYS  0
 147 #define FOPEN   0
 148 int ddi_name_to_major() { }
 149 /*
 150  * End of NSCTL module violations
 151  */
 152 
 153 /*
 154  * NSKERN module violations
 155  */
 156 #define UL_GETFSIZE     0
 157 #define USHRT_MAX       0
 158 
 159 typedef u_longlong_t    rlim64_t;
 160 int ulimit() { }
 161 volatile int maxphys;
 162 
 163 #define AT_SIZE 0
 164 #define VBLK    0
 165 #define VCHR    0
 166 #define VREG    0
 167 #define VLNK    0
 168 
 169 #define VOP_CLOSE(vp, f, c, o, cr)      ((void)0)
 170 #define VOP_RWLOCK(vp, w)       ((void)0)
 171 #define VOP_RWUNLOCK(vp, w)     ((void)0)
 172 #define VOP_READ(vp, uiop, iof, cr)     ((void)0)
 173 #define VOP_WRITE(vp, uiop, iof, cr)    ((void)0)
 174 
 175 int vn_open(char *pnamep, void seg, int filemode, int createmode,
 176                 struct vnode **vpp, void crwhy, mode_t umask) { }
 177 
 178 /*
 179  * End of NSKERN module violations
 180  */
 181