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 2008 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 #include <sys/types.h>
  30 #include <sys/param.h>
  31 #include <sys/sysmacros.h>
  32 #include <sys/systm.h>
  33 #include <sys/debug.h>
  34 #include <sys/kmem.h>
  35 #include <sys/sunddi.h>
  36 #include <sys/byteorder.h>
  37 #include <sys/errno.h>
  38 #include <sys/modctl.h>
  39 #include <sys/u8_textprep.h>
  40 #include <sys/kiconv.h>
  41 #include <sys/kiconv_cck_common.h>
  42 #include <sys/kiconv_ko.h>
  43 #include <sys/kiconv_uhc_utf8.h>
  44 #include <sys/kiconv_utf8_uhc.h>
  45 #include <sys/kiconv_euckr_utf8.h>
  46 #include <sys/kiconv_utf8_euckr.h>
  47 
  48 static int8_t utf8_to_euckr(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,


 594 };
 595 
 596 static kiconv_module_info_t kiconv_ko_info = {
 597         "kiconv_ko",            /* module name */
 598         sizeof (kiconv_ko_ops_tbl) / sizeof (kiconv_ko_ops_tbl[0]),
 599         kiconv_ko_ops_tbl,
 600         0,
 601         NULL,
 602         NULL,
 603         0
 604 };
 605 
 606 static struct modlkiconv modlkiconv_ko = {
 607         &mod_kiconvops,
 608         "kiconv korean module 1.0",
 609         &kiconv_ko_info
 610 };
 611 
 612 static struct modlinkage modlinkage = {
 613         MODREV_1,
 614         (void *)&modlkiconv_ko,
 615         NULL
 616 };
 617 
 618 int
 619 _init(void)
 620 {
 621         int err;
 622 
 623         err = mod_install(&modlinkage);
 624         if (err)
 625                 cmn_err(CE_WARN, "kiconv_ko: failed to load kernel module");
 626 
 627         return (err);
 628 }
 629 
 630 int
 631 _fini(void)
 632 {
 633         int err;
 634 
 635         /*




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


  27 #include <sys/types.h>
  28 #include <sys/param.h>
  29 #include <sys/sysmacros.h>
  30 #include <sys/systm.h>
  31 #include <sys/debug.h>
  32 #include <sys/kmem.h>
  33 #include <sys/sunddi.h>
  34 #include <sys/byteorder.h>
  35 #include <sys/errno.h>
  36 #include <sys/modctl.h>
  37 #include <sys/u8_textprep.h>
  38 #include <sys/kiconv.h>
  39 #include <sys/kiconv_cck_common.h>
  40 #include <sys/kiconv_ko.h>
  41 #include <sys/kiconv_uhc_utf8.h>
  42 #include <sys/kiconv_utf8_uhc.h>
  43 #include <sys/kiconv_euckr_utf8.h>
  44 #include <sys/kiconv_utf8_euckr.h>
  45 
  46 static int8_t utf8_to_euckr(uint32_t utf8, uchar_t **inbuf, uchar_t *ibtail,


 592 };
 593 
 594 static kiconv_module_info_t kiconv_ko_info = {
 595         "kiconv_ko",            /* module name */
 596         sizeof (kiconv_ko_ops_tbl) / sizeof (kiconv_ko_ops_tbl[0]),
 597         kiconv_ko_ops_tbl,
 598         0,
 599         NULL,
 600         NULL,
 601         0
 602 };
 603 
 604 static struct modlkiconv modlkiconv_ko = {
 605         &mod_kiconvops,
 606         "kiconv korean module 1.0",
 607         &kiconv_ko_info
 608 };
 609 
 610 static struct modlinkage modlinkage = {
 611         MODREV_1,
 612         { (void *)&modlkiconv_ko, NULL }

 613 };
 614 
 615 int
 616 _init(void)
 617 {
 618         int err;
 619 
 620         err = mod_install(&modlinkage);
 621         if (err)
 622                 cmn_err(CE_WARN, "kiconv_ko: failed to load kernel module");
 623 
 624         return (err);
 625 }
 626 
 627 int
 628 _fini(void)
 629 {
 630         int err;
 631 
 632         /*