Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / stdlib / local.h
blob26fd4f05dce9346899873fb88c95d1ec1ef500e4
1 /* Misc. local definitions for libc/stdlib */
3 #ifndef _LOCAL_H_
4 #define _LOCAL_H_
6 char * _gcvt (struct _reent *, double , int , char *, char, int);
8 #include "../locale/setlocale.h"
10 #ifndef __machine_mbstate_t_defined
11 #include <wchar.h>
12 #endif
14 typedef int wctomb_f (struct _reent *, char *, wchar_t, mbstate_t *);
15 typedef wctomb_f *wctomb_p;
17 wctomb_f __ascii_wctomb;
18 #ifdef _MB_CAPABLE
19 wctomb_f __utf8_wctomb;
20 wctomb_f __sjis_wctomb;
21 wctomb_f __eucjp_wctomb;
22 wctomb_f __jis_wctomb;
23 wctomb_p __iso_wctomb (int val);
24 wctomb_p __cp_wctomb (int val);
25 #ifdef __CYGWIN__
26 wctomb_f __gbk_wctomb;
27 wctomb_f __gb18030_wctomb;
28 wctomb_f __kr_wctomb;
29 wctomb_f __big5_wctomb;
30 #endif
31 #endif
33 #define __WCTOMB (__get_current_locale ()->wctomb)
35 typedef int mbtowc_f (struct _reent *, wchar_t *, const char *, size_t,
36 mbstate_t *);
37 typedef mbtowc_f *mbtowc_p;
39 mbtowc_f __ascii_mbtowc;
40 #ifdef _MB_CAPABLE
41 mbtowc_f __utf8_mbtowc;
42 mbtowc_f __sjis_mbtowc;
43 mbtowc_f __eucjp_mbtowc;
44 mbtowc_f __jis_mbtowc;
45 mbtowc_p __iso_mbtowc (int val);
46 mbtowc_p __cp_mbtowc (int val);
47 #ifdef __CYGWIN__
48 mbtowc_f __gbk_mbtowc;
49 mbtowc_f __gb18030_mbtowc;
50 mbtowc_f __kr_mbtowc;
51 mbtowc_f __big5_mbtowc;
52 #endif
53 #endif
55 #define __MBTOWC (__get_current_locale ()->mbtowc)
57 extern wchar_t __iso_8859_conv[14][0x60];
58 int __iso_8859_val_index (int);
59 int __iso_8859_index (const char *);
61 extern wchar_t __cp_conv[][0x80];
62 int __cp_val_index (int);
63 int __cp_index (const char *);
65 #endif