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


   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  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 #pragma ident   "%Z%%M% %I%     %E% SMI"
  28 
  29 /*
  30  * This module implements the "fast path" processing for the telnet protocol.
  31  * Since it only knows a very small number of the telnet protocol options,
  32  * the daemon is required to assist this module.  This module must be run
  33  * underneath logindmux, which handles switching messages between the
  34  * daemon and the pty master stream appropriately.  When an unknown telnet
  35  * option is received it is handled as a stop-and-wait operation.  The
  36  * module refuses to forward data in either direction, and waits for the
  37  * daemon to deal with the option, and forward any unprocessed data back
  38  * to the daemon.
  39  */
  40 
  41 #include <sys/types.h>
  42 #include <sys/param.h>
  43 #include <sys/stream.h>
  44 #include <sys/stropts.h>
  45 #include <sys/strsun.h>
  46 #include <sys/kmem.h>
  47 #include <sys/errno.h>
  48 #include <sys/ddi.h>


  87  * Per queue instances are single-threaded since the q_ptr
  88  * field of queues need to be shared among threads.
  89  */
  90 static struct fmodsw fsw = {
  91         "telmod",
  92         &telmodinfo,
  93         D_MTQPAIR | D_MP
  94 };
  95 
  96 /*
  97  * Module linkage information for the kernel.
  98  */
  99 
 100 static struct modlstrmod modlstrmod = {
 101         &mod_strmodops,
 102         "telnet 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 (mod_remove(&modlinkage));
 120 }
 121 
 122 int
 123 _info(struct modinfo *modinfop)
 124 {
 125         return (mod_info(&modlinkage, modinfop));
 126 }
 127 




   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  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 /*
  28  * This module implements the "fast path" processing for the telnet protocol.
  29  * Since it only knows a very small number of the telnet protocol options,
  30  * the daemon is required to assist this module.  This module must be run
  31  * underneath logindmux, which handles switching messages between the
  32  * daemon and the pty master stream appropriately.  When an unknown telnet
  33  * option is received it is handled as a stop-and-wait operation.  The
  34  * module refuses to forward data in either direction, and waits for the
  35  * daemon to deal with the option, and forward any unprocessed data back
  36  * to the daemon.
  37  */
  38 
  39 #include <sys/types.h>
  40 #include <sys/param.h>
  41 #include <sys/stream.h>
  42 #include <sys/stropts.h>
  43 #include <sys/strsun.h>
  44 #include <sys/kmem.h>
  45 #include <sys/errno.h>
  46 #include <sys/ddi.h>


  85  * Per queue instances are single-threaded since the q_ptr
  86  * field of queues need to be shared among threads.
  87  */
  88 static struct fmodsw fsw = {
  89         "telmod",
  90         &telmodinfo,
  91         D_MTQPAIR | D_MP
  92 };
  93 
  94 /*
  95  * Module linkage information for the kernel.
  96  */
  97 
  98 static struct modlstrmod modlstrmod = {
  99         &mod_strmodops,
 100         "telnet module",
 101         &fsw
 102 };
 103 
 104 static struct modlinkage modlinkage = {
 105         MODREV_1, { &modlstrmod, NULL }
 106 };
 107 
 108 int
 109 _init()
 110 {
 111         return (mod_install(&modlinkage));
 112 }
 113 
 114 int
 115 _fini()
 116 {
 117         return (mod_remove(&modlinkage));
 118 }
 119 
 120 int
 121 _info(struct modinfo *modinfop)
 122 {
 123         return (mod_info(&modlinkage, modinfop));
 124 }
 125