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


   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 /*
  23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 #pragma ident   "%Z%%M% %I%     %E% SMI"
  28 
  29 /*
  30  * Redirection STREAMS module.
  31  *
  32  * This module is intended for use in conjunction with instantiations of the
  33  * redirection driver.  Its purpose in life is to detect when the stream that
  34  * it's pushed on is closed, thereupon calling back into the redirection
  35  * driver so that the driver can cancel redirection to the stream.
  36  * It passes all messages on unchanged, in both directions.
  37  */
  38 
  39 #include <sys/types.h>
  40 #include <sys/param.h>
  41 #include <sys/errno.h>
  42 #include <sys/stream.h>
  43 #include <sys/stropts.h>
  44 #include <sys/debug.h>
  45 #include <sys/strredir.h>
  46 #include <sys/strsubr.h>
  47 #include <sys/strsun.h>
  48 #include <sys/conf.h>


  89 static struct streamtab redirminfo = {
  90         &wcmrinit,
  91         &wcmwinit,
  92         NULL,
  93         NULL
  94 };
  95 
  96 static struct fmodsw fsw = {
  97         "redirmod",
  98         &redirminfo,
  99         D_MP
 100 };
 101 
 102 static struct modlstrmod modlstrmod = {
 103         &mod_strmodops,
 104         "redirection module",
 105         &fsw
 106 };
 107 
 108 static struct modlinkage modlinkage = {
 109         MODREV_1, &modlstrmod, NULL
 110 };
 111 
 112 int
 113 _init()
 114 {
 115         return (mod_install(&modlinkage));
 116 }
 117 
 118 int
 119 _fini()
 120 {
 121         return (EBUSY);
 122 }
 123 
 124 int
 125 _info(struct modinfo *modinfop)
 126 {
 127         return (mod_info(&modlinkage, modinfop));
 128 }
 129 




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


  27 /*
  28  * Redirection STREAMS module.
  29  *
  30  * This module is intended for use in conjunction with instantiations of the
  31  * redirection driver.  Its purpose in life is to detect when the stream that
  32  * it's pushed on is closed, thereupon calling back into the redirection
  33  * driver so that the driver can cancel redirection to the stream.
  34  * It passes all messages on unchanged, in both directions.
  35  */
  36 
  37 #include <sys/types.h>
  38 #include <sys/param.h>
  39 #include <sys/errno.h>
  40 #include <sys/stream.h>
  41 #include <sys/stropts.h>
  42 #include <sys/debug.h>
  43 #include <sys/strredir.h>
  44 #include <sys/strsubr.h>
  45 #include <sys/strsun.h>
  46 #include <sys/conf.h>


  87 static struct streamtab redirminfo = {
  88         &wcmrinit,
  89         &wcmwinit,
  90         NULL,
  91         NULL
  92 };
  93 
  94 static struct fmodsw fsw = {
  95         "redirmod",
  96         &redirminfo,
  97         D_MP
  98 };
  99 
 100 static struct modlstrmod modlstrmod = {
 101         &mod_strmodops,
 102         "redirection module",
 103         &fsw
 104 };
 105 
 106 static struct modlinkage modlinkage = {
 107         MODREV_1, { &modlstrmod, NULL }
 108 };
 109 
 110 int
 111 _init()
 112 {
 113         return (mod_install(&modlinkage));
 114 }
 115 
 116 int
 117 _fini()
 118 {
 119         return (EBUSY);
 120 }
 121 
 122 int
 123 _info(struct modinfo *modinfop)
 124 {
 125         return (mod_info(&modlinkage, modinfop));
 126 }
 127