linux/fs/nls/nls_euc-jp.c

/*
 * linux/fs/nls/nls_euc-jp.c
 *
 * Added `OSF/JVC Recommended Code Set Conversion Specification
 * between Japanese EUC and Shift-JIS' support: <[email protected]>
 * (http://www.opengroup.or.jp/jvc/cde/sjis-euc-e.html)
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/errno.h>

static struct nls_table *p_nls;

#define IS_SJIS_LOW_BYTE(l)
/* JIS X 0208 (include NEC spesial characters) */
#define IS_SJIS_JISX0208(h, l)
#define IS_SJIS_JISX0201KANA(c)
#define IS_SJIS_UDC_LOW(h, l)
#define IS_SJIS_UDC_HI(h, l)
#define IS_SJIS_IBM(h, l)
#define IS_SJIS_NECIBM(h, l)
#define MAP_SJIS2EUC(sjis_hi, sjis_lo, sjis_p, euc_hi, euc_lo, euc_p)

#define SS2
#define SS3
#define IS_EUC_BYTE(c)
#define IS_EUC_JISX0208(h, l)
#define IS_EUC_JISX0201KANA(h, l)
#define IS_EUC_UDC_LOW(h, l)
#define IS_EUC_UDC_HI(h, l)
#define MAP_EUC2SJIS(euc_hi, euc_lo, euc_p, sjis_hi, sjis_lo, sjis_p)

/* SJIS IBM extended characters to EUC map */
static const unsigned char sjisibm2euc_map[][2] =;

#define IS_EUC_IBM2JISX0208(h, l)

/* EUC to SJIS IBM extended characters map (G3 JIS X 0212 block) */
static struct {} euc2sjisibm_jisx0212_map[] =;

/* EUC to SJIS IBM extended characters map (G3 Upper block) */
static const unsigned char euc2sjisibm_g3upper_map[][2] =;

static inline int sjisibm2euc(unsigned char *euc, const unsigned char sjis_hi,
			      const unsigned char sjis_lo);
static inline int euc2sjisibm_jisx0212(unsigned char *sjis, const unsigned char euc_hi,
				       const unsigned char euc_lo);
static inline int euc2sjisibm_g3upper(unsigned char *sjis, const unsigned char euc_hi,
				      const unsigned char euc_lo);
static inline int euc2sjisibm(unsigned char *sjis, const unsigned char euc_hi,
			      const unsigned char euc_lo);
static inline int sjisnec2sjisibm(unsigned char *sjisibm,
				  const unsigned char sjisnec_hi,
				  const unsigned char sjisnec_lo);

/* SJIS IBM extended characters to EUC */
static inline int sjisibm2euc(unsigned char *euc, const unsigned char sjis_hi,
			      const unsigned char sjis_lo)
{}

/* EUC to SJIS IBM extended characters (G3 JIS X 0212 block) */
static inline int euc2sjisibm_jisx0212(unsigned char *sjis, const unsigned char euc_hi,
				       const unsigned char euc_lo)
{}

/* EUC to SJIS IBM extended characters (G3 Upper block) */
static inline int euc2sjisibm_g3upper(unsigned char *sjis, const unsigned char euc_hi,
				      const unsigned char euc_lo)
{}

/* EUC to SJIS IBM extended characters (G3 block) */
static inline int euc2sjisibm(unsigned char *sjis, const unsigned char euc_hi,
			      const unsigned char euc_lo)
{}

/* NEC/IBM extended characters to IBM extended characters */
static inline int sjisnec2sjisibm(unsigned char *sjisibm,
				  const unsigned char sjisnec_hi,
				  const unsigned char sjisnec_lo)
{}

static int uni2char(const wchar_t uni,
		    unsigned char *out, int boundlen)
{}

static int char2uni(const unsigned char *rawstring, int boundlen,
		    wchar_t *uni)
{}

static struct nls_table table =;

static int __init init_nls_euc_jp(void)
{}

static void __exit exit_nls_euc_jp(void)
{}

module_init()
module_exit()

MODULE_DESCRIPTION();
MODULE_LICENSE();