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 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  23 /*        All Rights Reserved   */
  24 
  25 
  26 /*
  27  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28  * Use is subject to license terms.
  29  */
  30 
  31 #pragma ident   "%Z%%M% %I%     %E% SMI" /* from S5R4 1.13 */
  32 
  33 /*
  34  * Description:
  35  *
  36  * The PTEM streams module is used as a pseudo driver emulator.  Its purpose
  37  * is to emulate the ioctl() functions of a terminal device driver.
  38  */
  39 
  40 #include <sys/types.h>
  41 #include <sys/param.h>
  42 #include <sys/stream.h>
  43 #include <sys/stropts.h>
  44 #include <sys/strsun.h>
  45 #include <sys/termio.h>
  46 #include <sys/pcb.h>
  47 #include <sys/signal.h>
  48 #include <sys/cred.h>
  49 #include <sys/strtty.h>
  50 #include <sys/errno.h>
  51 #include <sys/cmn_err.h>
  52 #include <sys/jioctl.h>


  55 #include <sys/debug.h>
  56 #include <sys/kmem.h>
  57 #include <sys/ddi.h>
  58 #include <sys/sunddi.h>
  59 #include <sys/conf.h>
  60 #include <sys/modctl.h>
  61 
  62 extern struct streamtab pteminfo;
  63 
  64 static struct fmodsw fsw = {
  65         "ptem",
  66         &pteminfo,
  67         D_MTQPAIR | D_MP
  68 };
  69 
  70 static struct modlstrmod modlstrmod = {
  71         &mod_strmodops, "pty hardware emulator", &fsw
  72 };
  73 
  74 static struct modlinkage modlinkage = {
  75         MODREV_1, &modlstrmod, NULL
  76 };
  77 
  78 int
  79 _init()
  80 {
  81         return (mod_install(&modlinkage));
  82 }
  83 
  84 int
  85 _fini()
  86 {
  87         return (mod_remove(&modlinkage));
  88 }
  89 
  90 int
  91 _info(struct modinfo *modinfop)
  92 {
  93         return (mod_info(&modlinkage, modinfop));
  94 }
  95 




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


  31 /*
  32  * Description:
  33  *
  34  * The PTEM streams module is used as a pseudo driver emulator.  Its purpose
  35  * is to emulate the ioctl() functions of a terminal device driver.
  36  */
  37 
  38 #include <sys/types.h>
  39 #include <sys/param.h>
  40 #include <sys/stream.h>
  41 #include <sys/stropts.h>
  42 #include <sys/strsun.h>
  43 #include <sys/termio.h>
  44 #include <sys/pcb.h>
  45 #include <sys/signal.h>
  46 #include <sys/cred.h>
  47 #include <sys/strtty.h>
  48 #include <sys/errno.h>
  49 #include <sys/cmn_err.h>
  50 #include <sys/jioctl.h>


  53 #include <sys/debug.h>
  54 #include <sys/kmem.h>
  55 #include <sys/ddi.h>
  56 #include <sys/sunddi.h>
  57 #include <sys/conf.h>
  58 #include <sys/modctl.h>
  59 
  60 extern struct streamtab pteminfo;
  61 
  62 static struct fmodsw fsw = {
  63         "ptem",
  64         &pteminfo,
  65         D_MTQPAIR | D_MP
  66 };
  67 
  68 static struct modlstrmod modlstrmod = {
  69         &mod_strmodops, "pty hardware emulator", &fsw
  70 };
  71 
  72 static struct modlinkage modlinkage = {
  73         MODREV_1, { &modlstrmod, NULL }
  74 };
  75 
  76 int
  77 _init()
  78 {
  79         return (mod_install(&modlinkage));
  80 }
  81 
  82 int
  83 _fini()
  84 {
  85         return (mod_remove(&modlinkage));
  86 }
  87 
  88 int
  89 _info(struct modinfo *modinfop)
  90 {
  91         return (mod_info(&modlinkage, modinfop));
  92 }
  93