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


 130 
 131 #include <sys/types.h>
 132 #include <sys/conf.h>
 133 #include <sys/param.h>
 134 #include <sys/systm.h>
 135 #include <sys/errno.h>
 136 #include <sys/modctl.h>
 137 
 138 /*
 139  * Module linkage information for the kernel.
 140  */
 141 
 142 static struct modldrv modldrv = {
 143         &mod_driverops, /* Type of module.  This one is a pseudo driver */
 144         "tty pseudo driver slave 'ptsl'",
 145         &ptsl_ops,  /* driver ops */
 146 };
 147 
 148 static struct modlinkage modlinkage = {
 149         MODREV_1,
 150         &modldrv,
 151         NULL
 152 };
 153 
 154 int
 155 _init(void)
 156 {
 157         return (mod_install(&modlinkage));
 158 }
 159 
 160 int
 161 _fini(void)
 162 {
 163         return (mod_remove(&modlinkage));
 164 }
 165 
 166 int
 167 _info(struct modinfo *modinfop)
 168 {
 169         return (mod_info(&modlinkage, modinfop));
 170 }
 171 




 130 
 131 #include <sys/types.h>
 132 #include <sys/conf.h>
 133 #include <sys/param.h>
 134 #include <sys/systm.h>
 135 #include <sys/errno.h>
 136 #include <sys/modctl.h>
 137 
 138 /*
 139  * Module linkage information for the kernel.
 140  */
 141 
 142 static struct modldrv modldrv = {
 143         &mod_driverops, /* Type of module.  This one is a pseudo driver */
 144         "tty pseudo driver slave 'ptsl'",
 145         &ptsl_ops,  /* driver ops */
 146 };
 147 
 148 static struct modlinkage modlinkage = {
 149         MODREV_1,
 150         { &modldrv, NULL }

 151 };
 152 
 153 int
 154 _init(void)
 155 {
 156         return (mod_install(&modlinkage));
 157 }
 158 
 159 int
 160 _fini(void)
 161 {
 162         return (mod_remove(&modlinkage));
 163 }
 164 
 165 int
 166 _info(struct modinfo *modinfop)
 167 {
 168         return (mod_info(&modlinkage, modinfop));
 169 }
 170