ReactOS  0.4.14-dev-77-gd9e7c48
nls.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: GNU GENERAL PUBLIC LICENSE VERSION 2
3  * PROJECT: ReiserFs file system driver for Windows NT/2000/XP/Vista.
4  * FILE: nls.c
5  * PURPOSE:
6  * PROGRAMMER: Mark Piper, Matt Wu, Bo BrantÚn.
7  * HOMEPAGE:
8  * UPDATE HISTORY:
9  */
10 
11 /* INCLUDES *****************************************************************/
12 
13 #include "rfsd.h"
14 
15 /* GOBALS** ****************************************************************/
16 
17 extern struct nls_table *tables;
18 extern spinlock_t nls_lock;
19 
20 /* DECLARES ****************************************************************/
21 
22 #undef FULL_CODEPAGES_SUPPORT
23 
24 #ifdef FULL_CODEPAGES_SUPPORT
25 
112 
113 #endif //FULL_CODEPAGES_SUPPORT
114 
117 
118 
119 /* FUNCTIONS ****************************************************************/
120 
121 
122 int
124 {
125  int rc;
126 
127  tables = NULL;
129 
130  //
131  // Loading nls for utf8 ...
132  //
133 
135 
136 #ifdef FULL_CODEPAGES_SUPPORT
137 
138  //
139  // Loading nls for chinese gb2312 ...
140  //
141 
144 
145 
164 
165  //
166  // Loading nls for chinese big5
167  //
168 
171 
172  //
173  // Loading jp codepage
174  //
175 
179 
180  //
181  // Loading korean nls codepage
182  //
183 
186 
201 
204 
205 #endif //FULL_CODEPAGES_SUPPORT
206 
207 
208  KdPrint(("RfsdLoadAllNls: succeed to load all codepages ...\n"));
209 
210 errorout:
211 
212  return rc;
213 }
214 
215 
216 VOID
218 {
219 #ifdef FULL_CODEPAGES_SUPPORT
220 
262 
263  //
264  // Unloading nls of chinese ...
265  //
266 
269 
270 #endif //FULL_CODEPAGES_SUPPORT
271 
272  //
273  // Unloading nls of utf8 ...
274  //
275 
277 }
static void __exit exit_nls_cp860(void)
Definition: nls_cp860.c:358
static void __exit exit_nls_cp874(void)
Definition: nls_cp874.c:267
static int __init init_nls_cp861(void)
Definition: nls_cp861.c:376
DECLARE_EXIT(exit_nls_ascii)
static void __exit exit_nls_koi8_u(void)
Definition: nls_koi8-u.c:324
static void __exit exit_nls_euc_kr(void)
Definition: nls_euc-kr.c:37
static void __exit exit_nls_big5(void)
Definition: nls_big5.c:37
static int __init init_nls_sjis(void)
Definition: nls_sjis.c:22
static void __exit exit_nls_cp861(void)
Definition: nls_cp861.c:381
static int __init init_nls_cp866(void)
Definition: nls_cp866.c:294
static void __exit exit_nls_sjis(void)
Definition: nls_sjis.c:37
static void __exit exit_nls_cp850(void)
Definition: nls_cp850.c:309
static void __exit exit_nls_iso8859_5(void)
static void __exit exit_nls_cp869(void)
Definition: nls_cp869.c:309
static int __init init_nls_euc_jp(void)
Definition: nls_euc-jp.c:565
static int __init init_nls_cp1255(void)
Definition: nls_cp1255.c:371
static void __exit exit_nls_iso8859_13(void)
static int __init init_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:63
static void __exit exit_nls_iso8859_4(void)
static void __exit exit_nls_cp862(void)
Definition: nls_cp862.c:415
static int __init init_nls_iso8859_8(void)
Definition: nls_iso8859-8.c:22
static void __exit exit_nls_cp865(void)
Definition: nls_cp865.c:381
static int __init init_nls_cp737(void)
Definition: nls_cp737.c:339
static int __init init_nls_iso8859_5(void)
static int __init init_nls_cp869(void)
Definition: nls_cp869.c:304
static void __exit exit_nls_cp863(void)
Definition: nls_cp863.c:375
static void __exit exit_nls_iso8859_6(void)
static int __init init_nls_iso8859_1(void)
static int __init init_nls_cp860(void)
Definition: nls_cp860.c:353
VOID RfsdUnloadAllNls()
Definition: nls.c:217
static void __exit exit_nls_iso8859_1(void)
static void __exit exit_nls_cp936(void)
Definition: nls_cp936.c:11022
static int __init init_nls_cp857(void)
Definition: nls_cp857.c:290
static void __exit exit_nls_cp864(void)
Definition: nls_cp864.c:401
static void __exit exit_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:76
static void __exit exit_nls_cp1251(void)
Definition: nls_cp1251.c:295
static void __exit exit_nls_cp1255(void)
Definition: nls_cp1255.c:376
static void __exit exit_nls_iso8859_7(void)
static void __exit exit_nls_cp949(void)
Definition: nls_cp949.c:13939
static int __init init_nls_cp863(void)
Definition: nls_cp863.c:370
static void __exit exit_nls_cp737(void)
Definition: nls_cp737.c:344
smooth NULL
Definition: ftsmooth.c:416
static int __init init_nls_iso8859_4(void)
static void __exit exit_nls_gb2312(void)
Definition: nls_gb2312.c:37
static int __init init_nls_cp862(void)
Definition: nls_cp862.c:410
static void __exit exit_nls_iso8859_14(void)
static int __init init_nls_iso8859_9(void)
static int __init init_nls_cp874(void)
Definition: nls_cp874.c:262
static void __exit exit_nls_cp950(void)
Definition: nls_cp950.c:9478
static int __init init_nls_iso8859_14(void)
static int __init init_nls_cp864(void)
Definition: nls_cp864.c:396
static void __exit exit_nls_iso8859_9(void)
static int __init init_nls_iso8859_7(void)
spinlock_t nls_lock
Definition: nls_base.c:23
#define LOAD_NLS
Definition: module.h:290
static int __init init_nls_cp936(void)
Definition: nls_cp936.c:11017
static int __init init_nls_cp850(void)
Definition: nls_cp850.c:304
int RfsdLoadAllNls()
Definition: nls.c:123
static int __init init_nls_koi8_r(void)
Definition: nls_koi8-r.c:312
static int __init init_nls_cp865(void)
Definition: nls_cp865.c:376
static int __init init_nls_cp949(void)
Definition: nls_cp949.c:13934
static int __init init_nls_cp775(void)
Definition: nls_cp775.c:308
static int __init init_nls_utf8(void)
Definition: nls_utf8.c:46
static int __init init_nls_cp437(void)
Definition: nls_cp437.c:376
static void __exit exit_nls_cp932(void)
Definition: nls_cp932.c:7937
#define UNLOAD_NLS
Definition: module.h:291
static void __exit exit_nls_koi8_r(void)
Definition: nls_koi8-r.c:317
static void __exit exit_nls_iso8859_8(void)
Definition: nls_iso8859-8.c:37
static void __exit exit_nls_cp857(void)
Definition: nls_cp857.c:295
static int __init init_nls_tis_620(void)
Definition: nls_tis-620.c:22
static void __exit exit_nls_cp775(void)
Definition: nls_cp775.c:313
static int __init init_nls_iso8859_2(void)
static int __init init_nls_cp855(void)
Definition: nls_cp855.c:288
static int __init init_nls_euc_kr(void)
Definition: nls_euc-kr.c:22
DECLARE_INIT(init_nls_ascii)
static int __init init_nls_big5(void)
Definition: nls_big5.c:22
static int __init init_nls_cp950(void)
Definition: nls_cp950.c:9473
#define spin_lock_init(sl)
Definition: module.h:303
static void __exit exit_nls_iso8859_15(void)
static void __exit exit_nls_cp852(void)
Definition: nls_cp852.c:331
static void __exit exit_nls_cp866(void)
Definition: nls_cp866.c:299
static void __exit exit_nls_cp437(void)
Definition: nls_cp437.c:381
static void __exit exit_nls_tis_620(void)
Definition: nls_tis-620.c:37
static void __exit exit_nls_iso8859_2(void)
static int __init init_nls_iso8859_13(void)
static int __init init_nls_cp852(void)
Definition: nls_cp852.c:326
static void __exit exit_nls_cp855(void)
Definition: nls_cp855.c:293
struct nls_table * tables
Definition: nls_base.c:22
static void __exit exit_nls_utf8(void)
Definition: nls_utf8.c:55
static int __init init_nls_cp932(void)
Definition: nls_cp932.c:7932
static int __init init_nls_iso8859_3(void)
#define KdPrint(x)
Definition: env_spec_w32.h:288
static int __init init_nls_cp1251(void)
Definition: nls_cp1251.c:290
static int __init init_nls_gb2312(void)
Definition: nls_gb2312.c:22
static int __init init_nls_iso8859_15(void)
static void __exit exit_nls_euc_jp(void)
Definition: nls_euc-jp.c:578
static int __init init_nls_iso8859_6(void)
static void __exit exit_nls_iso8859_3(void)
static int __init init_nls_koi8_u(void)
Definition: nls_koi8-u.c:319