Print this page
7127  remove -Wno-missing-braces from Makefile.uts


 123  */
 124 #define VUIDMICE_CONF_FLAG      (D_MP | D_MTQPAIR)
 125 
 126 static struct fmodsw fsw = {
 127         VUID_NAME,
 128         &vuidmice_info,
 129         VUIDMICE_CONF_FLAG
 130 };
 131 
 132 static struct modlstrmod modlstrmod = {
 133         &mod_strmodops,
 134         "mouse events to vuid events",
 135         &fsw
 136 };
 137 
 138 /*
 139  * Module linkage information for the kernel.
 140  */
 141 static struct modlinkage modlinkage = {
 142         MODREV_1,
 143         &modlstrmod,
 144         NULL
 145 };
 146 
 147 static int module_open = 0;     /* allow only one open of this module */
 148 
 149 int
 150 _init(void)
 151 {
 152         register int rc;
 153 
 154         mutex_init(&vuidmice_lock, NULL, MUTEX_DEFAULT, NULL);
 155         if ((rc = mod_install(&modlinkage)) != 0) {
 156                 mutex_destroy(&vuidmice_lock);
 157         }
 158         return (rc);
 159 }
 160 
 161 int
 162 _fini(void)
 163 {
 164         register int rc;




 123  */
 124 #define VUIDMICE_CONF_FLAG      (D_MP | D_MTQPAIR)
 125 
 126 static struct fmodsw fsw = {
 127         VUID_NAME,
 128         &vuidmice_info,
 129         VUIDMICE_CONF_FLAG
 130 };
 131 
 132 static struct modlstrmod modlstrmod = {
 133         &mod_strmodops,
 134         "mouse events to vuid events",
 135         &fsw
 136 };
 137 
 138 /*
 139  * Module linkage information for the kernel.
 140  */
 141 static struct modlinkage modlinkage = {
 142         MODREV_1,
 143         { &modlstrmod, NULL }

 144 };
 145 
 146 static int module_open = 0;     /* allow only one open of this module */
 147 
 148 int
 149 _init(void)
 150 {
 151         register int rc;
 152 
 153         mutex_init(&vuidmice_lock, NULL, MUTEX_DEFAULT, NULL);
 154         if ((rc = mod_install(&modlinkage)) != 0) {
 155                 mutex_destroy(&vuidmice_lock);
 156         }
 157         return (rc);
 158 }
 159 
 160 int
 161 _fini(void)
 162 {
 163         register int rc;