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


  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 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 
  31 #pragma ident   "%Z%%M% %I%     %E% SMI" /* from S5R4 1.4 */
  32 
  33 /*
  34  * Transport Interface Library read/write module - issue 1
  35  */
  36 
  37 #include        <sys/types.h>
  38 #include        <sys/param.h>
  39 #include        <sys/stream.h>
  40 #include        <sys/stropts.h>
  41 #include        <sys/tihdr.h>
  42 #include        <sys/debug.h>
  43 #include        <sys/errno.h>
  44 #include        <sys/kmem.h>
  45 #include        <sys/tirdwr.h>
  46 #include        <sys/conf.h>
  47 #include        <sys/modctl.h>
  48 #include        <sys/ddi.h>
  49 #include        <sys/sunddi.h>
  50 
  51 #define ORDREL          002
  52 #define DISCON          004


 109 };
 110 
 111 static struct streamtab trwinfo = {
 112         &tirdwrrinit,
 113         &tirdwrwinit,
 114         NULL,
 115         NULL
 116 };
 117 
 118 static struct fmodsw fsw = {
 119         "tirdwr",
 120         &trwinfo,
 121         D_NEW|D_MTQPAIR|D_MP
 122 };
 123 
 124 static struct modlstrmod modlstrmod = {
 125         &mod_strmodops, "xport interface rd/wr str mod", &fsw
 126 };
 127 
 128 static struct modlinkage modlinkage = {
 129         MODREV_1, &modlstrmod, NULL
 130 };
 131 
 132 int
 133 _init(void)
 134 {
 135         return (mod_install(&modlinkage));
 136 }
 137 
 138 int
 139 _fini(void)
 140 {
 141         return (mod_remove(&modlinkage));
 142 }
 143 
 144 int
 145 _info(struct modinfo *modinfop)
 146 {
 147         return (mod_info(&modlinkage, modinfop));
 148 }
 149 




  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 2004 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 


  31 /*
  32  * Transport Interface Library read/write module - issue 1
  33  */
  34 
  35 #include        <sys/types.h>
  36 #include        <sys/param.h>
  37 #include        <sys/stream.h>
  38 #include        <sys/stropts.h>
  39 #include        <sys/tihdr.h>
  40 #include        <sys/debug.h>
  41 #include        <sys/errno.h>
  42 #include        <sys/kmem.h>
  43 #include        <sys/tirdwr.h>
  44 #include        <sys/conf.h>
  45 #include        <sys/modctl.h>
  46 #include        <sys/ddi.h>
  47 #include        <sys/sunddi.h>
  48 
  49 #define ORDREL          002
  50 #define DISCON          004


 107 };
 108 
 109 static struct streamtab trwinfo = {
 110         &tirdwrrinit,
 111         &tirdwrwinit,
 112         NULL,
 113         NULL
 114 };
 115 
 116 static struct fmodsw fsw = {
 117         "tirdwr",
 118         &trwinfo,
 119         D_NEW|D_MTQPAIR|D_MP
 120 };
 121 
 122 static struct modlstrmod modlstrmod = {
 123         &mod_strmodops, "xport interface rd/wr str mod", &fsw
 124 };
 125 
 126 static struct modlinkage modlinkage = {
 127         MODREV_1, { &modlstrmod, NULL }
 128 };
 129 
 130 int
 131 _init(void)
 132 {
 133         return (mod_install(&modlinkage));
 134 }
 135 
 136 int
 137 _fini(void)
 138 {
 139         return (mod_remove(&modlinkage));
 140 }
 141 
 142 int
 143 _info(struct modinfo *modinfop)
 144 {
 145         return (mod_info(&modlinkage, modinfop));
 146 }
 147