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 (c) 1997, by Sun Microsystems, Inc.
  24  * All rights reserved.
  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"
  32 
  33 /*
  34  * This module switches the read and write flush bits for each
  35  * M_FLUSH control message it receives. It's intended usage is to
  36  * properly flush a STREAMS-based pipe.
  37  */
  38 #include <sys/types.h>
  39 #include <sys/param.h>
  40 #include <sys/errno.h>
  41 #include <sys/stream.h>
  42 #include <sys/stropts.h>
  43 
  44 #include <sys/conf.h>
  45 #include <sys/modctl.h>
  46 
  47 /*ARGSUSED*/
  48 static int
  49 pipeopen(queue_t *rqp, dev_t *devp, int flag, int sflag, cred_t *crp)
  50 {
  51         qprocson(rqp);
  52         return (0);


  97         pipeput, NULL, pipeopen, pipeclose, NULL, &pipe_info, NULL
  98 };
  99 
 100 static struct qinit pipewinit = {
 101         pipeput, NULL, NULL, NULL, NULL, &pipe_info, NULL
 102 };
 103 
 104 static struct streamtab pipeinfo = { &piperinit, &pipewinit, NULL, NULL };
 105 
 106 static struct fmodsw fsw = {
 107         "pipemod",
 108         &pipeinfo,
 109         D_NEW | D_MP
 110 };
 111 
 112 static struct modlstrmod modlstrmod = {
 113         &mod_strmodops, "pipe flushing module", &fsw
 114 };
 115 
 116 static struct modlinkage modlinkage = {
 117         MODREV_1, &modlstrmod, NULL
 118 };
 119 
 120 int
 121 _init(void)
 122 {
 123         return (mod_install(&modlinkage));
 124 }
 125 
 126 int
 127 _fini(void)
 128 {
 129         return (mod_remove(&modlinkage));
 130 }
 131 
 132 int
 133 _info(struct modinfo *modinfop)
 134 {
 135         return (mod_info(&modlinkage, modinfop));
 136 }


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


  31 /*
  32  * This module switches the read and write flush bits for each
  33  * M_FLUSH control message it receives. It's intended usage is to
  34  * properly flush a STREAMS-based pipe.
  35  */
  36 #include <sys/types.h>
  37 #include <sys/param.h>
  38 #include <sys/errno.h>
  39 #include <sys/stream.h>
  40 #include <sys/stropts.h>
  41 
  42 #include <sys/conf.h>
  43 #include <sys/modctl.h>
  44 
  45 /*ARGSUSED*/
  46 static int
  47 pipeopen(queue_t *rqp, dev_t *devp, int flag, int sflag, cred_t *crp)
  48 {
  49         qprocson(rqp);
  50         return (0);


  95         pipeput, NULL, pipeopen, pipeclose, NULL, &pipe_info, NULL
  96 };
  97 
  98 static struct qinit pipewinit = {
  99         pipeput, NULL, NULL, NULL, NULL, &pipe_info, NULL
 100 };
 101 
 102 static struct streamtab pipeinfo = { &piperinit, &pipewinit, NULL, NULL };
 103 
 104 static struct fmodsw fsw = {
 105         "pipemod",
 106         &pipeinfo,
 107         D_NEW | D_MP
 108 };
 109 
 110 static struct modlstrmod modlstrmod = {
 111         &mod_strmodops, "pipe flushing module", &fsw
 112 };
 113 
 114 static struct modlinkage modlinkage = {
 115         MODREV_1, { &modlstrmod, NULL }
 116 };
 117 
 118 int
 119 _init(void)
 120 {
 121         return (mod_install(&modlinkage));
 122 }
 123 
 124 int
 125 _fini(void)
 126 {
 127         return (mod_remove(&modlinkage));
 128 }
 129 
 130 int
 131 _info(struct modinfo *modinfop)
 132 {
 133         return (mod_info(&modlinkage, modinfop));
 134 }