ReactOS  0.4.15-dev-509-g96a357b
nls_sjis.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/errno.h>
Include dependency graph for nls_sjis.c:

Go to the source code of this file.

Functions

static int __init init_nls_sjis (void)
 
static void __exit exit_nls_sjis (void)
 

Variables

static struct nls_tablep_nls
 
static struct nls_table table
 

Function Documentation

◆ exit_nls_sjis()

static void __exit exit_nls_sjis ( void  )
static

Definition at line 37 of file nls_sjis.c.

38 {
41 }
int unregister_nls(struct nls_table *)
Definition: nls_base.c:185
void unload_nls(struct nls_table *)
Definition: nls_base.c:240
static struct nls_table * p_nls
Definition: nls_sjis.c:11

Referenced by RfsdUnloadAllNls().

◆ init_nls_sjis()

static int __init init_nls_sjis ( void  )
static

Definition at line 22 of file nls_sjis.c.

23 {
24  p_nls = load_nls("cp932");
25 
26  if (p_nls) {
27  table.uni2char = p_nls->uni2char;
28  table.char2uni = p_nls->char2uni;
29  table.charset2upper = p_nls->charset2upper;
30  table.charset2lower = p_nls->charset2lower;
31  return register_nls(&table);
32  }
33 
34  return -EINVAL;
35 }
Definition: arc.h:39
static struct nls_table * p_nls
Definition: nls_sjis.c:11
int register_nls(struct nls_table *)
Definition: nls_base.c:162
struct nls_table * load_nls(char *)
Definition: nls_base.c:218

Referenced by RfsdLoadAllNls().

Variable Documentation

◆ p_nls

struct nls_table* p_nls
static

Definition at line 11 of file nls_sjis.c.

Referenced by exit_nls_sjis(), and init_nls_sjis().

◆ table

Initial value:
= {
"sjis",
}
#define THIS_MODULE
Definition: module.h:267
smooth NULL
Definition: ftsmooth.c:416

Definition at line 13 of file nls_sjis.c.