ZTWHHH commited on
Commit
fc91621
·
verified ·
1 Parent(s): e5118d3

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. llava_next/include/default.h +27 -0
  2. llava_next/include/ks_names.h +1712 -0
  3. llava_next/include/tclThread.h +36 -0
  4. llava_next/include/tdbc.h +80 -0
  5. llava_next/include/term_entry.h +239 -0
  6. llava_next/include/tkMacOSXKeysyms.h +1308 -0
  7. llava_next/include/unctrl.h +68 -0
  8. llava_next/share/doc/readline/CHANGES +1941 -0
  9. llava_next/share/doc/readline/INSTALL +310 -0
  10. llava_next/share/doc/readline/README +196 -0
  11. llava_next/share/doc/xz/AUTHORS +58 -0
  12. llava_next/share/doc/xz/COPYING +83 -0
  13. llava_next/share/doc/xz/COPYING.0BSD +11 -0
  14. llava_next/share/doc/xz/COPYING.GPLv2 +339 -0
  15. llava_next/share/doc/xz/NEWS +0 -0
  16. llava_next/share/doc/xz/README +310 -0
  17. llava_next/share/doc/xz/THANKS +207 -0
  18. llava_next/share/doc/xz/examples/00_README.txt +31 -0
  19. llava_next/share/doc/xz/examples/01_compress_easy.c +296 -0
  20. llava_next/share/doc/xz/examples/02_decompress.c +286 -0
  21. llava_next/share/doc/xz/examples/03_compress_custom.c +192 -0
  22. llava_next/share/doc/xz/examples/04_compress_easy_mt.c +205 -0
  23. llava_next/share/doc/xz/examples/11_file_info.c +205 -0
  24. llava_next/share/doc/xz/examples/Makefile +21 -0
  25. llava_next/share/doc/xz/faq.txt +244 -0
  26. llava_next/share/doc/xz/history.txt +150 -0
  27. llava_next/share/doc/xz/lzma-file-format.txt +173 -0
  28. llava_next/share/doc/xz/xz-file-format.txt +1174 -0
  29. llava_next/share/info/libffi.info +1060 -0
  30. llava_next/share/info/libquadmath.info +816 -0
  31. llava_next/share/info/readline.info +0 -0
  32. llava_next/share/info/rluserman.info +2087 -0
  33. llava_next/share/locale/ca/LC_MESSAGES/xz.mo +0 -0
  34. llava_next/share/locale/cs/LC_MESSAGES/xz.mo +0 -0
  35. llava_next/share/locale/da/LC_MESSAGES/xz.mo +0 -0
  36. llava_next/share/locale/eo/LC_MESSAGES/xz.mo +0 -0
  37. llava_next/share/locale/es/LC_MESSAGES/xz.mo +0 -0
  38. llava_next/share/locale/fr/LC_MESSAGES/xz.mo +0 -0
  39. llava_next/share/locale/hu/LC_MESSAGES/xz.mo +0 -0
  40. llava_next/share/locale/pl/LC_MESSAGES/xz.mo +0 -0
  41. llava_next/share/locale/pt/LC_MESSAGES/xz.mo +0 -0
  42. llava_next/share/locale/sr/LC_MESSAGES/xz.mo +0 -0
  43. llava_next/share/locale/sv/LC_MESSAGES/xz.mo +0 -0
  44. llava_next/share/locale/tr/LC_MESSAGES/xz.mo +0 -0
  45. llava_next/share/locale/uk/LC_MESSAGES/xz.mo +0 -0
  46. llava_next/share/locale/vi/LC_MESSAGES/xz.mo +0 -0
  47. parrot/lib/python3.10/site-packages/torch/ao/__pycache__/__init__.cpython-310.pyc +0 -0
  48. parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/__init__.cpython-310.pyc +0 -0
  49. parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/graph_matcher.cpython-310.pyc +0 -0
  50. parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/n_shadows_utils.cpython-310.pyc +0 -0
llava_next/include/default.h ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * default.h --
3
+ *
4
+ * This file defines the defaults for all options for all of
5
+ * the Tk widgets.
6
+ *
7
+ * Copyright (c) 1991-1994 The Regents of the University of California.
8
+ * Copyright (c) 1994 Sun Microsystems, Inc.
9
+ *
10
+ * See the file "license.terms" for information on usage and redistribution
11
+ * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12
+ */
13
+
14
+ #ifndef _DEFAULT
15
+ #define _DEFAULT
16
+
17
+ #ifdef _WIN32
18
+ # include "tkWinDefault.h"
19
+ #else
20
+ # if defined(MAC_OSX_TK)
21
+ # include "tkMacOSXDefault.h"
22
+ # else
23
+ # include "tkUnixDefault.h"
24
+ # endif
25
+ #endif
26
+
27
+ #endif /* _DEFAULT */
llava_next/include/ks_names.h ADDED
@@ -0,0 +1,1712 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * This file should be maintained in sync with xlib/X11/keysymdefs.h
3
+ *
4
+ * Note that this should be done manually only, because in some cases
5
+ * keysymdefs.h defines the same integer for multiple keysyms, e.g.:
6
+ *
7
+ * #define XK_Greek_LAMDA 0x7CB
8
+ * #define XK_Greek_LAMBDA 0x7CB
9
+ *
10
+ * #define XK_Cyrillic_DZHE 0x6BF
11
+ * #define XK_Serbian_DZE 0x6BF (deprecated)
12
+ *
13
+ */
14
+ { "BackSpace", 0xFF08 },
15
+ { "Tab", 0xFF09 },
16
+ { "Linefeed", 0xFF0A },
17
+ { "Clear", 0xFF0B },
18
+ { "Return", 0xFF0D },
19
+ { "Pause", 0xFF13 },
20
+ { "Scroll_Lock", 0xFF14 },
21
+ { "Sys_Req", 0xFF15 },
22
+ { "Escape", 0xFF1B },
23
+ { "Multi_key", 0xFF20 },
24
+ { "Kanji", 0xFF21 },
25
+ { "Muhenkan", 0xFF22 },
26
+ { "Henkan_Mode", 0xFF23 },
27
+ { "Henkan", 0xFF23 },
28
+ { "Romaji", 0xFF24 },
29
+ { "Hiragana", 0xFF25 },
30
+ { "Katakana", 0xFF26 },
31
+ { "Hiragana_Katakana", 0xFF27 },
32
+ { "Zenkaku", 0xFF28 },
33
+ { "Hankaku", 0xFF29 },
34
+ { "Zenkaku_Hankaku", 0xFF2A },
35
+ { "Touroku", 0xFF2B },
36
+ { "Massyo", 0xFF2C },
37
+ { "Kana_Lock", 0xFF2D },
38
+ { "Kana_Shift", 0xFF2E },
39
+ { "Eisu_Shift", 0xFF2F },
40
+ { "Eisu_toggle", 0xFF30 },
41
+ { "Hangul", 0xFF31 },
42
+ { "Hangul_Start", 0xFF32 },
43
+ { "Hangul_End", 0xFF33 },
44
+ { "Hangul_Hanja", 0xFF34 },
45
+ { "Hangul_Jamo", 0xFF35 },
46
+ { "Hangul_Romaja", 0xFF36 },
47
+ { "Codeinput", 0xFF37 },
48
+ { "Hangul_Jeonja", 0xFF38 },
49
+ { "Hangul_Banja", 0xFF39 },
50
+ { "Hangul_PreHanja", 0xFF3A },
51
+ { "Hangul_PostHanja", 0xFF3B },
52
+ { "SingleCandidate", 0xFF3C },
53
+ { "MultipleCandidate", 0xFF3D },
54
+ { "PreviousCandidate", 0xFF3E },
55
+ { "Hangul_Special", 0xFF3F },
56
+ { "Home", 0xFF50 },
57
+ { "Left", 0xFF51 },
58
+ { "Up", 0xFF52 },
59
+ { "Right", 0xFF53 },
60
+ { "Down", 0xFF54 },
61
+ { "Prior", 0xFF55 },
62
+ { "Page_Up", 0xFF55 },
63
+ { "Next", 0xFF56 },
64
+ { "Page_Down", 0xFF56 },
65
+ { "End", 0xFF57 },
66
+ { "Begin", 0xFF58 },
67
+ { "Win_L", 0xFF5B },
68
+ { "Win_R", 0xFF5C },
69
+ { "App", 0xFF5D },
70
+ { "Select", 0xFF60 },
71
+ { "Print", 0xFF61 },
72
+ { "Execute", 0xFF62 },
73
+ { "Insert", 0xFF63 },
74
+ { "Undo", 0xFF65 },
75
+ { "Redo", 0xFF66 },
76
+ { "Menu", 0xFF67 },
77
+ { "Find", 0xFF68 },
78
+ { "Cancel", 0xFF69 },
79
+ { "Help", 0xFF6A },
80
+ { "Break", 0xFF6B },
81
+ { "Mode_switch", 0xFF7E },
82
+ { "script_switch", 0xFF7E },
83
+ { "kana_switch", 0xFF7E },
84
+ { "Arabic_switch", 0xFF7E },
85
+ { "Greek_switch", 0xFF7E },
86
+ { "Hebrew_switch", 0xFF7E },
87
+ { "Num_Lock", 0xFF7F },
88
+ { "KP_Space", 0xFF80 },
89
+ { "KP_Tab", 0xFF89 },
90
+ { "KP_Enter", 0xFF8D },
91
+ { "KP_F1", 0xFF91 },
92
+ { "KP_F2", 0xFF92 },
93
+ { "KP_F3", 0xFF93 },
94
+ { "KP_F4", 0xFF94 },
95
+ { "KP_Home", 0xFF95 },
96
+ { "KP_Left", 0xFF96 },
97
+ { "KP_Up", 0xFF97 },
98
+ { "KP_Right", 0xFF98 },
99
+ { "KP_Down", 0xFF99 },
100
+ { "KP_Prior", 0xFF9A },
101
+ { "KP_Page_Up", 0xFF9A },
102
+ { "KP_Next", 0xFF9B },
103
+ { "KP_Page_Down", 0xFF9B },
104
+ { "KP_End", 0xFF9C },
105
+ { "KP_Begin", 0xFF9D },
106
+ { "KP_Insert", 0xFF9E },
107
+ { "KP_Delete", 0xFF9F },
108
+ { "KP_Multiply", 0xFFAA },
109
+ { "KP_Add", 0xFFAB },
110
+ { "KP_Separator", 0xFFAC },
111
+ { "KP_Subtract", 0xFFAD },
112
+ { "KP_Decimal", 0xFFAE },
113
+ { "KP_Divide", 0xFFAF },
114
+ { "KP_0", 0xFFB0 },
115
+ { "KP_1", 0xFFB1 },
116
+ { "KP_2", 0xFFB2 },
117
+ { "KP_3", 0xFFB3 },
118
+ { "KP_4", 0xFFB4 },
119
+ { "KP_5", 0xFFB5 },
120
+ { "KP_6", 0xFFB6 },
121
+ { "KP_7", 0xFFB7 },
122
+ { "KP_8", 0xFFB8 },
123
+ { "KP_9", 0xFFB9 },
124
+ { "KP_Equal", 0xFFBD },
125
+ { "F1", 0xFFBE },
126
+ { "F2", 0xFFBF },
127
+ { "F3", 0xFFC0 },
128
+ { "F4", 0xFFC1 },
129
+ { "F5", 0xFFC2 },
130
+ { "F6", 0xFFC3 },
131
+ { "F7", 0xFFC4 },
132
+ { "F8", 0xFFC5 },
133
+ { "F9", 0xFFC6 },
134
+ { "F10", 0xFFC7 },
135
+ { "F11", 0xFFC8 },
136
+ { "L1", 0xFFC8 },
137
+ { "F12", 0xFFC9 },
138
+ { "L2", 0xFFC9 },
139
+ { "F13", 0xFFCA },
140
+ { "L3", 0xFFCA },
141
+ { "F14", 0xFFCB },
142
+ { "L4", 0xFFCB },
143
+ { "F15", 0xFFCC },
144
+ { "L5", 0xFFCC },
145
+ { "F16", 0xFFCD },
146
+ { "L6", 0xFFCD },
147
+ { "F17", 0xFFCE },
148
+ { "L7", 0xFFCE },
149
+ { "F18", 0xFFCF },
150
+ { "L8", 0xFFCF },
151
+ { "F19", 0xFFD0 },
152
+ { "L9", 0xFFD0 },
153
+ { "F20", 0xFFD1 },
154
+ { "L10", 0xFFD1 },
155
+ { "F21", 0xFFD2 },
156
+ { "R1", 0xFFD2 },
157
+ { "F22", 0xFFD3 },
158
+ { "R2", 0xFFD3 },
159
+ { "F23", 0xFFD4 },
160
+ { "R3", 0xFFD4 },
161
+ { "F24", 0xFFD5 },
162
+ { "R4", 0xFFD5 },
163
+ { "F25", 0xFFD6 },
164
+ { "R5", 0xFFD6 },
165
+ { "F26", 0xFFD7 },
166
+ { "R6", 0xFFD7 },
167
+ { "F27", 0xFFD8 },
168
+ { "R7", 0xFFD8 },
169
+ { "F28", 0xFFD9 },
170
+ { "R8", 0xFFD9 },
171
+ { "F29", 0xFFDA },
172
+ { "R9", 0xFFDA },
173
+ { "F30", 0xFFDB },
174
+ { "R10", 0xFFDB },
175
+ { "F31", 0xFFDC },
176
+ { "R11", 0xFFDC },
177
+ { "F32", 0xFFDD },
178
+ { "R12", 0xFFDD },
179
+ { "F33", 0xFFDE },
180
+ { "R13", 0xFFDE },
181
+ { "F34", 0xFFDF },
182
+ { "R14", 0xFFDF },
183
+ { "F35", 0xFFE0 },
184
+ { "R15", 0xFFE0 },
185
+ { "Shift_L", 0xFFE1 },
186
+ { "Shift_R", 0xFFE2 },
187
+ { "Control_L", 0xFFE3 },
188
+ { "Control_R", 0xFFE4 },
189
+ { "Caps_Lock", 0xFFE5 },
190
+ { "Shift_Lock", 0xFFE6 },
191
+ { "Meta_L", 0xFFE7 },
192
+ { "Meta_R", 0xFFE8 },
193
+ { "Alt_L", 0xFFE9 },
194
+ { "Alt_R", 0xFFEA },
195
+ { "Super_L", 0xFFEB },
196
+ { "Super_R", 0xFFEC },
197
+ { "Hyper_L", 0xFFED },
198
+ { "Hyper_R", 0xFFEE },
199
+ { "braille_dot_1", 0xFFF1 },
200
+ { "braille_dot_2", 0xFFF2 },
201
+ { "braille_dot_3", 0xFFF3 },
202
+ { "braille_dot_4", 0xFFF4 },
203
+ { "braille_dot_5", 0xFFF5 },
204
+ { "braille_dot_6", 0xFFF6 },
205
+ { "braille_dot_7", 0xFFF7 },
206
+ { "braille_dot_8", 0xFFF8 },
207
+ { "braille_dot_9", 0xFFF9 },
208
+ { "braille_dot_10", 0xFFFA },
209
+ { "Delete", 0xFFFF },
210
+ { "ISO_Lock", 0xFE01 },
211
+ { "ISO_Level2_Latch", 0xFE02 },
212
+ { "ISO_Level3_Shift", 0xFE03 },
213
+ { "ISO_Level3_Latch", 0xFE04 },
214
+ { "ISO_Level3_Lock", 0xFE05 },
215
+ { "ISO_Group_Latch", 0xFE06 },
216
+ { "ISO_Group_Lock", 0xFE07 },
217
+ { "ISO_Next_Group", 0xFE08 },
218
+ { "ISO_Next_Group_Lock", 0xFE09 },
219
+ { "ISO_Prev_Group", 0xFE0A },
220
+ { "ISO_Prev_Group_Lock", 0xFE0B },
221
+ { "ISO_First_Group", 0xFE0C },
222
+ { "ISO_First_Group_Lock", 0xFE0D },
223
+ { "ISO_Last_Group", 0xFE0E },
224
+ { "ISO_Last_Group_Lock", 0xFE0F },
225
+ { "ISO_Level5_Shift", 0xFE11 },
226
+ { "ISO_Level5_Latch", 0xFE12 },
227
+ { "ISO_Level5_Lock", 0xFE13 },
228
+ { "ISO_Left_Tab", 0xFE20 },
229
+ { "ISO_Move_Line_Up", 0xFE21 },
230
+ { "ISO_Move_Line_Down", 0xFE22 },
231
+ { "ISO_Partial_Line_Up", 0xFE23 },
232
+ { "ISO_Partial_Line_Down", 0xFE24 },
233
+ { "ISO_Partial_Space_Left", 0xFE25 },
234
+ { "ISO_Partial_Space_Right", 0xFE26 },
235
+ { "ISO_Set_Margin_Left", 0xFE27 },
236
+ { "ISO_Set_Margin_Right", 0xFE28 },
237
+ { "ISO_Release_Margin_Left", 0xFE29 },
238
+ { "ISO_Release_Margin_Right", 0xFE2A },
239
+ { "ISO_Release_Both_Margins", 0xFE2B },
240
+ { "ISO_Fast_Cursor_Left", 0xFE2C },
241
+ { "ISO_Fast_Cursor_Right", 0xFE2D },
242
+ { "ISO_Fast_Cursor_Up", 0xFE2E },
243
+ { "ISO_Fast_Cursor_Down", 0xFE2F },
244
+ { "ISO_Continuous_Underline", 0xFE30 },
245
+ { "ISO_Discontinuous_Underline", 0xFE31 },
246
+ { "ISO_Emphasize", 0xFE32 },
247
+ { "ISO_Center_Object", 0xFE33 },
248
+ { "ISO_Enter", 0xFE34 },
249
+ { "dead_grave", 0xFE50 },
250
+ { "dead_acute", 0xFE51 },
251
+ { "dead_circumflex", 0xFE52 },
252
+ { "dead_tilde", 0xFE53 },
253
+ { "dead_perispomeni", 0xFE53 },
254
+ { "dead_macron", 0xFE54 },
255
+ { "dead_breve", 0xFE55 },
256
+ { "dead_abovedot", 0xFE56 },
257
+ { "dead_diaeresis", 0xFE57 },
258
+ { "dead_abovering", 0xFE58 },
259
+ { "dead_doubleacute", 0xFE59 },
260
+ { "dead_caron", 0xFE5A },
261
+ { "dead_cedilla", 0xFE5B },
262
+ { "dead_ogonek", 0xFE5C },
263
+ { "dead_iota", 0xFE5D },
264
+ { "dead_voiced_sound", 0xFE5E },
265
+ { "dead_semivoiced_sound", 0xFE5F },
266
+ { "dead_belowdot", 0xFE60 },
267
+ { "dead_hook", 0xFE61 },
268
+ { "dead_horn", 0xFE62 },
269
+ { "dead_stroke", 0xFE63 },
270
+ { "dead_abovecomma", 0xFE64 },
271
+ { "dead_psili", 0xFE64 },
272
+ { "dead_abovereversedcomma", 0xFE65 },
273
+ { "dead_dasia", 0xFE65 },
274
+ { "dead_doublegrave", 0xFE66 },
275
+ { "dead_belowring", 0xFE67 },
276
+ { "dead_belowmacron", 0xFE68 },
277
+ { "dead_belowcircumflex", 0xFE69 },
278
+ { "dead_belowtilde", 0xFE6A },
279
+ { "dead_belowbreve", 0xFE6B },
280
+ { "dead_belowdiaeresis", 0xFE6C },
281
+ { "dead_invertedbreve", 0xFE6D },
282
+ { "dead_belowcomma", 0xFE6E },
283
+ { "dead_currency", 0xFE6F },
284
+ { "AccessX_Enable", 0xFE70 },
285
+ { "AccessX_Feedback_Enable", 0xFE71 },
286
+ { "RepeatKeys_Enable", 0xFE72 },
287
+ { "SlowKeys_Enable", 0xFE73 },
288
+ { "BounceKeys_Enable", 0xFE74 },
289
+ { "StickyKeys_Enable", 0xFE75 },
290
+ { "MouseKeys_Enable", 0xFE76 },
291
+ { "MouseKeys_Accel_Enable", 0xFE77 },
292
+ { "Overlay1_Enable", 0xFE78 },
293
+ { "Overlay2_Enable", 0xFE79 },
294
+ { "AudibleBell_Enable", 0xFE7A },
295
+ { "dead_a", 0xFE80 },
296
+ { "dead_A", 0xFE81 },
297
+ { "dead_e", 0xFE82 },
298
+ { "dead_E", 0xFE83 },
299
+ { "dead_i", 0xFE84 },
300
+ { "dead_I", 0xFE85 },
301
+ { "dead_o", 0xFE86 },
302
+ { "dead_O", 0xFE87 },
303
+ { "dead_u", 0xFE88 },
304
+ { "dead_U", 0xFE89 },
305
+ { "dead_schwa", 0xFE8A },
306
+ { "dead_small_schwa", 0xFE8A },
307
+ { "dead_SCHWA", 0xFE8B },
308
+ { "dead_capital_schwa", 0xFE8B },
309
+ { "dead_greek", 0xFE8C },
310
+ { "dead_lowline", 0xFE90 },
311
+ { "dead_aboveverticalline", 0xFE91 },
312
+ { "dead_belowverticalline", 0xFE92 },
313
+ { "dead_longsolidusoverlay", 0xFE93 },
314
+ { "ch", 0xFEA0 },
315
+ { "Ch", 0xFEA1 },
316
+ { "CH", 0xFEA2 },
317
+ { "c_h", 0xFEA3 },
318
+ { "C_h", 0xFEA4 },
319
+ { "C_H", 0xFEA5 },
320
+ { "First_Virtual_Screen", 0xFED0 },
321
+ { "Prev_Virtual_Screen", 0xFED1 },
322
+ { "Next_Virtual_Screen", 0xFED2 },
323
+ { "Last_Virtual_Screen", 0xFED4 },
324
+ { "Terminate_Server", 0xFED5 },
325
+ { "Pointer_Left", 0xFEE0 },
326
+ { "Pointer_Right", 0xFEE1 },
327
+ { "Pointer_Up", 0xFEE2 },
328
+ { "Pointer_Down", 0xFEE3 },
329
+ { "Pointer_UpLeft", 0xFEE4 },
330
+ { "Pointer_UpRight", 0xFEE5 },
331
+ { "Pointer_DownLeft", 0xFEE6 },
332
+ { "Pointer_DownRight", 0xFEE7 },
333
+ { "Pointer_Button_Dflt", 0xFEE8 },
334
+ { "Pointer_Button1", 0xFEE9 },
335
+ { "Pointer_Button2", 0xFEEA },
336
+ { "Pointer_Button3", 0xFEEB },
337
+ { "Pointer_Button4", 0xFEEC },
338
+ { "Pointer_Button5", 0xFEED },
339
+ { "Pointer_DblClick_Dflt", 0xFEEE },
340
+ { "Pointer_DblClick1", 0xFEEF },
341
+ { "Pointer_DblClick2", 0xFEF0 },
342
+ { "Pointer_DblClick3", 0xFEF1 },
343
+ { "Pointer_DblClick4", 0xFEF2 },
344
+ { "Pointer_DblClick5", 0xFEF3 },
345
+ { "Pointer_Drag_Dflt", 0xFEF4 },
346
+ { "Pointer_Drag1", 0xFEF5 },
347
+ { "Pointer_Drag2", 0xFEF6 },
348
+ { "Pointer_Drag3", 0xFEF7 },
349
+ { "Pointer_Drag4", 0xFEF8 },
350
+ { "Pointer_EnableKeys", 0xFEF9 },
351
+ { "Pointer_Accelerate", 0xFEFA },
352
+ { "Pointer_DfltBtnNext", 0xFEFB },
353
+ { "Pointer_DfltBtnPrev", 0xFEFC },
354
+ { "Pointer_Drag5", 0xFEFD },
355
+ { "space", 0x20 },
356
+ { "exclam", 0x21 },
357
+ { "quotedbl", 0x22 },
358
+ { "numbersign", 0x23 },
359
+ { "dollar", 0x24 },
360
+ { "percent", 0x25 },
361
+ { "ampersand", 0x26 },
362
+ { "apostrophe", 0x27 },
363
+ { "quoteright", 0x27 },
364
+ { "parenleft", 0x28 },
365
+ { "parenright", 0x29 },
366
+ { "asterisk", 0x2A },
367
+ { "plus", 0x2B },
368
+ { "comma", 0x2C },
369
+ { "minus", 0x2D },
370
+ { "period", 0x2E },
371
+ { "slash", 0x2F },
372
+ { "0", 0x30 },
373
+ { "1", 0x31 },
374
+ { "2", 0x32 },
375
+ { "3", 0x33 },
376
+ { "4", 0x34 },
377
+ { "5", 0x35 },
378
+ { "6", 0x36 },
379
+ { "7", 0x37 },
380
+ { "8", 0x38 },
381
+ { "9", 0x39 },
382
+ { "colon", 0x3A },
383
+ { "semicolon", 0x3B },
384
+ { "less", 0x3C },
385
+ { "equal", 0x3D },
386
+ { "greater", 0x3E },
387
+ { "question", 0x3F },
388
+ { "at", 0x40 },
389
+ { "A", 0x41 },
390
+ { "B", 0x42 },
391
+ { "C", 0x43 },
392
+ { "D", 0x44 },
393
+ { "E", 0x45 },
394
+ { "F", 0x46 },
395
+ { "G", 0x47 },
396
+ { "H", 0x48 },
397
+ { "I", 0x49 },
398
+ { "J", 0x4A },
399
+ { "K", 0x4B },
400
+ { "L", 0x4C },
401
+ { "M", 0x4D },
402
+ { "N", 0x4E },
403
+ { "O", 0x4F },
404
+ { "P", 0x50 },
405
+ { "Q", 0x51 },
406
+ { "R", 0x52 },
407
+ { "S", 0x53 },
408
+ { "T", 0x54 },
409
+ { "U", 0x55 },
410
+ { "V", 0x56 },
411
+ { "W", 0x57 },
412
+ { "X", 0x58 },
413
+ { "Y", 0x59 },
414
+ { "Z", 0x5A },
415
+ { "bracketleft", 0x5B },
416
+ { "backslash", 0x5C },
417
+ { "bracketright", 0x5D },
418
+ { "asciicircum", 0x5E },
419
+ { "underscore", 0x5F },
420
+ { "grave", 0x60 },
421
+ { "quoteleft", 0x60 },
422
+ { "a", 0x61 },
423
+ { "b", 0x62 },
424
+ { "c", 0x63 },
425
+ { "d", 0x64 },
426
+ { "e", 0x65 },
427
+ { "f", 0x66 },
428
+ { "g", 0x67 },
429
+ { "h", 0x68 },
430
+ { "i", 0x69 },
431
+ { "j", 0x6A },
432
+ { "k", 0x6B },
433
+ { "l", 0x6C },
434
+ { "m", 0x6D },
435
+ { "n", 0x6E },
436
+ { "o", 0x6F },
437
+ { "p", 0x70 },
438
+ { "q", 0x71 },
439
+ { "r", 0x72 },
440
+ { "s", 0x73 },
441
+ { "t", 0x74 },
442
+ { "u", 0x75 },
443
+ { "v", 0x76 },
444
+ { "w", 0x77 },
445
+ { "x", 0x78 },
446
+ { "y", 0x79 },
447
+ { "z", 0x7A },
448
+ { "braceleft", 0x7B },
449
+ { "bar", 0x7C },
450
+ { "braceright", 0x7D },
451
+ { "asciitilde", 0x7E },
452
+ { "nobreakspace", 0xA0 },
453
+ { "exclamdown", 0xA1 },
454
+ { "cent", 0xA2 },
455
+ { "sterling", 0xA3 },
456
+ { "currency", 0xA4 },
457
+ { "yen", 0xA5 },
458
+ { "brokenbar", 0xA6 },
459
+ { "section", 0xA7 },
460
+ { "diaeresis", 0xA8 },
461
+ { "copyright", 0xA9 },
462
+ { "ordfeminine", 0xAA },
463
+ { "guillemetleft", 0xAB },
464
+ { "guillemotleft", 0xAB },
465
+ { "notsign", 0xAC },
466
+ { "hyphen", 0xAD },
467
+ { "registered", 0xAE },
468
+ { "macron", 0xAF },
469
+ { "degree", 0xB0 },
470
+ { "plusminus", 0xB1 },
471
+ { "twosuperior", 0xB2 },
472
+ { "threesuperior", 0xB3 },
473
+ { "acute", 0xB4 },
474
+ { "mu", 0xB5 },
475
+ { "paragraph", 0xB6 },
476
+ { "periodcentered", 0xB7 },
477
+ { "cedilla", 0xB8 },
478
+ { "onesuperior", 0xB9 },
479
+ { "ordmasculine", 0xBA },
480
+ { "masculine", 0xBA },
481
+ { "guillemetright", 0xBB },
482
+ { "guillemotright", 0xBB },
483
+ { "onequarter", 0xBC },
484
+ { "onehalf", 0xBD },
485
+ { "threequarters", 0xBE },
486
+ { "questiondown", 0xBF },
487
+ { "Agrave", 0xC0 },
488
+ { "Aacute", 0xC1 },
489
+ { "Acircumflex", 0xC2 },
490
+ { "Atilde", 0xC3 },
491
+ { "Adiaeresis", 0xC4 },
492
+ { "Aring", 0xC5 },
493
+ { "AE", 0xC6 },
494
+ { "Ccedilla", 0xC7 },
495
+ { "Egrave", 0xC8 },
496
+ { "Eacute", 0xC9 },
497
+ { "Ecircumflex", 0xCA },
498
+ { "Ediaeresis", 0xCB },
499
+ { "Igrave", 0xCC },
500
+ { "Iacute", 0xCD },
501
+ { "Icircumflex", 0xCE },
502
+ { "Idiaeresis", 0xCF },
503
+ { "ETH", 0xD0 },
504
+ { "Eth", 0xD0 },
505
+ { "Ntilde", 0xD1 },
506
+ { "Ograve", 0xD2 },
507
+ { "Oacute", 0xD3 },
508
+ { "Ocircumflex", 0xD4 },
509
+ { "Otilde", 0xD5 },
510
+ { "Odiaeresis", 0xD6 },
511
+ { "multiply", 0xD7 },
512
+ { "Oslash", 0xD8 },
513
+ { "Ooblique", 0xD8 },
514
+ { "Ugrave", 0xD9 },
515
+ { "Uacute", 0xDA },
516
+ { "Ucircumflex", 0xDB },
517
+ { "Udiaeresis", 0xDC },
518
+ { "Yacute", 0xDD },
519
+ { "THORN", 0xDE },
520
+ { "Thorn", 0xDE },
521
+ { "ssharp", 0xDF },
522
+ { "agrave", 0xE0 },
523
+ { "aacute", 0xE1 },
524
+ { "acircumflex", 0xE2 },
525
+ { "atilde", 0xE3 },
526
+ { "adiaeresis", 0xE4 },
527
+ { "aring", 0xE5 },
528
+ { "ae", 0xE6 },
529
+ { "ccedilla", 0xE7 },
530
+ { "egrave", 0xE8 },
531
+ { "eacute", 0xE9 },
532
+ { "ecircumflex", 0xEA },
533
+ { "ediaeresis", 0xEB },
534
+ { "igrave", 0xEC },
535
+ { "iacute", 0xED },
536
+ { "icircumflex", 0xEE },
537
+ { "idiaeresis", 0xEF },
538
+ { "eth", 0xF0 },
539
+ { "ntilde", 0xF1 },
540
+ { "ograve", 0xF2 },
541
+ { "oacute", 0xF3 },
542
+ { "ocircumflex", 0xF4 },
543
+ { "otilde", 0xF5 },
544
+ { "odiaeresis", 0xF6 },
545
+ { "division", 0xF7 },
546
+ { "oslash", 0xF8 },
547
+ { "ooblique", 0xF8 },
548
+ { "ugrave", 0xF9 },
549
+ { "uacute", 0xFA },
550
+ { "ucircumflex", 0xFB },
551
+ { "udiaeresis", 0xFC },
552
+ { "yacute", 0xFD },
553
+ { "thorn", 0xFE },
554
+ { "ydiaeresis", 0xFF },
555
+ { "Aogonek", 0x1A1 },
556
+ { "breve", 0x1A2 },
557
+ { "Lstroke", 0x1A3 },
558
+ { "Lcaron", 0x1A5 },
559
+ { "Sacute", 0x1A6 },
560
+ { "Scaron", 0x1A9 },
561
+ { "Scedilla", 0x1AA },
562
+ { "Tcaron", 0x1AB },
563
+ { "Zacute", 0x1AC },
564
+ { "Zcaron", 0x1AE },
565
+ { "Zabovedot", 0x1AF },
566
+ { "aogonek", 0x1B1 },
567
+ { "ogonek", 0x1B2 },
568
+ { "lstroke", 0x1B3 },
569
+ { "lcaron", 0x1B5 },
570
+ { "sacute", 0x1B6 },
571
+ { "caron", 0x1B7 },
572
+ { "scaron", 0x1B9 },
573
+ { "scedilla", 0x1BA },
574
+ { "tcaron", 0x1BB },
575
+ { "zacute", 0x1BC },
576
+ { "doubleacute", 0x1BD },
577
+ { "zcaron", 0x1BE },
578
+ { "zabovedot", 0x1BF },
579
+ { "Racute", 0x1C0 },
580
+ { "Abreve", 0x1C3 },
581
+ { "Lacute", 0x1C5 },
582
+ { "Cacute", 0x1C6 },
583
+ { "Ccaron", 0x1C8 },
584
+ { "Eogonek", 0x1CA },
585
+ { "Ecaron", 0x1CC },
586
+ { "Dcaron", 0x1CF },
587
+ { "Dstroke", 0x1D0 },
588
+ { "Nacute", 0x1D1 },
589
+ { "Ncaron", 0x1D2 },
590
+ { "Odoubleacute", 0x1D5 },
591
+ { "Rcaron", 0x1D8 },
592
+ { "Uring", 0x1D9 },
593
+ { "Udoubleacute", 0x1DB },
594
+ { "Tcedilla", 0x1DE },
595
+ { "racute", 0x1E0 },
596
+ { "abreve", 0x1E3 },
597
+ { "lacute", 0x1E5 },
598
+ { "cacute", 0x1E6 },
599
+ { "ccaron", 0x1E8 },
600
+ { "eogonek", 0x1EA },
601
+ { "ecaron", 0x1EC },
602
+ { "dcaron", 0x1EF },
603
+ { "dstroke", 0x1F0 },
604
+ { "nacute", 0x1F1 },
605
+ { "ncaron", 0x1F2 },
606
+ { "odoubleacute", 0x1F5 },
607
+ { "rcaron", 0x1F8 },
608
+ { "uring", 0x1F9 },
609
+ { "udoubleacute", 0x1FB },
610
+ { "tcedilla", 0x1FE },
611
+ { "abovedot", 0x1FF },
612
+ { "Hstroke", 0x2A1 },
613
+ { "Hcircumflex", 0x2A6 },
614
+ { "Iabovedot", 0x2A9 },
615
+ { "Gbreve", 0x2AB },
616
+ { "Jcircumflex", 0x2AC },
617
+ { "hstroke", 0x2B1 },
618
+ { "hcircumflex", 0x2B6 },
619
+ { "idotless", 0x2B9 },
620
+ { "gbreve", 0x2BB },
621
+ { "jcircumflex", 0x2BC },
622
+ { "Cabovedot", 0x2C5 },
623
+ { "Ccircumflex", 0x2C6 },
624
+ { "Gabovedot", 0x2D5 },
625
+ { "Gcircumflex", 0x2D8 },
626
+ { "Ubreve", 0x2DD },
627
+ { "Scircumflex", 0x2DE },
628
+ { "cabovedot", 0x2E5 },
629
+ { "ccircumflex", 0x2E6 },
630
+ { "gabovedot", 0x2F5 },
631
+ { "gcircumflex", 0x2F8 },
632
+ { "ubreve", 0x2FD },
633
+ { "scircumflex", 0x2FE },
634
+ { "kra", 0x3A2 },
635
+ { "kappa", 0x3A2 },
636
+ { "Rcedilla", 0x3A3 },
637
+ { "Itilde", 0x3A5 },
638
+ { "Lcedilla", 0x3A6 },
639
+ { "Emacron", 0x3AA },
640
+ { "Gcedilla", 0x3AB },
641
+ { "Tslash", 0x3AC },
642
+ { "rcedilla", 0x3B3 },
643
+ { "itilde", 0x3B5 },
644
+ { "lcedilla", 0x3B6 },
645
+ { "emacron", 0x3BA },
646
+ { "gcedilla", 0x3BB },
647
+ { "gacute", 0x3BB },
648
+ { "tslash", 0x3BC },
649
+ { "ENG", 0x3BD },
650
+ { "eng", 0x3BF },
651
+ { "Amacron", 0x3C0 },
652
+ { "Iogonek", 0x3C7 },
653
+ { "Eabovedot", 0x3CC },
654
+ { "Imacron", 0x3CF },
655
+ { "Ncedilla", 0x3D1 },
656
+ { "Omacron", 0x3D2 },
657
+ { "Kcedilla", 0x3D3 },
658
+ { "Uogonek", 0x3D9 },
659
+ { "Utilde", 0x3DD },
660
+ { "Umacron", 0x3DE },
661
+ { "amacron", 0x3E0 },
662
+ { "iogonek", 0x3E7 },
663
+ { "eabovedot", 0x3EC },
664
+ { "imacron", 0x3EF },
665
+ { "ncedilla", 0x3F1 },
666
+ { "omacron", 0x3F2 },
667
+ { "kcedilla", 0x3F3 },
668
+ { "uogonek", 0x3F9 },
669
+ { "utilde", 0x3FD },
670
+ { "umacron", 0x3FE },
671
+ { "OE", 0x13BC },
672
+ { "oe", 0x13BD },
673
+ { "Ydiaeresis", 0x13BE },
674
+ { "overline", 0x47E },
675
+ { "kana_fullstop", 0x4A1 },
676
+ { "kana_openingbracket", 0x4A2 },
677
+ { "kana_closingbracket", 0x4A3 },
678
+ { "kana_comma", 0x4A4 },
679
+ { "kana_conjunctive", 0x4A5 },
680
+ { "kana_middledot", 0x4A5 },
681
+ { "kana_WO", 0x4A6 },
682
+ { "kana_a", 0x4A7 },
683
+ { "kana_i", 0x4A8 },
684
+ { "kana_u", 0x4A9 },
685
+ { "kana_e", 0x4AA },
686
+ { "kana_o", 0x4AB },
687
+ { "kana_ya", 0x4AC },
688
+ { "kana_yu", 0x4AD },
689
+ { "kana_yo", 0x4AE },
690
+ { "kana_tsu", 0x4AF },
691
+ { "kana_tu", 0x4AF },
692
+ { "prolongedsound", 0x4B0 },
693
+ { "kana_A", 0x4B1 },
694
+ { "kana_I", 0x4B2 },
695
+ { "kana_U", 0x4B3 },
696
+ { "kana_E", 0x4B4 },
697
+ { "kana_O", 0x4B5 },
698
+ { "kana_KA", 0x4B6 },
699
+ { "kana_KI", 0x4B7 },
700
+ { "kana_KU", 0x4B8 },
701
+ { "kana_KE", 0x4B9 },
702
+ { "kana_KO", 0x4BA },
703
+ { "kana_SA", 0x4BB },
704
+ { "kana_SHI", 0x4BC },
705
+ { "kana_SU", 0x4BD },
706
+ { "kana_SE", 0x4BE },
707
+ { "kana_SO", 0x4BF },
708
+ { "kana_TA", 0x4C0 },
709
+ { "kana_CHI", 0x4C1 },
710
+ { "kana_TI", 0x4C1 },
711
+ { "kana_TSU", 0x4C2 },
712
+ { "kana_TU", 0x4C2 },
713
+ { "kana_TE", 0x4C3 },
714
+ { "kana_TO", 0x4C4 },
715
+ { "kana_NA", 0x4C5 },
716
+ { "kana_NI", 0x4C6 },
717
+ { "kana_NU", 0x4C7 },
718
+ { "kana_NE", 0x4C8 },
719
+ { "kana_NO", 0x4C9 },
720
+ { "kana_HA", 0x4CA },
721
+ { "kana_HI", 0x4CB },
722
+ { "kana_FU", 0x4CC },
723
+ { "kana_HU", 0x4CC },
724
+ { "kana_HE", 0x4CD },
725
+ { "kana_HO", 0x4CE },
726
+ { "kana_MA", 0x4CF },
727
+ { "kana_MI", 0x4D0 },
728
+ { "kana_MU", 0x4D1 },
729
+ { "kana_ME", 0x4D2 },
730
+ { "kana_MO", 0x4D3 },
731
+ { "kana_YA", 0x4D4 },
732
+ { "kana_YU", 0x4D5 },
733
+ { "kana_YO", 0x4D6 },
734
+ { "kana_RA", 0x4D7 },
735
+ { "kana_RI", 0x4D8 },
736
+ { "kana_RU", 0x4D9 },
737
+ { "kana_RE", 0x4DA },
738
+ { "kana_RO", 0x4DB },
739
+ { "kana_WA", 0x4DC },
740
+ { "kana_N", 0x4DD },
741
+ { "voicedsound", 0x4DE },
742
+ { "semivoicedsound", 0x4DF },
743
+ { "Arabic_comma", 0x5AC },
744
+ { "Arabic_semicolon", 0x5BB },
745
+ { "Arabic_question_mark", 0x5BF },
746
+ { "Arabic_hamza", 0x5C1 },
747
+ { "Arabic_maddaonalef", 0x5C2 },
748
+ { "Arabic_hamzaonalef", 0x5C3 },
749
+ { "Arabic_hamzaonwaw", 0x5C4 },
750
+ { "Arabic_hamzaunderalef", 0x5C5 },
751
+ { "Arabic_hamzaonyeh", 0x5C6 },
752
+ { "Arabic_alef", 0x5C7 },
753
+ { "Arabic_beh", 0x5C8 },
754
+ { "Arabic_tehmarbuta", 0x5C9 },
755
+ { "Arabic_teh", 0x5CA },
756
+ { "Arabic_theh", 0x5CB },
757
+ { "Arabic_jeem", 0x5CC },
758
+ { "Arabic_hah", 0x5CD },
759
+ { "Arabic_khah", 0x5CE },
760
+ { "Arabic_dal", 0x5CF },
761
+ { "Arabic_thal", 0x5D0 },
762
+ { "Arabic_ra", 0x5D1 },
763
+ { "Arabic_zain", 0x5D2 },
764
+ { "Arabic_seen", 0x5D3 },
765
+ { "Arabic_sheen", 0x5D4 },
766
+ { "Arabic_sad", 0x5D5 },
767
+ { "Arabic_dad", 0x5D6 },
768
+ { "Arabic_tah", 0x5D7 },
769
+ { "Arabic_zah", 0x5D8 },
770
+ { "Arabic_ain", 0x5D9 },
771
+ { "Arabic_ghain", 0x5DA },
772
+ { "Arabic_tatweel", 0x5E0 },
773
+ { "Arabic_feh", 0x5E1 },
774
+ { "Arabic_qaf", 0x5E2 },
775
+ { "Arabic_kaf", 0x5E3 },
776
+ { "Arabic_lam", 0x5E4 },
777
+ { "Arabic_meem", 0x5E5 },
778
+ { "Arabic_noon", 0x5E6 },
779
+ { "Arabic_ha", 0x5E7 },
780
+ { "Arabic_heh", 0x5E7 },
781
+ { "Arabic_waw", 0x5E8 },
782
+ { "Arabic_alefmaksura", 0x5E9 },
783
+ { "Arabic_yeh", 0x5EA },
784
+ { "Arabic_fathatan", 0x5EB },
785
+ { "Arabic_dammatan", 0x5EC },
786
+ { "Arabic_kasratan", 0x5ED },
787
+ { "Arabic_fatha", 0x5EE },
788
+ { "Arabic_damma", 0x5EF },
789
+ { "Arabic_kasra", 0x5F0 },
790
+ { "Arabic_shadda", 0x5F1 },
791
+ { "Arabic_sukun", 0x5F2 },
792
+ { "Serbian_dje", 0x6A1 },
793
+ { "Macedonia_gje", 0x6A2 },
794
+ { "Cyrillic_io", 0x6A3 },
795
+ { "Ukrainian_ie", 0x6A4 },
796
+ { "Ukranian_je", 0x6A4 },
797
+ { "Macedonia_dse", 0x6A5 },
798
+ { "Ukrainian_i", 0x6A6 },
799
+ { "Ukranian_i", 0x6A6 },
800
+ { "Ukrainian_yi", 0x6A7 },
801
+ { "Ukranian_yi", 0x6A7 },
802
+ { "Cyrillic_je", 0x6A8 },
803
+ { "Serbian_je", 0x6A8 },
804
+ { "Cyrillic_lje", 0x6A9 },
805
+ { "Serbian_lje", 0x6A9 },
806
+ { "Cyrillic_nje", 0x6AA },
807
+ { "Serbian_nje", 0x6AA },
808
+ { "Serbian_tshe", 0x6AB },
809
+ { "Macedonia_kje", 0x6AC },
810
+ { "Ukrainian_ghe_with_upturn", 0x6AD },
811
+ { "Byelorussian_shortu", 0x6AE },
812
+ { "Cyrillic_dzhe", 0x6AF },
813
+ { "Serbian_dze", 0x6AF },
814
+ { "numerosign", 0x6B0 },
815
+ { "Serbian_DJE", 0x6B1 },
816
+ { "Macedonia_GJE", 0x6B2 },
817
+ { "Cyrillic_IO", 0x6B3 },
818
+ { "Ukrainian_IE", 0x6B4 },
819
+ { "Ukranian_JE", 0x6B4 },
820
+ { "Macedonia_DSE", 0x6B5 },
821
+ { "Ukrainian_I", 0x6B6 },
822
+ { "Ukranian_I", 0x6B6 },
823
+ { "Ukrainian_YI", 0x6B7 },
824
+ { "Ukranian_YI", 0x6B7 },
825
+ { "Cyrillic_JE", 0x6B8 },
826
+ { "Serbian_JE", 0x6B8 },
827
+ { "Cyrillic_LJE", 0x6B9 },
828
+ { "Serbian_LJE", 0x6B9 },
829
+ { "Cyrillic_NJE", 0x6BA },
830
+ { "Serbian_NJE", 0x6BA },
831
+ { "Serbian_TSHE", 0x6BB },
832
+ { "Macedonia_KJE", 0x6BC },
833
+ { "Ukrainian_GHE_WITH_UPTURN", 0x6BD },
834
+ { "Byelorussian_SHORTU", 0x6BE },
835
+ { "Cyrillic_DZHE", 0x6BF },
836
+ { "Serbian_DZE", 0x6BF },
837
+ { "Cyrillic_yu", 0x6C0 },
838
+ { "Cyrillic_a", 0x6C1 },
839
+ { "Cyrillic_be", 0x6C2 },
840
+ { "Cyrillic_tse", 0x6C3 },
841
+ { "Cyrillic_de", 0x6C4 },
842
+ { "Cyrillic_ie", 0x6C5 },
843
+ { "Cyrillic_ef", 0x6C6 },
844
+ { "Cyrillic_ghe", 0x6C7 },
845
+ { "Cyrillic_ha", 0x6C8 },
846
+ { "Cyrillic_i", 0x6C9 },
847
+ { "Cyrillic_shorti", 0x6CA },
848
+ { "Cyrillic_ka", 0x6CB },
849
+ { "Cyrillic_el", 0x6CC },
850
+ { "Cyrillic_em", 0x6CD },
851
+ { "Cyrillic_en", 0x6CE },
852
+ { "Cyrillic_o", 0x6CF },
853
+ { "Cyrillic_pe", 0x6D0 },
854
+ { "Cyrillic_ya", 0x6D1 },
855
+ { "Cyrillic_er", 0x6D2 },
856
+ { "Cyrillic_es", 0x6D3 },
857
+ { "Cyrillic_te", 0x6D4 },
858
+ { "Cyrillic_u", 0x6D5 },
859
+ { "Cyrillic_zhe", 0x6D6 },
860
+ { "Cyrillic_ve", 0x6D7 },
861
+ { "Cyrillic_softsign", 0x6D8 },
862
+ { "Cyrillic_yeru", 0x6D9 },
863
+ { "Cyrillic_ze", 0x6DA },
864
+ { "Cyrillic_sha", 0x6DB },
865
+ { "Cyrillic_e", 0x6DC },
866
+ { "Cyrillic_shcha", 0x6DD },
867
+ { "Cyrillic_che", 0x6DE },
868
+ { "Cyrillic_hardsign", 0x6DF },
869
+ { "Cyrillic_YU", 0x6E0 },
870
+ { "Cyrillic_A", 0x6E1 },
871
+ { "Cyrillic_BE", 0x6E2 },
872
+ { "Cyrillic_TSE", 0x6E3 },
873
+ { "Cyrillic_DE", 0x6E4 },
874
+ { "Cyrillic_IE", 0x6E5 },
875
+ { "Cyrillic_EF", 0x6E6 },
876
+ { "Cyrillic_GHE", 0x6E7 },
877
+ { "Cyrillic_HA", 0x6E8 },
878
+ { "Cyrillic_I", 0x6E9 },
879
+ { "Cyrillic_SHORTI", 0x6EA },
880
+ { "Cyrillic_KA", 0x6EB },
881
+ { "Cyrillic_EL", 0x6EC },
882
+ { "Cyrillic_EM", 0x6ED },
883
+ { "Cyrillic_EN", 0x6EE },
884
+ { "Cyrillic_O", 0x6EF },
885
+ { "Cyrillic_PE", 0x6F0 },
886
+ { "Cyrillic_YA", 0x6F1 },
887
+ { "Cyrillic_ER", 0x6F2 },
888
+ { "Cyrillic_ES", 0x6F3 },
889
+ { "Cyrillic_TE", 0x6F4 },
890
+ { "Cyrillic_U", 0x6F5 },
891
+ { "Cyrillic_ZHE", 0x6F6 },
892
+ { "Cyrillic_VE", 0x6F7 },
893
+ { "Cyrillic_SOFTSIGN", 0x6F8 },
894
+ { "Cyrillic_YERU", 0x6F9 },
895
+ { "Cyrillic_ZE", 0x6FA },
896
+ { "Cyrillic_SHA", 0x6FB },
897
+ { "Cyrillic_E", 0x6FC },
898
+ { "Cyrillic_SHCHA", 0x6FD },
899
+ { "Cyrillic_CHE", 0x6FE },
900
+ { "Cyrillic_HARDSIGN", 0x6FF },
901
+ { "Greek_ALPHAaccent", 0x7A1 },
902
+ { "Greek_EPSILONaccent", 0x7A2 },
903
+ { "Greek_ETAaccent", 0x7A3 },
904
+ { "Greek_IOTAaccent", 0x7A4 },
905
+ { "Greek_IOTAdieresis", 0x7A5 },
906
+ { "Greek_IOTAdiaeresis", 0x7A5 },
907
+ { "Greek_IOTAaccentdiaeresis", 0x7A6 },
908
+ { "Greek_OMICRONaccent", 0x7A7 },
909
+ { "Greek_UPSILONaccent", 0x7A8 },
910
+ { "Greek_UPSILONdieresis", 0x7A9 },
911
+ { "Greek_UPSILONaccentdieresis", 0x7AA },
912
+ { "Greek_OMEGAaccent", 0x7AB },
913
+ { "Greek_accentdieresis", 0x7AE },
914
+ { "Greek_horizbar", 0x7AF },
915
+ { "Greek_alphaaccent", 0x7B1 },
916
+ { "Greek_epsilonaccent", 0x7B2 },
917
+ { "Greek_etaaccent", 0x7B3 },
918
+ { "Greek_iotaaccent", 0x7B4 },
919
+ { "Greek_iotadieresis", 0x7B5 },
920
+ { "Greek_iotaaccentdieresis", 0x7B6 },
921
+ { "Greek_omicronaccent", 0x7B7 },
922
+ { "Greek_upsilonaccent", 0x7B8 },
923
+ { "Greek_upsilondieresis", 0x7B9 },
924
+ { "Greek_upsilonaccentdieresis", 0x7BA },
925
+ { "Greek_omegaaccent", 0x7BB },
926
+ { "Greek_ALPHA", 0x7C1 },
927
+ { "Greek_BETA", 0x7C2 },
928
+ { "Greek_GAMMA", 0x7C3 },
929
+ { "Greek_DELTA", 0x7C4 },
930
+ { "Greek_EPSILON", 0x7C5 },
931
+ { "Greek_ZETA", 0x7C6 },
932
+ { "Greek_ETA", 0x7C7 },
933
+ { "Greek_THETA", 0x7C8 },
934
+ { "Greek_IOTA", 0x7C9 },
935
+ { "Greek_KAPPA", 0x7CA },
936
+ { "Greek_LAMDA", 0x7CB },
937
+ { "Greek_LAMBDA", 0x7CB },
938
+ { "Greek_MU", 0x7CC },
939
+ { "Greek_NU", 0x7CD },
940
+ { "Greek_XI", 0x7CE },
941
+ { "Greek_OMICRON", 0x7CF },
942
+ { "Greek_PI", 0x7D0 },
943
+ { "Greek_RHO", 0x7D1 },
944
+ { "Greek_SIGMA", 0x7D2 },
945
+ { "Greek_TAU", 0x7D4 },
946
+ { "Greek_UPSILON", 0x7D5 },
947
+ { "Greek_PHI", 0x7D6 },
948
+ { "Greek_CHI", 0x7D7 },
949
+ { "Greek_PSI", 0x7D8 },
950
+ { "Greek_OMEGA", 0x7D9 },
951
+ { "Greek_alpha", 0x7E1 },
952
+ { "Greek_beta", 0x7E2 },
953
+ { "Greek_gamma", 0x7E3 },
954
+ { "Greek_delta", 0x7E4 },
955
+ { "Greek_epsilon", 0x7E5 },
956
+ { "Greek_zeta", 0x7E6 },
957
+ { "Greek_eta", 0x7E7 },
958
+ { "Greek_theta", 0x7E8 },
959
+ { "Greek_iota", 0x7E9 },
960
+ { "Greek_kappa", 0x7EA },
961
+ { "Greek_lamda", 0x7EB },
962
+ { "Greek_lambda", 0x7EB },
963
+ { "Greek_mu", 0x7EC },
964
+ { "Greek_nu", 0x7ED },
965
+ { "Greek_xi", 0x7EE },
966
+ { "Greek_omicron", 0x7EF },
967
+ { "Greek_pi", 0x7F0 },
968
+ { "Greek_rho", 0x7F1 },
969
+ { "Greek_sigma", 0x7F2 },
970
+ { "Greek_finalsmallsigma", 0x7F3 },
971
+ { "Greek_tau", 0x7F4 },
972
+ { "Greek_upsilon", 0x7F5 },
973
+ { "Greek_phi", 0x7F6 },
974
+ { "Greek_chi", 0x7F7 },
975
+ { "Greek_psi", 0x7F8 },
976
+ { "Greek_omega", 0x7F9 },
977
+ { "leftradical", 0x8A1 },
978
+ { "topleftradical", 0x8A2 },
979
+ { "horizconnector", 0x8A3 },
980
+ { "topintegral", 0x8A4 },
981
+ { "botintegral", 0x8A5 },
982
+ { "vertconnector", 0x8A6 },
983
+ { "topleftsqbracket", 0x8A7 },
984
+ { "botleftsqbracket", 0x8A8 },
985
+ { "toprightsqbracket", 0x8A9 },
986
+ { "botrightsqbracket", 0x8AA },
987
+ { "topleftparens", 0x8AB },
988
+ { "botleftparens", 0x8AC },
989
+ { "toprightparens", 0x8AD },
990
+ { "botrightparens", 0x8AE },
991
+ { "leftmiddlecurlybrace", 0x8AF },
992
+ { "rightmiddlecurlybrace", 0x8B0 },
993
+ { "topleftsummation", 0x8B1 },
994
+ { "botleftsummation", 0x8B2 },
995
+ { "topvertsummationconnector", 0x8B3 },
996
+ { "botvertsummationconnector", 0x8B4 },
997
+ { "toprightsummation", 0x8B5 },
998
+ { "botrightsummation", 0x8B6 },
999
+ { "rightmiddlesummation", 0x8B7 },
1000
+ { "lessthanequal", 0x8BC },
1001
+ { "notequal", 0x8BD },
1002
+ { "greaterthanequal", 0x8BE },
1003
+ { "integral", 0x8BF },
1004
+ { "therefore", 0x8C0 },
1005
+ { "variation", 0x8C1 },
1006
+ { "infinity", 0x8C2 },
1007
+ { "nabla", 0x8C5 },
1008
+ { "approximate", 0x8C8 },
1009
+ { "similarequal", 0x8C9 },
1010
+ { "ifonlyif", 0x8CD },
1011
+ { "implies", 0x8CE },
1012
+ { "identical", 0x8CF },
1013
+ { "radical", 0x8D6 },
1014
+ { "includedin", 0x8DA },
1015
+ { "includes", 0x8DB },
1016
+ { "intersection", 0x8DC },
1017
+ { "union", 0x8DD },
1018
+ { "logicaland", 0x8DE },
1019
+ { "logicalor", 0x8DF },
1020
+ { "partialderivative", 0x8EF },
1021
+ { "function", 0x8F6 },
1022
+ { "leftarrow", 0x8FB },
1023
+ { "uparrow", 0x8FC },
1024
+ { "rightarrow", 0x8FD },
1025
+ { "downarrow", 0x8FE },
1026
+ { "blank", 0x9DF },
1027
+ { "soliddiamond", 0x9E0 },
1028
+ { "checkerboard", 0x9E1 },
1029
+ { "ht", 0x9E2 },
1030
+ { "ff", 0x9E3 },
1031
+ { "cr", 0x9E4 },
1032
+ { "lf", 0x9E5 },
1033
+ { "nl", 0x9E8 },
1034
+ { "vt", 0x9E9 },
1035
+ { "lowrightcorner", 0x9EA },
1036
+ { "uprightcorner", 0x9EB },
1037
+ { "upleftcorner", 0x9EC },
1038
+ { "lowleftcorner", 0x9ED },
1039
+ { "crossinglines", 0x9EE },
1040
+ { "horizlinescan1", 0x9EF },
1041
+ { "horizlinescan3", 0x9F0 },
1042
+ { "horizlinescan5", 0x9F1 },
1043
+ { "horizlinescan7", 0x9F2 },
1044
+ { "horizlinescan9", 0x9F3 },
1045
+ { "leftt", 0x9F4 },
1046
+ { "rightt", 0x9F5 },
1047
+ { "bott", 0x9F6 },
1048
+ { "topt", 0x9F7 },
1049
+ { "vertbar", 0x9F8 },
1050
+ { "emspace", 0xAA1 },
1051
+ { "enspace", 0xAA2 },
1052
+ { "em3space", 0xAA3 },
1053
+ { "em4space", 0xAA4 },
1054
+ { "digitspace", 0xAA5 },
1055
+ { "punctspace", 0xAA6 },
1056
+ { "thinspace", 0xAA7 },
1057
+ { "hairspace", 0xAA8 },
1058
+ { "emdash", 0xAA9 },
1059
+ { "endash", 0xAAA },
1060
+ { "signifblank", 0xAAC },
1061
+ { "ellipsis", 0xAAE },
1062
+ { "doubbaselinedot", 0xAAF },
1063
+ { "onethird", 0xAB0 },
1064
+ { "twothirds", 0xAB1 },
1065
+ { "onefifth", 0xAB2 },
1066
+ { "twofifths", 0xAB3 },
1067
+ { "threefifths", 0xAB4 },
1068
+ { "fourfifths", 0xAB5 },
1069
+ { "onesixth", 0xAB6 },
1070
+ { "fivesixths", 0xAB7 },
1071
+ { "careof", 0xAB8 },
1072
+ { "figdash", 0xABB },
1073
+ { "leftanglebracket", 0xABC },
1074
+ { "decimalpoint", 0xABD },
1075
+ { "rightanglebracket", 0xABE },
1076
+ { "marker", 0xABF },
1077
+ { "oneeighth", 0xAC3 },
1078
+ { "threeeighths", 0xAC4 },
1079
+ { "fiveeighths", 0xAC5 },
1080
+ { "seveneighths", 0xAC6 },
1081
+ { "trademark", 0xAC9 },
1082
+ { "signaturemark", 0xACA },
1083
+ { "trademarkincircle", 0xACB },
1084
+ { "leftopentriangle", 0xACC },
1085
+ { "rightopentriangle", 0xACD },
1086
+ { "emopencircle", 0xACE },
1087
+ { "emopenrectangle", 0xACF },
1088
+ { "leftsinglequotemark", 0xAD0 },
1089
+ { "rightsinglequotemark", 0xAD1 },
1090
+ { "leftdoublequotemark", 0xAD2 },
1091
+ { "rightdoublequotemark", 0xAD3 },
1092
+ { "prescription", 0xAD4 },
1093
+ { "permille", 0xAD5 },
1094
+ { "minutes", 0xAD6 },
1095
+ { "seconds", 0xAD7 },
1096
+ { "latincross", 0xAD9 },
1097
+ { "hexagram", 0xADA },
1098
+ { "filledrectbullet", 0xADB },
1099
+ { "filledlefttribullet", 0xADC },
1100
+ { "filledrighttribullet", 0xADD },
1101
+ { "emfilledcircle", 0xADE },
1102
+ { "emfilledrect", 0xADF },
1103
+ { "enopencircbullet", 0xAE0 },
1104
+ { "enopensquarebullet", 0xAE1 },
1105
+ { "openrectbullet", 0xAE2 },
1106
+ { "opentribulletup", 0xAE3 },
1107
+ { "opentribulletdown", 0xAE4 },
1108
+ { "openstar", 0xAE5 },
1109
+ { "enfilledcircbullet", 0xAE6 },
1110
+ { "enfilledsqbullet", 0xAE7 },
1111
+ { "filledtribulletup", 0xAE8 },
1112
+ { "filledtribulletdown", 0xAE9 },
1113
+ { "leftpointer", 0xAEA },
1114
+ { "rightpointer", 0xAEB },
1115
+ { "club", 0xAEC },
1116
+ { "diamond", 0xAED },
1117
+ { "heart", 0xAEE },
1118
+ { "maltesecross", 0xAF0 },
1119
+ { "dagger", 0xAF1 },
1120
+ { "doubledagger", 0xAF2 },
1121
+ { "checkmark", 0xAF3 },
1122
+ { "ballotcross", 0xAF4 },
1123
+ { "musicalsharp", 0xAF5 },
1124
+ { "musicalflat", 0xAF6 },
1125
+ { "malesymbol", 0xAF7 },
1126
+ { "femalesymbol", 0xAF8 },
1127
+ { "telephone", 0xAF9 },
1128
+ { "telephonerecorder", 0xAFA },
1129
+ { "phonographcopyright", 0xAFB },
1130
+ { "caret", 0xAFC },
1131
+ { "singlelowquotemark", 0xAFD },
1132
+ { "doublelowquotemark", 0xAFE },
1133
+ { "cursor", 0xAFF },
1134
+ { "leftcaret", 0xBA3 },
1135
+ { "rightcaret", 0xBA6 },
1136
+ { "downcaret", 0xBA8 },
1137
+ { "upcaret", 0xBA9 },
1138
+ { "overbar", 0xBC0 },
1139
+ { "downtack", 0xBC2 },
1140
+ { "upshoe", 0xBC3 },
1141
+ { "downstile", 0xBC4 },
1142
+ { "underbar", 0xBC6 },
1143
+ { "jot", 0xBCA },
1144
+ { "quad", 0xBCC },
1145
+ { "uptack", 0xBCE },
1146
+ { "circle", 0xBCF },
1147
+ { "upstile", 0xBD3 },
1148
+ { "downshoe", 0xBD6 },
1149
+ { "rightshoe", 0xBD8 },
1150
+ { "leftshoe", 0xBDA },
1151
+ { "lefttack", 0xBDC },
1152
+ { "righttack", 0xBFC },
1153
+ { "hebrew_doublelowline", 0xCDF },
1154
+ { "hebrew_aleph", 0xCE0 },
1155
+ { "hebrew_bet", 0xCE1 },
1156
+ { "hebrew_beth", 0xCE1 },
1157
+ { "hebrew_gimel", 0xCE2 },
1158
+ { "hebrew_gimmel", 0xCE2 },
1159
+ { "hebrew_dalet", 0xCE3 },
1160
+ { "hebrew_daleth", 0xCE3 },
1161
+ { "hebrew_he", 0xCE4 },
1162
+ { "hebrew_waw", 0xCE5 },
1163
+ { "hebrew_zain", 0xCE6 },
1164
+ { "hebrew_zayin", 0xCE6 },
1165
+ { "hebrew_chet", 0xCE7 },
1166
+ { "hebrew_het", 0xCE7 },
1167
+ { "hebrew_tet", 0xCE8 },
1168
+ { "hebrew_teth", 0xCE8 },
1169
+ { "hebrew_yod", 0xCE9 },
1170
+ { "hebrew_finalkaph", 0xCEA },
1171
+ { "hebrew_kaph", 0xCEB },
1172
+ { "hebrew_lamed", 0xCEC },
1173
+ { "hebrew_finalmem", 0xCED },
1174
+ { "hebrew_mem", 0xCEE },
1175
+ { "hebrew_finalnun", 0xCEF },
1176
+ { "hebrew_nun", 0xCF0 },
1177
+ { "hebrew_samech", 0xCF1 },
1178
+ { "hebrew_samekh", 0xCF1 },
1179
+ { "hebrew_ayin", 0xCF2 },
1180
+ { "hebrew_finalpe", 0xCF3 },
1181
+ { "hebrew_pe", 0xCF4 },
1182
+ { "hebrew_finalzade", 0xCF5 },
1183
+ { "hebrew_finalzadi", 0xCF5 },
1184
+ { "hebrew_zade", 0xCF6 },
1185
+ { "hebrew_zadi", 0xCF6 },
1186
+ { "hebrew_qoph", 0xCF7 },
1187
+ { "hebrew_kuf", 0xCF7 },
1188
+ { "hebrew_resh", 0xCF8 },
1189
+ { "hebrew_shin", 0xCF9 },
1190
+ { "hebrew_taw", 0xCFA },
1191
+ { "hebrew_taf", 0xCFA },
1192
+ { "Thai_kokai", 0xDA1 },
1193
+ { "Thai_khokhai", 0xDA2 },
1194
+ { "Thai_khokhuat", 0xDA3 },
1195
+ { "Thai_khokhwai", 0xDA4 },
1196
+ { "Thai_khokhon", 0xDA5 },
1197
+ { "Thai_khorakhang", 0xDA6 },
1198
+ { "Thai_ngongu", 0xDA7 },
1199
+ { "Thai_chochan", 0xDA8 },
1200
+ { "Thai_choching", 0xDA9 },
1201
+ { "Thai_chochang", 0xDAA },
1202
+ { "Thai_soso", 0xDAB },
1203
+ { "Thai_chochoe", 0xDAC },
1204
+ { "Thai_yoying", 0xDAD },
1205
+ { "Thai_dochada", 0xDAE },
1206
+ { "Thai_topatak", 0xDAF },
1207
+ { "Thai_thothan", 0xDB0 },
1208
+ { "Thai_thonangmontho", 0xDB1 },
1209
+ { "Thai_thophuthao", 0xDB2 },
1210
+ { "Thai_nonen", 0xDB3 },
1211
+ { "Thai_dodek", 0xDB4 },
1212
+ { "Thai_totao", 0xDB5 },
1213
+ { "Thai_thothung", 0xDB6 },
1214
+ { "Thai_thothahan", 0xDB7 },
1215
+ { "Thai_thothong", 0xDB8 },
1216
+ { "Thai_nonu", 0xDB9 },
1217
+ { "Thai_bobaimai", 0xDBA },
1218
+ { "Thai_popla", 0xDBB },
1219
+ { "Thai_phophung", 0xDBC },
1220
+ { "Thai_fofa", 0xDBD },
1221
+ { "Thai_phophan", 0xDBE },
1222
+ { "Thai_fofan", 0xDBF },
1223
+ { "Thai_phosamphao", 0xDC0 },
1224
+ { "Thai_moma", 0xDC1 },
1225
+ { "Thai_yoyak", 0xDC2 },
1226
+ { "Thai_rorua", 0xDC3 },
1227
+ { "Thai_ru", 0xDC4 },
1228
+ { "Thai_loling", 0xDC5 },
1229
+ { "Thai_lu", 0xDC6 },
1230
+ { "Thai_wowaen", 0xDC7 },
1231
+ { "Thai_sosala", 0xDC8 },
1232
+ { "Thai_sorusi", 0xDC9 },
1233
+ { "Thai_sosua", 0xDCA },
1234
+ { "Thai_hohip", 0xDCB },
1235
+ { "Thai_lochula", 0xDCC },
1236
+ { "Thai_oang", 0xDCD },
1237
+ { "Thai_honokhuk", 0xDCE },
1238
+ { "Thai_paiyannoi", 0xDCF },
1239
+ { "Thai_saraa", 0xDD0 },
1240
+ { "Thai_maihanakat", 0xDD1 },
1241
+ { "Thai_saraaa", 0xDD2 },
1242
+ { "Thai_saraam", 0xDD3 },
1243
+ { "Thai_sarai", 0xDD4 },
1244
+ { "Thai_saraii", 0xDD5 },
1245
+ { "Thai_saraue", 0xDD6 },
1246
+ { "Thai_sarauee", 0xDD7 },
1247
+ { "Thai_sarau", 0xDD8 },
1248
+ { "Thai_sarauu", 0xDD9 },
1249
+ { "Thai_phinthu", 0xDDA },
1250
+ { "Thai_maihanakat_maitho", 0xDDE },
1251
+ { "Thai_baht", 0xDDF },
1252
+ { "Thai_sarae", 0xDE0 },
1253
+ { "Thai_saraae", 0xDE1 },
1254
+ { "Thai_sarao", 0xDE2 },
1255
+ { "Thai_saraaimaimuan", 0xDE3 },
1256
+ { "Thai_saraaimaimalai", 0xDE4 },
1257
+ { "Thai_lakkhangyao", 0xDE5 },
1258
+ { "Thai_maiyamok", 0xDE6 },
1259
+ { "Thai_maitaikhu", 0xDE7 },
1260
+ { "Thai_maiek", 0xDE8 },
1261
+ { "Thai_maitho", 0xDE9 },
1262
+ { "Thai_maitri", 0xDEA },
1263
+ { "Thai_maichattawa", 0xDEB },
1264
+ { "Thai_thanthakhat", 0xDEC },
1265
+ { "Thai_nikhahit", 0xDED },
1266
+ { "Thai_leksun", 0xDF0 },
1267
+ { "Thai_leknung", 0xDF1 },
1268
+ { "Thai_leksong", 0xDF2 },
1269
+ { "Thai_leksam", 0xDF3 },
1270
+ { "Thai_leksi", 0xDF4 },
1271
+ { "Thai_lekha", 0xDF5 },
1272
+ { "Thai_lekhok", 0xDF6 },
1273
+ { "Thai_lekchet", 0xDF7 },
1274
+ { "Thai_lekpaet", 0xDF8 },
1275
+ { "Thai_lekkao", 0xDF9 },
1276
+ { "Hangul_Kiyeog", 0xEA1 },
1277
+ { "Hangul_SsangKiyeog", 0xEA2 },
1278
+ { "Hangul_KiyeogSios", 0xEA3 },
1279
+ { "Hangul_Nieun", 0xEA4 },
1280
+ { "Hangul_NieunJieuj", 0xEA5 },
1281
+ { "Hangul_NieunHieuh", 0xEA6 },
1282
+ { "Hangul_Dikeud", 0xEA7 },
1283
+ { "Hangul_SsangDikeud", 0xEA8 },
1284
+ { "Hangul_Rieul", 0xEA9 },
1285
+ { "Hangul_RieulKiyeog", 0xEAA },
1286
+ { "Hangul_RieulMieum", 0xEAB },
1287
+ { "Hangul_RieulPieub", 0xEAC },
1288
+ { "Hangul_RieulSios", 0xEAD },
1289
+ { "Hangul_RieulTieut", 0xEAE },
1290
+ { "Hangul_RieulPhieuf", 0xEAF },
1291
+ { "Hangul_RieulHieuh", 0xEB0 },
1292
+ { "Hangul_Mieum", 0xEB1 },
1293
+ { "Hangul_Pieub", 0xEB2 },
1294
+ { "Hangul_SsangPieub", 0xEB3 },
1295
+ { "Hangul_PieubSios", 0xEB4 },
1296
+ { "Hangul_Sios", 0xEB5 },
1297
+ { "Hangul_SsangSios", 0xEB6 },
1298
+ { "Hangul_Ieung", 0xEB7 },
1299
+ { "Hangul_Jieuj", 0xEB8 },
1300
+ { "Hangul_SsangJieuj", 0xEB9 },
1301
+ { "Hangul_Cieuc", 0xEBA },
1302
+ { "Hangul_Khieuq", 0xEBB },
1303
+ { "Hangul_Tieut", 0xEBC },
1304
+ { "Hangul_Phieuf", 0xEBD },
1305
+ { "Hangul_Hieuh", 0xEBE },
1306
+ { "Hangul_A", 0xEBF },
1307
+ { "Hangul_AE", 0xEC0 },
1308
+ { "Hangul_YA", 0xEC1 },
1309
+ { "Hangul_YAE", 0xEC2 },
1310
+ { "Hangul_EO", 0xEC3 },
1311
+ { "Hangul_E", 0xEC4 },
1312
+ { "Hangul_YEO", 0xEC5 },
1313
+ { "Hangul_YE", 0xEC6 },
1314
+ { "Hangul_O", 0xEC7 },
1315
+ { "Hangul_WA", 0xEC8 },
1316
+ { "Hangul_WAE", 0xEC9 },
1317
+ { "Hangul_OE", 0xECA },
1318
+ { "Hangul_YO", 0xECB },
1319
+ { "Hangul_U", 0xECC },
1320
+ { "Hangul_WEO", 0xECD },
1321
+ { "Hangul_WE", 0xECE },
1322
+ { "Hangul_WI", 0xECF },
1323
+ { "Hangul_YU", 0xED0 },
1324
+ { "Hangul_EU", 0xED1 },
1325
+ { "Hangul_YI", 0xED2 },
1326
+ { "Hangul_I", 0xED3 },
1327
+ { "Hangul_J_Kiyeog", 0xED4 },
1328
+ { "Hangul_J_SsangKiyeog", 0xED5 },
1329
+ { "Hangul_J_KiyeogSios", 0xED6 },
1330
+ { "Hangul_J_Nieun", 0xED7 },
1331
+ { "Hangul_J_NieunJieuj", 0xED8 },
1332
+ { "Hangul_J_NieunHieuh", 0xED9 },
1333
+ { "Hangul_J_Dikeud", 0xEDA },
1334
+ { "Hangul_J_Rieul", 0xEDB },
1335
+ { "Hangul_J_RieulKiyeog", 0xEDC },
1336
+ { "Hangul_J_RieulMieum", 0xEDD },
1337
+ { "Hangul_J_RieulPieub", 0xEDE },
1338
+ { "Hangul_J_RieulSios", 0xEDF },
1339
+ { "Hangul_J_RieulTieut", 0xEE0 },
1340
+ { "Hangul_J_RieulPhieuf", 0xEE1 },
1341
+ { "Hangul_J_RieulHieuh", 0xEE2 },
1342
+ { "Hangul_J_Mieum", 0xEE3 },
1343
+ { "Hangul_J_Pieub", 0xEE4 },
1344
+ { "Hangul_J_PieubSios", 0xEE5 },
1345
+ { "Hangul_J_Sios", 0xEE6 },
1346
+ { "Hangul_J_SsangSios", 0xEE7 },
1347
+ { "Hangul_J_Ieung", 0xEE8 },
1348
+ { "Hangul_J_Jieuj", 0xEE9 },
1349
+ { "Hangul_J_Cieuc", 0xEEA },
1350
+ { "Hangul_J_Khieuq", 0xEEB },
1351
+ { "Hangul_J_Tieut", 0xEEC },
1352
+ { "Hangul_J_Phieuf", 0xEED },
1353
+ { "Hangul_J_Hieuh", 0xEEE },
1354
+ { "Hangul_RieulYeorinHieuh", 0xEEF },
1355
+ { "Hangul_SunkyeongeumMieum", 0xEF0 },
1356
+ { "Hangul_SunkyeongeumPieub", 0xEF1 },
1357
+ { "Hangul_PanSios", 0xEF2 },
1358
+ { "Hangul_KkogjiDalrinIeung", 0xEF3 },
1359
+ { "Hangul_SunkyeongeumPhieuf", 0xEF4 },
1360
+ { "Hangul_YeorinHieuh", 0xEF5 },
1361
+ { "Hangul_AraeA", 0xEF6 },
1362
+ { "Hangul_AraeAE", 0xEF7 },
1363
+ { "Hangul_J_PanSios", 0xEF8 },
1364
+ { "Hangul_J_KkogjiDalrinIeung", 0xEF9 },
1365
+ { "Hangul_J_YeorinHieuh", 0xEFA },
1366
+ { "Korean_Won", 0xEFF },
1367
+ { "XF86ModeLock", 0x1008FF01 },
1368
+ { "XF86MonBrightnessUp", 0x1008FF02 },
1369
+ { "XF86MonBrightnessDown", 0x1008FF03 },
1370
+ { "XF86KbdLightOnOff", 0x1008FF04 },
1371
+ { "XF86KbdBrightnessUp", 0x1008FF05 },
1372
+ { "XF86KbdBrightnessDown", 0x1008FF06 },
1373
+ { "XF86MonBrightnessCycle", 0x1008FF07 },
1374
+ { "XF86Standby", 0x1008FF10 },
1375
+ { "XF86AudioLowerVolume", 0x1008FF11 },
1376
+ { "XF86AudioMute", 0x1008FF12 },
1377
+ { "XF86AudioRaiseVolume", 0x1008FF13 },
1378
+ { "XF86AudioPlay", 0x1008FF14 },
1379
+ { "XF86AudioStop", 0x1008FF15 },
1380
+ { "XF86AudioPrev", 0x1008FF16 },
1381
+ { "XF86AudioNext", 0x1008FF17 },
1382
+ { "XF86HomePage", 0x1008FF18 },
1383
+ { "XF86Mail", 0x1008FF19 },
1384
+ { "XF86Start", 0x1008FF1A },
1385
+ { "XF86Search", 0x1008FF1B },
1386
+ { "XF86AudioRecord", 0x1008FF1C },
1387
+ { "XF86Calculator", 0x1008FF1D },
1388
+ { "XF86Memo", 0x1008FF1E },
1389
+ { "XF86ToDoList", 0x1008FF1F },
1390
+ { "XF86Calendar", 0x1008FF20 },
1391
+ { "XF86PowerDown", 0x1008FF21 },
1392
+ { "XF86ContrastAdjust", 0x1008FF22 },
1393
+ { "XF86RockerUp", 0x1008FF23 },
1394
+ { "XF86RockerDown", 0x1008FF24 },
1395
+ { "XF86RockerEnter", 0x1008FF25 },
1396
+ { "XF86Back", 0x1008FF26 },
1397
+ { "XF86Forward", 0x1008FF27 },
1398
+ { "XF86Stop", 0x1008FF28 },
1399
+ { "XF86Refresh", 0x1008FF29 },
1400
+ { "XF86PowerOff", 0x1008FF2A },
1401
+ { "XF86WakeUp", 0x1008FF2B },
1402
+ { "XF86Eject", 0x1008FF2C },
1403
+ { "XF86ScreenSaver", 0x1008FF2D },
1404
+ { "XF86WWW", 0x1008FF2E },
1405
+ { "XF86Sleep", 0x1008FF2F },
1406
+ { "XF86Favorites", 0x1008FF30 },
1407
+ { "XF86AudioPause", 0x1008FF31 },
1408
+ { "XF86AudioMedia", 0x1008FF32 },
1409
+ { "XF86MyComputer", 0x1008FF33 },
1410
+ { "XF86VendorHome", 0x1008FF34 },
1411
+ { "XF86LightBulb", 0x1008FF35 },
1412
+ { "XF86Shop", 0x1008FF36 },
1413
+ { "XF86History", 0x1008FF37 },
1414
+ { "XF86OpenURL", 0x1008FF38 },
1415
+ { "XF86AddFavorite", 0x1008FF39 },
1416
+ { "XF86HotLinks", 0x1008FF3A },
1417
+ { "XF86BrightnessAdjust", 0x1008FF3B },
1418
+ { "XF86Finance", 0x1008FF3C },
1419
+ { "XF86Community", 0x1008FF3D },
1420
+ { "XF86AudioRewind", 0x1008FF3E },
1421
+ { "XF86BackForward", 0x1008FF3F },
1422
+ { "XF86Launch0", 0x1008FF40 },
1423
+ { "XF86Launch1", 0x1008FF41 },
1424
+ { "XF86Launch2", 0x1008FF42 },
1425
+ { "XF86Launch3", 0x1008FF43 },
1426
+ { "XF86Launch4", 0x1008FF44 },
1427
+ { "XF86Launch5", 0x1008FF45 },
1428
+ { "XF86Launch6", 0x1008FF46 },
1429
+ { "XF86Launch7", 0x1008FF47 },
1430
+ { "XF86Launch8", 0x1008FF48 },
1431
+ { "XF86Launch9", 0x1008FF49 },
1432
+ { "XF86LaunchA", 0x1008FF4A },
1433
+ { "XF86LaunchB", 0x1008FF4B },
1434
+ { "XF86LaunchC", 0x1008FF4C },
1435
+ { "XF86LaunchD", 0x1008FF4D },
1436
+ { "XF86LaunchE", 0x1008FF4E },
1437
+ { "XF86LaunchF", 0x1008FF4F },
1438
+ { "XF86ApplicationLeft", 0x1008FF50 },
1439
+ { "XF86ApplicationRight", 0x1008FF51 },
1440
+ { "XF86Book", 0x1008FF52 },
1441
+ { "XF86CD", 0x1008FF53 },
1442
+ { "XF86Calculater", 0x1008FF54 },
1443
+ { "XF86Clear", 0x1008FF55 },
1444
+ { "XF86Close", 0x1008FF56 },
1445
+ { "XF86Copy", 0x1008FF57 },
1446
+ { "XF86Cut", 0x1008FF58 },
1447
+ { "XF86Display", 0x1008FF59 },
1448
+ { "XF86DOS", 0x1008FF5A },
1449
+ { "XF86Documents", 0x1008FF5B },
1450
+ { "XF86Excel", 0x1008FF5C },
1451
+ { "XF86Explorer", 0x1008FF5D },
1452
+ { "XF86Game", 0x1008FF5E },
1453
+ { "XF86Go", 0x1008FF5F },
1454
+ { "XF86iTouch", 0x1008FF60 },
1455
+ { "XF86LogOff", 0x1008FF61 },
1456
+ { "XF86Market", 0x1008FF62 },
1457
+ { "XF86Meeting", 0x1008FF63 },
1458
+ { "XF86MenuKB", 0x1008FF65 },
1459
+ { "XF86MenuPB", 0x1008FF66 },
1460
+ { "XF86MySites", 0x1008FF67 },
1461
+ { "XF86New", 0x1008FF68 },
1462
+ { "XF86News", 0x1008FF69 },
1463
+ { "XF86OfficeHome", 0x1008FF6A },
1464
+ { "XF86Open", 0x1008FF6B },
1465
+ { "XF86Option", 0x1008FF6C },
1466
+ { "XF86Paste", 0x1008FF6D },
1467
+ { "XF86Phone", 0x1008FF6E },
1468
+ { "XF86Q", 0x1008FF70 },
1469
+ { "XF86Reply", 0x1008FF72 },
1470
+ { "XF86Reload", 0x1008FF73 },
1471
+ { "XF86RotateWindows", 0x1008FF74 },
1472
+ { "XF86RotationPB", 0x1008FF75 },
1473
+ { "XF86RotationKB", 0x1008FF76 },
1474
+ { "XF86Save", 0x1008FF77 },
1475
+ { "XF86ScrollUp", 0x1008FF78 },
1476
+ { "XF86ScrollDown", 0x1008FF79 },
1477
+ { "XF86ScrollClick", 0x1008FF7A },
1478
+ { "XF86Send", 0x1008FF7B },
1479
+ { "XF86Spell", 0x1008FF7C },
1480
+ { "XF86SplitScreen", 0x1008FF7D },
1481
+ { "XF86Support", 0x1008FF7E },
1482
+ { "XF86TaskPane", 0x1008FF7F },
1483
+ { "XF86Terminal", 0x1008FF80 },
1484
+ { "XF86Tools", 0x1008FF81 },
1485
+ { "XF86Travel", 0x1008FF82 },
1486
+ { "XF86UserPB", 0x1008FF84 },
1487
+ { "XF86User1KB", 0x1008FF85 },
1488
+ { "XF86User2KB", 0x1008FF86 },
1489
+ { "XF86Video", 0x1008FF87 },
1490
+ { "XF86WheelButton", 0x1008FF88 },
1491
+ { "XF86Word", 0x1008FF89 },
1492
+ { "XF86Xfer", 0x1008FF8A },
1493
+ { "XF86ZoomIn", 0x1008FF8B },
1494
+ { "XF86ZoomOut", 0x1008FF8C },
1495
+ { "XF86Away", 0x1008FF8D },
1496
+ { "XF86Messenger", 0x1008FF8E },
1497
+ { "XF86WebCam", 0x1008FF8F },
1498
+ { "XF86MailForward", 0x1008FF90 },
1499
+ { "XF86Pictures", 0x1008FF91 },
1500
+ { "XF86Music", 0x1008FF92 },
1501
+ { "XF86Battery", 0x1008FF93 },
1502
+ { "XF86Bluetooth", 0x1008FF94 },
1503
+ { "XF86WLAN", 0x1008FF95 },
1504
+ { "XF86UWB", 0x1008FF96 },
1505
+ { "XF86AudioForward", 0x1008FF97 },
1506
+ { "XF86AudioRepeat", 0x1008FF98 },
1507
+ { "XF86AudioRandomPlay", 0x1008FF99 },
1508
+ { "XF86Subtitle", 0x1008FF9A },
1509
+ { "XF86AudioCycleTrack", 0x1008FF9B },
1510
+ { "XF86CycleAngle", 0x1008FF9C },
1511
+ { "XF86FrameBack", 0x1008FF9D },
1512
+ { "XF86FrameForward", 0x1008FF9E },
1513
+ { "XF86Time", 0x1008FF9F },
1514
+ { "XF86Select", 0x1008FFA0 },
1515
+ { "XF86View", 0x1008FFA1 },
1516
+ { "XF86TopMenu", 0x1008FFA2 },
1517
+ { "XF86Red", 0x1008FFA3 },
1518
+ { "XF86Green", 0x1008FFA4 },
1519
+ { "XF86Yellow", 0x1008FFA5 },
1520
+ { "XF86Blue", 0x1008FFA6 },
1521
+ { "XF86Suspend", 0x1008FFA7 },
1522
+ { "XF86Hibernate", 0x1008FFA8 },
1523
+ { "XF86TouchpadToggle", 0x1008FFA9 },
1524
+ { "XF86TouchpadOn", 0x1008FFB0 },
1525
+ { "XF86TouchpadOff", 0x1008FFB1 },
1526
+ { "XF86AudioMicMute", 0x1008FFB2 },
1527
+ { "XF86Keyboard", 0x1008FFB3 },
1528
+ { "XF86WWAN", 0x1008FFB4 },
1529
+ { "XF86RFKill", 0x1008FFB5 },
1530
+ { "XF86AudioPreset", 0x1008FFB6 },
1531
+ { "XF86RotationLockToggle", 0x1008FFB7 },
1532
+ { "XF86FullScreen", 0x1008FFB8 },
1533
+ { "XF86Switch_VT_1", 0x1008FE01 },
1534
+ { "XF86Switch_VT_2", 0x1008FE02 },
1535
+ { "XF86Switch_VT_3", 0x1008FE03 },
1536
+ { "XF86Switch_VT_4", 0x1008FE04 },
1537
+ { "XF86Switch_VT_5", 0x1008FE05 },
1538
+ { "XF86Switch_VT_6", 0x1008FE06 },
1539
+ { "XF86Switch_VT_7", 0x1008FE07 },
1540
+ { "XF86Switch_VT_8", 0x1008FE08 },
1541
+ { "XF86Switch_VT_9", 0x1008FE09 },
1542
+ { "XF86Switch_VT_10", 0x1008FE0A },
1543
+ { "XF86Switch_VT_11", 0x1008FE0B },
1544
+ { "XF86Switch_VT_12", 0x1008FE0C },
1545
+ { "XF86Ungrab", 0x1008FE20 },
1546
+ { "XF86ClearGrab", 0x1008FE21 },
1547
+ { "XF86Next_VMode", 0x1008FE22 },
1548
+ { "XF86Prev_VMode", 0x1008FE23 },
1549
+ { "XF86LogWindowTree", 0x1008FE24 },
1550
+ { "XF86LogGrabInfo", 0x1008FE25 },
1551
+ { "XF86BrightnessAuto", 0x100810F4 },
1552
+ { "XF86DisplayOff", 0x100810F5 },
1553
+ { "XF86Info", 0x10081166 },
1554
+ { "XF86AspectRatio", 0x10081177 },
1555
+ { "XF86DVD", 0x10081185 },
1556
+ { "XF86Audio", 0x10081188 },
1557
+ { "XF86ChannelUp", 0x10081192 },
1558
+ { "XF86ChannelDown", 0x10081193 },
1559
+ { "XF86Break", 0x1008119B },
1560
+ { "XF86VideoPhone", 0x100811A0 },
1561
+ { "XF86ZoomReset", 0x100811A4 },
1562
+ { "XF86Editor", 0x100811A6 },
1563
+ { "XF86GraphicsEditor", 0x100811A8 },
1564
+ { "XF86Presentation", 0x100811A9 },
1565
+ { "XF86Database", 0x100811AA },
1566
+ { "XF86Voicemail", 0x100811AC },
1567
+ { "XF86Addressbook", 0x100811AD },
1568
+ { "XF86DisplayToggle", 0x100811AF },
1569
+ { "XF86SpellCheck", 0x100811B0 },
1570
+ { "XF86ContextMenu", 0x100811B6 },
1571
+ { "XF86MediaRepeat", 0x100811B7 },
1572
+ { "XF8610ChannelsUp", 0x100811B8 },
1573
+ { "XF8610ChannelsDown", 0x100811B9 },
1574
+ { "XF86Images", 0x100811BA },
1575
+ { "XF86NotificationCenter", 0x100811BC },
1576
+ { "XF86PickupPhone", 0x100811BD },
1577
+ { "XF86HangupPhone", 0x100811BE },
1578
+ { "XF86Fn", 0x100811D0 },
1579
+ { "XF86Fn_Esc", 0x100811D1 },
1580
+ { "XF86FnRightShift", 0x100811E5 },
1581
+ { "XF86Numeric0", 0x10081200 },
1582
+ { "XF86Numeric1", 0x10081201 },
1583
+ { "XF86Numeric2", 0x10081202 },
1584
+ { "XF86Numeric3", 0x10081203 },
1585
+ { "XF86Numeric4", 0x10081204 },
1586
+ { "XF86Numeric5", 0x10081205 },
1587
+ { "XF86Numeric6", 0x10081206 },
1588
+ { "XF86Numeric7", 0x10081207 },
1589
+ { "XF86Numeric8", 0x10081208 },
1590
+ { "XF86Numeric9", 0x10081209 },
1591
+ { "XF86NumericStar", 0x1008120A },
1592
+ { "XF86NumericPound", 0x1008120B },
1593
+ { "XF86NumericA", 0x1008120C },
1594
+ { "XF86NumericB", 0x1008120D },
1595
+ { "XF86NumericC", 0x1008120E },
1596
+ { "XF86NumericD", 0x1008120F },
1597
+ { "XF86CameraFocus", 0x10081210 },
1598
+ { "XF86WPSButton", 0x10081211 },
1599
+ { "XF86CameraZoomIn", 0x10081215 },
1600
+ { "XF86CameraZoomOut", 0x10081216 },
1601
+ { "XF86CameraUp", 0x10081217 },
1602
+ { "XF86CameraDown", 0x10081218 },
1603
+ { "XF86CameraLeft", 0x10081219 },
1604
+ { "XF86CameraRight", 0x1008121A },
1605
+ { "XF86AttendantOn", 0x1008121B },
1606
+ { "XF86AttendantOff", 0x1008121C },
1607
+ { "XF86AttendantToggle", 0x1008121D },
1608
+ { "XF86LightsToggle", 0x1008121E },
1609
+ { "XF86ALSToggle", 0x10081230 },
1610
+ { "XF86Buttonconfig", 0x10081240 },
1611
+ { "XF86Taskmanager", 0x10081241 },
1612
+ { "XF86Journal", 0x10081242 },
1613
+ { "XF86ControlPanel", 0x10081243 },
1614
+ { "XF86AppSelect", 0x10081244 },
1615
+ { "XF86Screensaver", 0x10081245 },
1616
+ { "XF86VoiceCommand", 0x10081246 },
1617
+ { "XF86Assistant", 0x10081247 },
1618
+ { "XF86EmojiPicker", 0x10081249 },
1619
+ { "XF86Dictate", 0x1008124A },
1620
+ { "XF86BrightnessMin", 0x10081250 },
1621
+ { "XF86BrightnessMax", 0x10081251 },
1622
+ { "XF86KbdInputAssistPrev", 0x10081260 },
1623
+ { "XF86KbdInputAssistNext", 0x10081261 },
1624
+ { "XF86KbdInputAssistPrevgroup", 0x10081262 },
1625
+ { "XF86KbdInputAssistNextgroup", 0x10081263 },
1626
+ { "XF86KbdInputAssistAccept", 0x10081264 },
1627
+ { "XF86KbdInputAssistCancel", 0x10081265 },
1628
+ { "XF86RightUp", 0x10081266 },
1629
+ { "XF86RightDown", 0x10081267 },
1630
+ { "XF86LeftUp", 0x10081268 },
1631
+ { "XF86LeftDown", 0x10081269 },
1632
+ { "XF86RootMenu", 0x1008126A },
1633
+ { "XF86MediaTopMenu", 0x1008126B },
1634
+ { "XF86Numeric11", 0x1008126C },
1635
+ { "XF86Numeric12", 0x1008126D },
1636
+ { "XF86AudioDesc", 0x1008126E },
1637
+ { "XF863DMode", 0x1008126F },
1638
+ { "XF86NextFavorite", 0x10081270 },
1639
+ { "XF86StopRecord", 0x10081271 },
1640
+ { "XF86PauseRecord", 0x10081272 },
1641
+ { "XF86VOD", 0x10081273 },
1642
+ { "XF86Unmute", 0x10081274 },
1643
+ { "XF86FastReverse", 0x10081275 },
1644
+ { "XF86SlowReverse", 0x10081276 },
1645
+ { "XF86Data", 0x10081277 },
1646
+ { "XF86OnScreenKeyboard", 0x10081278 },
1647
+ { "XF86PrivacyScreenToggle", 0x10081279 },
1648
+ { "XF86SelectiveScreenshot", 0x1008127A },
1649
+ { "XF86Macro1", 0x10081290 },
1650
+ { "XF86Macro2", 0x10081291 },
1651
+ { "XF86Macro3", 0x10081292 },
1652
+ { "XF86Macro4", 0x10081293 },
1653
+ { "XF86Macro5", 0x10081294 },
1654
+ { "XF86Macro6", 0x10081295 },
1655
+ { "XF86Macro7", 0x10081296 },
1656
+ { "XF86Macro8", 0x10081297 },
1657
+ { "XF86Macro9", 0x10081298 },
1658
+ { "XF86Macro10", 0x10081299 },
1659
+ { "XF86Macro11", 0x1008129A },
1660
+ { "XF86Macro12", 0x1008129B },
1661
+ { "XF86Macro13", 0x1008129C },
1662
+ { "XF86Macro14", 0x1008129D },
1663
+ { "XF86Macro15", 0x1008129E },
1664
+ { "XF86Macro16", 0x1008129F },
1665
+ { "XF86Macro17", 0x100812A0 },
1666
+ { "XF86Macro18", 0x100812A1 },
1667
+ { "XF86Macro19", 0x100812A2 },
1668
+ { "XF86Macro20", 0x100812A3 },
1669
+ { "XF86Macro21", 0x100812A4 },
1670
+ { "XF86Macro22", 0x100812A5 },
1671
+ { "XF86Macro23", 0x100812A6 },
1672
+ { "XF86Macro24", 0x100812A7 },
1673
+ { "XF86Macro25", 0x100812A8 },
1674
+ { "XF86Macro26", 0x100812A9 },
1675
+ { "XF86Macro27", 0x100812AA },
1676
+ { "XF86Macro28", 0x100812AB },
1677
+ { "XF86Macro29", 0x100812AC },
1678
+ { "XF86Macro30", 0x100812AD },
1679
+ { "XF86MacroRecordStart", 0x100812B0 },
1680
+ { "XF86MacroRecordStop", 0x100812B1 },
1681
+ { "XF86MacroPresetCycle", 0x100812B2 },
1682
+ { "XF86MacroPreset1", 0x100812B3 },
1683
+ { "XF86MacroPreset2", 0x100812B4 },
1684
+ { "XF86MacroPreset3", 0x100812B5 },
1685
+ { "XF86KbdLcdMenu1", 0x100812B8 },
1686
+ { "XF86KbdLcdMenu2", 0x100812B9 },
1687
+ { "XF86KbdLcdMenu3", 0x100812BA },
1688
+ { "XF86KbdLcdMenu4", 0x100812BB },
1689
+ { "XF86KbdLcdMenu5", 0x100812BC },
1690
+ { "SunFA_Grave", 0x1005FF00 },
1691
+ { "SunFA_Circum", 0x1005FF01 },
1692
+ { "SunFA_Tilde", 0x1005FF02 },
1693
+ { "SunFA_Acute", 0x1005FF03 },
1694
+ { "SunFA_Diaeresis", 0x1005FF04 },
1695
+ { "SunFA_Cedilla", 0x1005FF05 },
1696
+ { "SunF36", 0x1005FF10 },
1697
+ { "SunF37", 0x1005FF11 },
1698
+ { "SunSys_Req", 0x1005FF60 },
1699
+ { "SunProps", 0x1005FF70 },
1700
+ { "SunFront", 0x1005FF71 },
1701
+ { "SunCopy", 0x1005FF72 },
1702
+ { "SunOpen", 0x1005FF73 },
1703
+ { "SunPaste", 0x1005FF74 },
1704
+ { "SunCut", 0x1005FF75 },
1705
+ { "SunPowerSwitch", 0x1005FF76 },
1706
+ { "SunAudioLowerVolume", 0x1005FF77 },
1707
+ { "SunAudioMute", 0x1005FF78 },
1708
+ { "SunAudioRaiseVolume", 0x1005FF79 },
1709
+ { "SunVideoDegauss", 0x1005FF7A },
1710
+ { "SunVideoLowerBrightness", 0x1005FF7B },
1711
+ { "SunVideoRaiseBrightness", 0x1005FF7C },
1712
+ { "SunPowerSwitchShift", 0x1005FF7D },
llava_next/include/tclThread.h ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * --------------------------------------------------------------------------
3
+ * tclthread.h --
4
+ *
5
+ * Global header file for the thread extension.
6
+ *
7
+ * Copyright (c) 2002 ActiveState Corporation.
8
+ * Copyright (c) 2002 by Zoran Vasiljevic.
9
+ *
10
+ * See the file "license.terms" for information on usage and redistribution
11
+ * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12
+ * ---------------------------------------------------------------------------
13
+ */
14
+
15
+ /*
16
+ * Thread extension version numbers are not stored here
17
+ * because this isn't a public export file.
18
+ */
19
+
20
+ #ifndef _TCL_THREAD_H_
21
+ #define _TCL_THREAD_H_
22
+
23
+ #include <tcl.h>
24
+
25
+ /*
26
+ * Exported from threadCmd.c file.
27
+ */
28
+ #ifdef __cplusplus
29
+ extern "C" {
30
+ #endif
31
+ DLLEXPORT int Thread_Init(Tcl_Interp *interp);
32
+ #ifdef __cplusplus
33
+ }
34
+ #endif
35
+
36
+ #endif /* _TCL_THREAD_H_ */
llava_next/include/tdbc.h ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * tdbc.h --
3
+ *
4
+ * Declarations of the public API for Tcl DataBase Connectivity (TDBC)
5
+ *
6
+ * Copyright (c) 2006 by Kevin B. Kenny
7
+ *
8
+ * See the file "license.terms" for information on usage and redistribution of
9
+ * this file, and for a DISCLAIMER OF ALL WARRANTIES.
10
+ *
11
+ * RCS: @(#) $Id$
12
+ *
13
+ *-----------------------------------------------------------------------------
14
+ */
15
+
16
+ #ifndef TDBC_H_INCLUDED
17
+ #define TDBC_H_INCLUDED 1
18
+
19
+ #include <tcl.h>
20
+
21
+ #ifndef TDBCAPI
22
+ # if defined(BUILD_tdbc)
23
+ # define TDBCAPI MODULE_SCOPE
24
+ # else
25
+ # define TDBCAPI extern
26
+ # undef USE_TDBC_STUBS
27
+ # define USE_TDBC_STUBS 1
28
+ # endif
29
+ #endif
30
+
31
+ #ifdef __cplusplus
32
+ extern "C" {
33
+ #endif
34
+
35
+ #if defined(BUILD_tdbc)
36
+ DLLEXPORT int Tdbc_Init(Tcl_Interp *interp);
37
+ #elif defined(STATIC_BUILD)
38
+ extern int Tdbc_Init(Tcl_Interp* interp);
39
+ #else
40
+ DLLIMPORT int Tdbc_Init(Tcl_Interp* interp);
41
+ #endif
42
+
43
+ #define Tdbc_InitStubs(interp) TdbcInitializeStubs(interp, \
44
+ TDBC_VERSION, TDBC_STUBS_EPOCH, TDBC_STUBS_REVISION)
45
+ #if defined(USE_TDBC_STUBS)
46
+ TDBCAPI const char* TdbcInitializeStubs(
47
+ Tcl_Interp* interp, const char* version, int epoch, int revision);
48
+ #else
49
+ # define TdbcInitializeStubs(interp, version, epoch, revision) \
50
+ (Tcl_PkgRequire(interp, "tdbc", version))
51
+ #endif
52
+
53
+ #ifdef __cplusplus
54
+ }
55
+ #endif
56
+
57
+ /*
58
+ * TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that
59
+ * appear near the top of configure.ac.
60
+ */
61
+
62
+ #define TDBC_VERSION "1.1"
63
+ #define TDBC_PATCHLEVEL "1.1.7"
64
+
65
+ /*
66
+ * Include the Stubs declarations for the public API, generated from
67
+ * tdbc.decls.
68
+ */
69
+
70
+ #include "tdbcDecls.h"
71
+
72
+ #endif
73
+
74
+ /*
75
+ * Local Variables:
76
+ * mode: c
77
+ * c-basic-offset: 4
78
+ * fill-column: 78
79
+ * End:
80
+ */
llava_next/include/term_entry.h ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /****************************************************************************
2
+ * Copyright 2018-2021,2022 Thomas E. Dickey *
3
+ * Copyright 1998-2015,2017 Free Software Foundation, Inc. *
4
+ * *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a *
6
+ * copy of this software and associated documentation files (the *
7
+ * "Software"), to deal in the Software without restriction, including *
8
+ * without limitation the rights to use, copy, modify, merge, publish, *
9
+ * distribute, distribute with modifications, sublicense, and/or sell *
10
+ * copies of the Software, and to permit persons to whom the Software is *
11
+ * furnished to do so, subject to the following conditions: *
12
+ * *
13
+ * The above copyright notice and this permission notice shall be included *
14
+ * in all copies or substantial portions of the Software. *
15
+ * *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19
+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23
+ * *
24
+ * Except as contained in this notice, the name(s) of the above copyright *
25
+ * holders shall not be used in advertising or otherwise to promote the *
26
+ * sale, use or other dealings in this Software without prior written *
27
+ * authorization. *
28
+ ****************************************************************************/
29
+
30
+ /****************************************************************************
31
+ * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
32
+ * and: Eric S. Raymond <esr@snark.thyrsus.com> *
33
+ * and: Thomas E. Dickey 1998-on *
34
+ ****************************************************************************/
35
+
36
+ /* $Id: term_entry.h,v 1.63 2022/09/24 15:04:59 tom Exp $ */
37
+
38
+ /*
39
+ * term_entry.h -- interface to entry-manipulation code
40
+ */
41
+
42
+ #ifndef NCURSES_TERM_ENTRY_H_incl
43
+ #define NCURSES_TERM_ENTRY_H_incl 1
44
+ /* *INDENT-OFF* */
45
+
46
+ #ifdef __cplusplus
47
+ extern "C" {
48
+ #endif
49
+
50
+ #include <ncursesw/curses.h>
51
+ #include <ncursesw/term.h>
52
+
53
+ /*
54
+ * These macros may be used by programs that know about TERMTYPE:
55
+ */
56
+ #if NCURSES_XNAMES
57
+ #define NUM_BOOLEANS(tp) (tp)->num_Booleans
58
+ #define NUM_NUMBERS(tp) (tp)->num_Numbers
59
+ #define NUM_STRINGS(tp) (tp)->num_Strings
60
+ #define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i]
61
+ #else
62
+ #define NUM_BOOLEANS(tp) BOOLCOUNT
63
+ #define NUM_NUMBERS(tp) NUMCOUNT
64
+ #define NUM_STRINGS(tp) STRCOUNT
65
+ #define EXT_NAMES(tp,i,limit,index,table) table[i]
66
+ #endif
67
+
68
+ #define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings)
69
+
70
+ #define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++)
71
+ #define for_each_number(n,tp) for(n = 0; n < NUM_NUMBERS(tp); n++)
72
+ #define for_each_string(n,tp) for(n = 0; n < NUM_STRINGS(tp); n++)
73
+
74
+ #if NCURSES_XNAMES
75
+ #define for_each_ext_boolean(n,tp) for(n = BOOLCOUNT; (int) n < (int) NUM_BOOLEANS(tp); n++)
76
+ #define for_each_ext_number(n,tp) for(n = NUMCOUNT; (int) n < (int) NUM_NUMBERS(tp); n++)
77
+ #define for_each_ext_string(n,tp) for(n = STRCOUNT; (int) n < (int) NUM_STRINGS(tp); n++)
78
+ #endif
79
+
80
+ #define ExtBoolname(tp,i,names) EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Booleans)), names)
81
+ #define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)
82
+ #define ExtStrname(tp,i,names) EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)
83
+
84
+ /*
85
+ * The remaining type-definitions and macros are used only internally by the
86
+ * ncurses utilities.
87
+ */
88
+ #ifdef NCURSES_INTERNALS
89
+
90
+ /*
91
+ * see db_iterator.c - this enumeration lists the places searched for a
92
+ * terminal description and defines the order in which they are searched.
93
+ */
94
+ typedef enum {
95
+ dbdTIC = 0, /* special, used by tic when writing entry */
96
+ #if NCURSES_USE_DATABASE
97
+ dbdEnvOnce, /* the $TERMINFO environment variable */
98
+ dbdHome, /* $HOME/.terminfo */
99
+ dbdEnvList, /* the $TERMINFO_DIRS environment variable */
100
+ dbdCfgList, /* the compiled-in TERMINFO_DIRS value */
101
+ dbdCfgOnce, /* the compiled-in TERMINFO value */
102
+ #endif
103
+ #if NCURSES_USE_TERMCAP
104
+ dbdEnvOnce2, /* the $TERMCAP environment variable */
105
+ dbdEnvList2, /* the $TERMPATH environment variable */
106
+ dbdCfgList2, /* the compiled-in TERMPATH */
107
+ #endif
108
+ dbdLAST
109
+ } DBDIRS;
110
+
111
+ #define MAX_USES 32
112
+ #define MAX_CROSSLINKS 16
113
+
114
+ typedef struct entry ENTRY;
115
+
116
+ typedef struct {
117
+ char *name;
118
+ ENTRY *link;
119
+ long line;
120
+ } ENTRY_USES;
121
+
122
+ struct entry {
123
+ TERMTYPE2 tterm;
124
+ unsigned nuses;
125
+ ENTRY_USES uses[MAX_USES];
126
+ int ncrosslinks;
127
+ ENTRY *crosslinks[MAX_CROSSLINKS];
128
+ long cstart;
129
+ long cend;
130
+ long startline;
131
+ ENTRY *next;
132
+ ENTRY *last;
133
+ };
134
+
135
+ extern NCURSES_EXPORT_VAR(ENTRY *) _nc_head;
136
+ extern NCURSES_EXPORT_VAR(ENTRY *) _nc_tail;
137
+ #define for_entry_list(qp) for (qp = _nc_head; qp; qp = qp->next)
138
+ #define for_entry_list2(qp,q0) for (qp = q0; qp; qp = qp->next)
139
+
140
+ #define MAX_LINE 132
141
+
142
+ #define NULLHOOK (bool(*)(ENTRY *))0
143
+
144
+ /*
145
+ * Note that WANTED and PRESENT are not simple inverses! If a capability
146
+ * has been explicitly cancelled, it is not considered WANTED.
147
+ */
148
+ #define WANTED(s) ((s) == ABSENT_STRING)
149
+ #define PRESENT(s) (((s) != ABSENT_STRING) && ((s) != CANCELLED_STRING))
150
+
151
+ #define ANDMISSING(p,q) \
152
+ { \
153
+ if (PRESENT(p) && !PRESENT(q)) \
154
+ _nc_warning(#p " but no " #q); \
155
+ }
156
+
157
+ #define PAIRED(p,q) \
158
+ { \
159
+ if (PRESENT(q) && !PRESENT(p)) \
160
+ _nc_warning(#q " but no " #p); \
161
+ if (PRESENT(p) && !PRESENT(q)) \
162
+ _nc_warning(#p " but no " #q); \
163
+ }
164
+
165
+ /*
166
+ * These entrypoints are used only by the ncurses utilities such as tic.
167
+ */
168
+
169
+ /* alloc_entry.c: elementary allocation code */
170
+ extern NCURSES_EXPORT(ENTRY *) _nc_copy_entry (ENTRY *oldp);
171
+ extern NCURSES_EXPORT(char *) _nc_save_str (const char *const);
172
+ extern NCURSES_EXPORT(void) _nc_init_entry (ENTRY *const);
173
+ extern NCURSES_EXPORT(void) _nc_merge_entry (ENTRY *const, ENTRY *const);
174
+ extern NCURSES_EXPORT(void) _nc_wrap_entry (ENTRY *const, bool);
175
+
176
+ /* alloc_ttype.c: elementary allocation code */
177
+ extern NCURSES_EXPORT(void) _nc_align_termtype (TERMTYPE2 *, TERMTYPE2 *);
178
+
179
+ /* free_ttype.c: elementary allocation code */
180
+ extern NCURSES_EXPORT(void) _nc_free_termtype1 (TERMTYPE *);
181
+ extern NCURSES_EXPORT(void) _nc_free_termtype2 (TERMTYPE2 *);
182
+
183
+ /* lib_termcap.c: trim sgr0 string for termcap users */
184
+ extern NCURSES_EXPORT(char *) _nc_trim_sgr0 (TERMTYPE2 *);
185
+
186
+ /* parse_entry.c: entry-parsing code */
187
+ #if NCURSES_XNAMES
188
+ extern NCURSES_EXPORT_VAR(bool) _nc_user_definable;
189
+ extern NCURSES_EXPORT_VAR(bool) _nc_disable_period;
190
+ #endif
191
+ extern NCURSES_EXPORT(int) _nc_parse_entry (ENTRY *, int, bool);
192
+ extern NCURSES_EXPORT(int) _nc_capcmp (const char *, const char *);
193
+
194
+ /* write_entry.c: writing an entry to the file system */
195
+ extern NCURSES_EXPORT(void) _nc_set_writedir (const char *);
196
+ extern NCURSES_EXPORT(void) _nc_write_entry (TERMTYPE2 *const);
197
+ extern NCURSES_EXPORT(int) _nc_write_object (TERMTYPE2 *, char *, unsigned *, unsigned);
198
+
199
+ /* comp_parse.c: entry list handling */
200
+ extern NCURSES_EXPORT(void) _nc_read_entry_source (FILE*, char*, int, bool, bool (*)(ENTRY*));
201
+ extern NCURSES_EXPORT(bool) _nc_entry_match (char *, char *);
202
+ extern NCURSES_EXPORT(int) _nc_resolve_uses (bool); /* obs 20040705 */
203
+ extern NCURSES_EXPORT(int) _nc_resolve_uses2 (bool, bool);
204
+ extern NCURSES_EXPORT(void) _nc_free_entries (ENTRY *);
205
+ extern NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype)(TERMTYPE *); /* obs 20040705 */
206
+ extern NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype2)(TERMTYPE2 *, bool);
207
+
208
+ /* trace_xnames.c */
209
+ extern NCURSES_EXPORT(void) _nc_trace_xnames (TERMTYPE *);
210
+
211
+ #endif /* NCURSES_INTERNALS */
212
+
213
+ /*
214
+ * These entrypoints were used by tack before 1.08.
215
+ */
216
+
217
+ #undef NCURSES_TACK_1_08
218
+ #ifdef NCURSES_INTERNALS
219
+ #define NCURSES_TACK_1_08 /* nothing */
220
+ #else
221
+ #define NCURSES_TACK_1_08 GCC_DEPRECATED("upgrade to tack 1.08")
222
+ #endif
223
+
224
+ /* alloc_ttype.c: elementary allocation code */
225
+ extern NCURSES_EXPORT(void) _nc_copy_termtype (TERMTYPE *, const TERMTYPE *) NCURSES_TACK_1_08;
226
+
227
+ /* lib_acs.c */
228
+ extern NCURSES_EXPORT(void) _nc_init_acs (void) NCURSES_TACK_1_08; /* corresponds to traditional 'init_acs()' */
229
+
230
+ /* free_ttype.c: elementary allocation code */
231
+ extern NCURSES_EXPORT(void) _nc_free_termtype (TERMTYPE *) NCURSES_TACK_1_08;
232
+
233
+ #ifdef __cplusplus
234
+ }
235
+ #endif
236
+
237
+ /* *INDENT-ON* */
238
+
239
+ #endif /* NCURSES_TERM_ENTRY_H_incl */
llava_next/include/tkMacOSXKeysyms.h ADDED
@@ -0,0 +1,1308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * tkMacOSXKeysyms.h --
3
+ *
4
+ * Contains data used for processing key events, some of which was
5
+ * moved from tkMacOSXKeyboard.c.
6
+ *
7
+ * Copyright (c) 1990-1994 The Regents of the University of California.
8
+ * Copyright (c) 1994-1997 Sun Microsystems, Inc.
9
+ * Copyright 2001-2009, Apple Inc.
10
+ * Copyright (c) 2006-2009 Daniel A. Steffen <das@users.sourceforge.net>
11
+ * Copyright (c) 2020 Marc Culler
12
+ *
13
+ * See the file "license.terms" for information on usage and redistribution
14
+ * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
+ */
16
+
17
+ #ifndef TKMACOSXKEYSYMS_H
18
+ #define TKMACOSXKEYSYMS_H 1
19
+
20
+ /*
21
+ * This table enumerates the keys on Mac keyboards which do not represent
22
+ * letters. This is static data -- these keys do not change when the keyboard
23
+ * layout changes. The unicode representation of a special key which is not a
24
+ * modifier and does not have an ASCII code point lies in the reserved range
25
+ * 0xF700 - 0xF8FF.
26
+ *
27
+ * The table includes every key listed in Apple's documentation of Function-Key
28
+ * Unicodes which is not marked as "Not on most Macintosh keyboards", as well
29
+ * as F20, which is reported to be usable in scripts even though it does not
30
+ * appear on any Macintosh keyboard.
31
+ */
32
+
33
+ typedef struct {
34
+ int virt; /* value of [NSEvent keyCode] */
35
+ KeySym keysym; /* X11 keysym */
36
+ KeyCode keychar; /* XEvent keycode & 0xFFFF */
37
+ } KeyInfo;
38
+
39
+ static const KeyInfo keyArray[] = {
40
+ {36, XK_Return, NSNewlineCharacter},
41
+ {48, XK_Tab, NSTabCharacter},
42
+ {51, XK_BackSpace, NSDeleteCharacter},
43
+ {52, XK_Return, NSNewlineCharacter}, /* Used on some Powerbooks */
44
+ {53, XK_Escape, 0x1B},
45
+ {54, XK_Meta_R, MOD_KEYCHAR},
46
+ {55, XK_Meta_L, MOD_KEYCHAR},
47
+ {56, XK_Shift_L, MOD_KEYCHAR},
48
+ {57, XK_Caps_Lock, MOD_KEYCHAR},
49
+ {58, XK_Alt_L, MOD_KEYCHAR},
50
+ {59, XK_Control_L, MOD_KEYCHAR},
51
+ {60, XK_Shift_R, MOD_KEYCHAR},
52
+ {61, XK_Alt_R, MOD_KEYCHAR},
53
+ {62, XK_Control_R, MOD_KEYCHAR},
54
+ {63, XK_Super_L, MOD_KEYCHAR},
55
+ {64, XK_F17, NSF17FunctionKey},
56
+ {65, XK_KP_Decimal, '.'},
57
+ {67, XK_KP_Multiply, '*'},
58
+ {69, XK_KP_Add, '+'},
59
+ {71, XK_Clear, NSClearLineFunctionKey}, /* Numlock on PC */
60
+ {75, XK_KP_Divide, '/'},
61
+ {76, XK_KP_Enter, NSEnterCharacter}, /* Fn Return */
62
+ {78, XK_KP_Subtract, '-'},
63
+ {79, XK_F18, NSF18FunctionKey},
64
+ {80, XK_F19, NSF19FunctionKey},
65
+ {81, XK_KP_Equal, '='},
66
+ {82, XK_KP_0, '0'},
67
+ {83, XK_KP_1, '1'},
68
+ {84, XK_KP_2, '2'},
69
+ {85, XK_KP_3, '3'},
70
+ {86, XK_KP_4, '4'},
71
+ {87, XK_KP_5, '5'},
72
+ {88, XK_KP_6, '6'},
73
+ {89, XK_KP_7, '7'},
74
+ {90, XK_F20, NSF20FunctionKey}, /* For scripting only */
75
+ {91, XK_KP_8, '8'},
76
+ {92, XK_KP_9, '9'},
77
+ {96, XK_F5, NSF5FunctionKey},
78
+ {97, XK_F6, NSF6FunctionKey},
79
+ {98, XK_F7, NSF7FunctionKey},
80
+ {99, XK_F3, NSF3FunctionKey},
81
+ {100, XK_F8, NSF8FunctionKey},
82
+ {101, XK_F9, NSF9FunctionKey},
83
+ {103, XK_F11, NSF11FunctionKey},
84
+ {105, XK_F13, NSF13FunctionKey},
85
+ {106, XK_F16, NSF16FunctionKey},
86
+ {107, XK_F14, NSF14FunctionKey},
87
+ {109, XK_F10, NSF10FunctionKey},
88
+ {110, XK_Menu, UNKNOWN_KEYCHAR},
89
+ {111, XK_F12, NSF12FunctionKey},
90
+ {113, XK_F15, NSF15FunctionKey},
91
+ {114, XK_Help, NSHelpFunctionKey},
92
+ {115, XK_Home, NSHomeFunctionKey}, /* Fn Left */
93
+ {116, XK_Page_Up, NSPageUpFunctionKey}, /* Fn Up */
94
+ {117, XK_Delete, NSDeleteFunctionKey}, /* Fn Delete */
95
+ {118, XK_F4, NSF4FunctionKey},
96
+ {119, XK_End, NSEndFunctionKey}, /* Fn Right */
97
+ {120, XK_F2, NSF2FunctionKey},
98
+ {121, XK_Page_Down, NSPageDownFunctionKey}, /* Fn Down */
99
+ {122, XK_F1, NSF1FunctionKey},
100
+ {123, XK_Left, NSLeftArrowFunctionKey},
101
+ {124, XK_Right, NSRightArrowFunctionKey},
102
+ {125, XK_Down, NSDownArrowFunctionKey},
103
+ {126, XK_Up, NSUpArrowFunctionKey},
104
+ {0, 0, 0}
105
+ };
106
+
107
+ /*
108
+ * X11 keysyms for modifier keys, in order. This list includes keys
109
+ * which do not appear on Apple keyboards, such as Shift_Lock and
110
+ * Super_R. While most systems don't provide events for the "fn"
111
+ * function key, Apple does. We map it to Super_L when processing a
112
+ * FlagsChanged NSEvent.
113
+ */
114
+
115
+ #define NUM_MOD_KEYCODES 14
116
+ static const KeyCode modKeyArray[NUM_MOD_KEYCODES] = {
117
+ XK_Shift_L,
118
+ XK_Shift_R,
119
+ XK_Control_L,
120
+ XK_Control_R,
121
+ XK_Caps_Lock,
122
+ XK_Shift_Lock,
123
+ XK_Meta_L,
124
+ XK_Meta_R,
125
+ XK_Alt_L,
126
+ XK_Alt_R,
127
+ XK_Super_L,
128
+ XK_Super_R,
129
+ XK_Hyper_L,
130
+ XK_Hyper_R,
131
+ };
132
+
133
+ /*
134
+ * This table pairs X11 Keysyms for alphanumeric characters with the
135
+ * unicode code point for that letter.
136
+ * The data comes from http://www.cl.cam.ac.uk/~mgk25/ucs/keysyms.txt
137
+ */
138
+
139
+ typedef struct KeysymInfo {
140
+ KeySym keysym;
141
+ KeyCode keycode;
142
+ } KeysymInfo;
143
+
144
+ const KeysymInfo keysymTable[] = {
145
+ {0x0020, 0x0020}, /* space */
146
+ {0x0021, 0x0021}, /* exclam */
147
+ {0x0022, 0x0022}, /* quotedbl */
148
+ {0x0023, 0x0023}, /* numbersign */
149
+ {0x0024, 0x0024}, /* dollar */
150
+ {0x0025, 0x0025}, /* percent */
151
+ {0x0026, 0x0026}, /* ampersand */
152
+ {0x0027, 0x0027}, /* apostrophe */
153
+ {0x0028, 0x0028}, /* parenleft */
154
+ {0x0029, 0x0029}, /* parenright */
155
+ {0x002a, 0x002a}, /* asterisk */
156
+ {0x002b, 0x002b}, /* plus */
157
+ {0x002c, 0x002c}, /* comma */
158
+ {0x002d, 0x002d}, /* minus */
159
+ {0x002e, 0x002e}, /* period */
160
+ {0x002f, 0x002f}, /* slash */
161
+ {0x0030, 0x0030}, /* 0 */
162
+ {0x0031, 0x0031}, /* 1 */
163
+ {0x0032, 0x0032}, /* 2 */
164
+ {0x0033, 0x0033}, /* 3 */
165
+ {0x0034, 0x0034}, /* 4 */
166
+ {0x0035, 0x0035}, /* 5 */
167
+ {0x0036, 0x0036}, /* 6 */
168
+ {0x0037, 0x0037}, /* 7 */
169
+ {0x0038, 0x0038}, /* 8 */
170
+ {0x0039, 0x0039}, /* 9 */
171
+ {0x003a, 0x003a}, /* colon */
172
+ {0x003b, 0x003b}, /* semicolon */
173
+ {0x003c, 0x003c}, /* less */
174
+ {0x003d, 0x003d}, /* equal */
175
+ {0x003e, 0x003e}, /* greater */
176
+ {0x003f, 0x003f}, /* question */
177
+ {0x0040, 0x0040}, /* at */
178
+ {0x0041, 0x0041}, /* A */
179
+ {0x0042, 0x0042}, /* B */
180
+ {0x0043, 0x0043}, /* C */
181
+ {0x0044, 0x0044}, /* D */
182
+ {0x0045, 0x0045}, /* E */
183
+ {0x0046, 0x0046}, /* F */
184
+ {0x0047, 0x0047}, /* G */
185
+ {0x0048, 0x0048}, /* H */
186
+ {0x0049, 0x0049}, /* I */
187
+ {0x004a, 0x004a}, /* J */
188
+ {0x004b, 0x004b}, /* K */
189
+ {0x004c, 0x004c}, /* L */
190
+ {0x004d, 0x004d}, /* M */
191
+ {0x004e, 0x004e}, /* N */
192
+ {0x004f, 0x004f}, /* O */
193
+ {0x0050, 0x0050}, /* P */
194
+ {0x0051, 0x0051}, /* Q */
195
+ {0x0052, 0x0052}, /* R */
196
+ {0x0053, 0x0053}, /* S */
197
+ {0x0054, 0x0054}, /* T */
198
+ {0x0055, 0x0055}, /* U */
199
+ {0x0056, 0x0056}, /* V */
200
+ {0x0057, 0x0057}, /* W */
201
+ {0x0058, 0x0058}, /* X */
202
+ {0x0059, 0x0059}, /* Y */
203
+ {0x005a, 0x005a}, /* Z */
204
+ {0x005b, 0x005b}, /* bracketleft */
205
+ {0x005c, 0x005c}, /* backslash */
206
+ {0x005d, 0x005d}, /* bracketright */
207
+ {0x005e, 0x005e}, /* asciicircum */
208
+ {0x005f, 0x005f}, /* underscore */
209
+ {0x0060, 0x0060}, /* grave */
210
+ {0x0061, 0x0061}, /* a */
211
+ {0x0062, 0x0062}, /* b */
212
+ {0x0063, 0x0063}, /* c */
213
+ {0x0064, 0x0064}, /* d */
214
+ {0x0065, 0x0065}, /* e */
215
+ {0x0066, 0x0066}, /* f */
216
+ {0x0067, 0x0067}, /* g */
217
+ {0x0068, 0x0068}, /* h */
218
+ {0x0069, 0x0069}, /* i */
219
+ {0x006a, 0x006a}, /* j */
220
+ {0x006b, 0x006b}, /* k */
221
+ {0x006c, 0x006c}, /* l */
222
+ {0x006d, 0x006d}, /* m */
223
+ {0x006e, 0x006e}, /* n */
224
+ {0x006f, 0x006f}, /* o */
225
+ {0x0070, 0x0070}, /* p */
226
+ {0x0071, 0x0071}, /* q */
227
+ {0x0072, 0x0072}, /* r */
228
+ {0x0073, 0x0073}, /* s */
229
+ {0x0074, 0x0074}, /* t */
230
+ {0x0075, 0x0075}, /* u */
231
+ {0x0076, 0x0076}, /* v */
232
+ {0x0077, 0x0077}, /* w */
233
+ {0x0078, 0x0078}, /* x */
234
+ {0x0079, 0x0079}, /* y */
235
+ {0x007a, 0x007a}, /* z */
236
+ {0x007b, 0x007b}, /* braceleft */
237
+ {0x007c, 0x007c}, /* bar */
238
+ {0x007d, 0x007d}, /* braceright */
239
+ {0x007e, 0x007e}, /* asciitilde */
240
+ {0x00a0, 0x00a0}, /* nobreakspace */
241
+ {0x00a1, 0x00a1}, /* exclamdown */
242
+ {0x00a2, 0x00a2}, /* cent */
243
+ {0x00a3, 0x00a3}, /* sterling */
244
+ {0x00a4, 0x00a4}, /* currency */
245
+ {0x00a5, 0x00a5}, /* yen */
246
+ {0x00a6, 0x00a6}, /* brokenbar */
247
+ {0x00a7, 0x00a7}, /* section */
248
+ {0x00a8, 0x00a8}, /* diaeresis */
249
+ {0x00a9, 0x00a9}, /* copyright */
250
+ {0x00aa, 0x00aa}, /* ordfeminine */
251
+ {0x00ab, 0x00ab}, /* guillemotleft */
252
+ {0x00ac, 0x00ac}, /* notsign */
253
+ {0x00ad, 0x00ad}, /* hyphen */
254
+ {0x00ae, 0x00ae}, /* registered */
255
+ {0x00af, 0x00af}, /* macron */
256
+ {0x00b0, 0x00b0}, /* degree */
257
+ {0x00b1, 0x00b1}, /* plusminus */
258
+ {0x00b2, 0x00b2}, /* twosuperior */
259
+ {0x00b3, 0x00b3}, /* threesuperior */
260
+ {0x00b4, 0x00b4}, /* acute */
261
+ {0x00b5, 0x00b5}, /* mu */
262
+ {0x00b6, 0x00b6}, /* paragraph */
263
+ {0x00b7, 0x00b7}, /* periodcentered */
264
+ {0x00b8, 0x00b8}, /* cedilla */
265
+ {0x00b9, 0x00b9}, /* onesuperior */
266
+ {0x00ba, 0x00ba}, /* masculine */
267
+ {0x00bb, 0x00bb}, /* guillemotright */
268
+ {0x00bc, 0x00bc}, /* onequarter */
269
+ {0x00bd, 0x00bd}, /* onehalf */
270
+ {0x00be, 0x00be}, /* threequarters */
271
+ {0x00bf, 0x00bf}, /* questiondown */
272
+ {0x00c0, 0x00c0}, /* Agrave */
273
+ {0x00c1, 0x00c1}, /* Aacute */
274
+ {0x00c2, 0x00c2}, /* Acircumflex */
275
+ {0x00c3, 0x00c3}, /* Atilde */
276
+ {0x00c4, 0x00c4}, /* Adiaeresis */
277
+ {0x00c5, 0x00c5}, /* Aring */
278
+ {0x00c6, 0x00c6}, /* AE */
279
+ {0x00c7, 0x00c7}, /* Ccedilla */
280
+ {0x00c8, 0x00c8}, /* Egrave */
281
+ {0x00c9, 0x00c9}, /* Eacute */
282
+ {0x00ca, 0x00ca}, /* Ecircumflex */
283
+ {0x00cb, 0x00cb}, /* Ediaeresis */
284
+ {0x00cc, 0x00cc}, /* Igrave */
285
+ {0x00cd, 0x00cd}, /* Iacute */
286
+ {0x00ce, 0x00ce}, /* Icircumflex */
287
+ {0x00cf, 0x00cf}, /* Idiaeresis */
288
+ {0x00d0, 0x00d0}, /* ETH */
289
+ {0x00d1, 0x00d1}, /* Ntilde */
290
+ {0x00d2, 0x00d2}, /* Ograve */
291
+ {0x00d3, 0x00d3}, /* Oacute */
292
+ {0x00d4, 0x00d4}, /* Ocircumflex */
293
+ {0x00d5, 0x00d5}, /* Otilde */
294
+ {0x00d6, 0x00d6}, /* Odiaeresis */
295
+ {0x00d7, 0x00d7}, /* multiply */
296
+ {0x00d8, 0x00d8}, /* Oslash */
297
+ {0x00d9, 0x00d9}, /* Ugrave */
298
+ {0x00da, 0x00da}, /* Uacute */
299
+ {0x00db, 0x00db}, /* Ucircumflex */
300
+ {0x00dc, 0x00dc}, /* Udiaeresis */
301
+ {0x00dd, 0x00dd}, /* Yacute */
302
+ {0x00de, 0x00de}, /* THORN */
303
+ {0x00df, 0x00df}, /* ssharp */
304
+ {0x00e0, 0x00e0}, /* agrave */
305
+ {0x00e1, 0x00e1}, /* aacute */
306
+ {0x00e2, 0x00e2}, /* acircumflex */
307
+ {0x00e3, 0x00e3}, /* atilde */
308
+ {0x00e4, 0x00e4}, /* adiaeresis */
309
+ {0x00e5, 0x00e5}, /* aring */
310
+ {0x00e6, 0x00e6}, /* ae */
311
+ {0x00e7, 0x00e7}, /* ccedilla */
312
+ {0x00e8, 0x00e8}, /* egrave */
313
+ {0x00e9, 0x00e9}, /* eacute */
314
+ {0x00ea, 0x00ea}, /* ecircumflex */
315
+ {0x00eb, 0x00eb}, /* ediaeresis */
316
+ {0x00ec, 0x00ec}, /* igrave */
317
+ {0x00ed, 0x00ed}, /* iacute */
318
+ {0x00ee, 0x00ee}, /* icircumflex */
319
+ {0x00ef, 0x00ef}, /* idiaeresis */
320
+ {0x00f0, 0x00f0}, /* eth */
321
+ {0x00f1, 0x00f1}, /* ntilde */
322
+ {0x00f2, 0x00f2}, /* ograve */
323
+ {0x00f3, 0x00f3}, /* oacute */
324
+ {0x00f4, 0x00f4}, /* ocircumflex */
325
+ {0x00f5, 0x00f5}, /* otilde */
326
+ {0x00f6, 0x00f6}, /* odiaeresis */
327
+ {0x00f7, 0x00f7}, /* division */
328
+ {0x00f8, 0x00f8}, /* oslash */
329
+ {0x00f9, 0x00f9}, /* ugrave */
330
+ {0x00fa, 0x00fa}, /* uacute */
331
+ {0x00fb, 0x00fb}, /* ucircumflex */
332
+ {0x00fc, 0x00fc}, /* udiaeresis */
333
+ {0x00fd, 0x00fd}, /* yacute */
334
+ {0x00fe, 0x00fe}, /* thorn */
335
+ {0x00ff, 0x00ff}, /* ydiaeresis */
336
+ {0x01a1, 0x0104}, /* Aogonek */
337
+ {0x01a2, 0x02d8}, /* breve */
338
+ {0x01a3, 0x0141}, /* Lstroke */
339
+ {0x01a5, 0x013d}, /* Lcaron */
340
+ {0x01a6, 0x015a}, /* Sacute */
341
+ {0x01a9, 0x0160}, /* Scaron */
342
+ {0x01aa, 0x015e}, /* Scedilla */
343
+ {0x01ab, 0x0164}, /* Tcaron */
344
+ {0x01ac, 0x0179}, /* Zacute */
345
+ {0x01ae, 0x017d}, /* Zcaron */
346
+ {0x01af, 0x017b}, /* Zabovedot */
347
+ {0x01b1, 0x0105}, /* aogonek */
348
+ {0x01b2, 0x02db}, /* ogonek */
349
+ {0x01b3, 0x0142}, /* lstroke */
350
+ {0x01b5, 0x013e}, /* lcaron */
351
+ {0x01b6, 0x015b}, /* sacute */
352
+ {0x01b7, 0x02c7}, /* caron */
353
+ {0x01b9, 0x0161}, /* scaron */
354
+ {0x01ba, 0x015f}, /* scedilla */
355
+ {0x01bb, 0x0165}, /* tcaron */
356
+ {0x01bc, 0x017a}, /* zacute */
357
+ {0x01bd, 0x02dd}, /* doubleacute */
358
+ {0x01be, 0x017e}, /* zcaron */
359
+ {0x01bf, 0x017c}, /* zabovedot */
360
+ {0x01c0, 0x0154}, /* Racute */
361
+ {0x01c3, 0x0102}, /* Abreve */
362
+ {0x01c5, 0x0139}, /* Lacute */
363
+ {0x01c6, 0x0106}, /* Cacute */
364
+ {0x01c8, 0x010c}, /* Ccaron */
365
+ {0x01ca, 0x0118}, /* Eogonek */
366
+ {0x01cc, 0x011a}, /* Ecaron */
367
+ {0x01cf, 0x010e}, /* Dcaron */
368
+ {0x01d0, 0x0110}, /* Dstroke */
369
+ {0x01d1, 0x0143}, /* Nacute */
370
+ {0x01d2, 0x0147}, /* Ncaron */
371
+ {0x01d5, 0x0150}, /* Odoubleacute */
372
+ {0x01d8, 0x0158}, /* Rcaron */
373
+ {0x01d9, 0x016e}, /* Uring */
374
+ {0x01db, 0x0170}, /* Udoubleacute */
375
+ {0x01de, 0x0162}, /* Tcedilla */
376
+ {0x01e0, 0x0155}, /* racute */
377
+ {0x01e3, 0x0103}, /* abreve */
378
+ {0x01e5, 0x013a}, /* lacute */
379
+ {0x01e6, 0x0107}, /* cacute */
380
+ {0x01e8, 0x010d}, /* ccaron */
381
+ {0x01ea, 0x0119}, /* eogonek */
382
+ {0x01ec, 0x011b}, /* ecaron */
383
+ {0x01ef, 0x010f}, /* dcaron */
384
+ {0x01f0, 0x0111}, /* dstroke */
385
+ {0x01f1, 0x0144}, /* nacute */
386
+ {0x01f2, 0x0148}, /* ncaron */
387
+ {0x01f5, 0x0151}, /* odoubleacute */
388
+ {0x01f8, 0x0159}, /* rcaron */
389
+ {0x01f9, 0x016f}, /* uring */
390
+ {0x01fb, 0x0171}, /* udoubleacute */
391
+ {0x01fe, 0x0163}, /* tcedilla */
392
+ {0x01ff, 0x02d9}, /* abovedot */
393
+ {0x02a1, 0x0126}, /* Hstroke */
394
+ {0x02a6, 0x0124}, /* Hcircumflex */
395
+ {0x02a9, 0x0130}, /* Iabovedot */
396
+ {0x02ab, 0x011e}, /* Gbreve */
397
+ {0x02ac, 0x0134}, /* Jcircumflex */
398
+ {0x02b1, 0x0127}, /* hstroke */
399
+ {0x02b6, 0x0125}, /* hcircumflex */
400
+ {0x02b9, 0x0131}, /* idotless */
401
+ {0x02bb, 0x011f}, /* gbreve */
402
+ {0x02bc, 0x0135}, /* jcircumflex */
403
+ {0x02c5, 0x010a}, /* Cabovedot */
404
+ {0x02c6, 0x0108}, /* Ccircumflex */
405
+ {0x02d5, 0x0120}, /* Gabovedot */
406
+ {0x02d8, 0x011c}, /* Gcircumflex */
407
+ {0x02dd, 0x016c}, /* Ubreve */
408
+ {0x02de, 0x015c}, /* Scircumflex */
409
+ {0x02e5, 0x010b}, /* cabovedot */
410
+ {0x02e6, 0x0109}, /* ccircumflex */
411
+ {0x02f5, 0x0121}, /* gabovedot */
412
+ {0x02f8, 0x011d}, /* gcircumflex */
413
+ {0x02fd, 0x016d}, /* ubreve */
414
+ {0x02fe, 0x015d}, /* scircumflex */
415
+ {0x03a2, 0x0138}, /* kra */
416
+ {0x03a3, 0x0156}, /* Rcedilla */
417
+ {0x03a5, 0x0128}, /* Itilde */
418
+ {0x03a6, 0x013b}, /* Lcedilla */
419
+ {0x03aa, 0x0112}, /* Emacron */
420
+ {0x03ab, 0x0122}, /* Gcedilla */
421
+ {0x03ac, 0x0166}, /* Tslash */
422
+ {0x03b3, 0x0157}, /* rcedilla */
423
+ {0x03b5, 0x0129}, /* itilde */
424
+ {0x03b6, 0x013c}, /* lcedilla */
425
+ {0x03ba, 0x0113}, /* emacron */
426
+ {0x03bb, 0x0123}, /* gcedilla */
427
+ {0x03bc, 0x0167}, /* tslash */
428
+ {0x03bd, 0x014a}, /* ENG */
429
+ {0x03bf, 0x014b}, /* eng */
430
+ {0x03c0, 0x0100}, /* Amacron */
431
+ {0x03c7, 0x012e}, /* Iogonek */
432
+ {0x03cc, 0x0116}, /* Eabovedot */
433
+ {0x03cf, 0x012a}, /* Imacron */
434
+ {0x03d1, 0x0145}, /* Ncedilla */
435
+ {0x03d2, 0x014c}, /* Omacron */
436
+ {0x03d3, 0x0136}, /* Kcedilla */
437
+ {0x03d9, 0x0172}, /* Uogonek */
438
+ {0x03dd, 0x0168}, /* Utilde */
439
+ {0x03de, 0x016a}, /* Umacron */
440
+ {0x03e0, 0x0101}, /* amacron */
441
+ {0x03e7, 0x012f}, /* iogonek */
442
+ {0x03ec, 0x0117}, /* eabovedot */
443
+ {0x03ef, 0x012b}, /* imacron */
444
+ {0x03f1, 0x0146}, /* ncedilla */
445
+ {0x03f2, 0x014d}, /* omacron */
446
+ {0x03f3, 0x0137}, /* kcedilla */
447
+ {0x03f9, 0x0173}, /* uogonek */
448
+ {0x03fd, 0x0169}, /* utilde */
449
+ {0x03fe, 0x016b}, /* umacron */
450
+ {0x047e, 0x203e}, /* overline */
451
+ {0x04a1, 0x3002}, /* kana_fullstop */
452
+ {0x04a2, 0x300c}, /* kana_openingbracket */
453
+ {0x04a3, 0x300d}, /* kana_closingbracket */
454
+ {0x04a4, 0x3001}, /* kana_comma */
455
+ {0x04a5, 0x30fb}, /* kana_conjunctive */
456
+ {0x04a6, 0x30f2}, /* kana_WO */
457
+ {0x04a7, 0x30a1}, /* kana_a */
458
+ {0x04a8, 0x30a3}, /* kana_i */
459
+ {0x04a9, 0x30a5}, /* kana_u */
460
+ {0x04aa, 0x30a7}, /* kana_e */
461
+ {0x04ab, 0x30a9}, /* kana_o */
462
+ {0x04ac, 0x30e3}, /* kana_ya */
463
+ {0x04ad, 0x30e5}, /* kana_yu */
464
+ {0x04ae, 0x30e7}, /* kana_yo */
465
+ {0x04af, 0x30c3}, /* kana_tsu */
466
+ {0x04b0, 0x30fc}, /* prolongedsound */
467
+ {0x04b1, 0x30a2}, /* kana_A */
468
+ {0x04b2, 0x30a4}, /* kana_I */
469
+ {0x04b3, 0x30a6}, /* kana_U */
470
+ {0x04b4, 0x30a8}, /* kana_E */
471
+ {0x04b5, 0x30aa}, /* kana_O */
472
+ {0x04b6, 0x30ab}, /* kana_KA */
473
+ {0x04b7, 0x30ad}, /* kana_KI */
474
+ {0x04b8, 0x30af}, /* kana_KU */
475
+ {0x04b9, 0x30b1}, /* kana_KE */
476
+ {0x04ba, 0x30b3}, /* kana_KO */
477
+ {0x04bb, 0x30b5}, /* kana_SA */
478
+ {0x04bc, 0x30b7}, /* kana_SHI */
479
+ {0x04bd, 0x30b9}, /* kana_SU */
480
+ {0x04be, 0x30bb}, /* kana_SE */
481
+ {0x04bf, 0x30bd}, /* kana_SO */
482
+ {0x04c0, 0x30bf}, /* kana_TA */
483
+ {0x04c1, 0x30c1}, /* kana_CHI */
484
+ {0x04c2, 0x30c4}, /* kana_TSU */
485
+ {0x04c3, 0x30c6}, /* kana_TE */
486
+ {0x04c4, 0x30c8}, /* kana_TO */
487
+ {0x04c5, 0x30ca}, /* kana_NA */
488
+ {0x04c6, 0x30cb}, /* kana_NI */
489
+ {0x04c7, 0x30cc}, /* kana_NU */
490
+ {0x04c8, 0x30cd}, /* kana_NE */
491
+ {0x04c9, 0x30ce}, /* kana_NO */
492
+ {0x04ca, 0x30cf}, /* kana_HA */
493
+ {0x04cb, 0x30d2}, /* kana_HI */
494
+ {0x04cc, 0x30d5}, /* kana_FU */
495
+ {0x04cd, 0x30d8}, /* kana_HE */
496
+ {0x04ce, 0x30db}, /* kana_HO */
497
+ {0x04cf, 0x30de}, /* kana_MA */
498
+ {0x04d0, 0x30df}, /* kana_MI */
499
+ {0x04d1, 0x30e0}, /* kana_MU */
500
+ {0x04d2, 0x30e1}, /* kana_ME */
501
+ {0x04d3, 0x30e2}, /* kana_MO */
502
+ {0x04d4, 0x30e4}, /* kana_YA */
503
+ {0x04d5, 0x30e6}, /* kana_YU */
504
+ {0x04d6, 0x30e8}, /* kana_YO */
505
+ {0x04d7, 0x30e9}, /* kana_RA */
506
+ {0x04d8, 0x30ea}, /* kana_RI */
507
+ {0x04d9, 0x30eb}, /* kana_RU */
508
+ {0x04da, 0x30ec}, /* kana_RE */
509
+ {0x04db, 0x30ed}, /* kana_RO */
510
+ {0x04dc, 0x30ef}, /* kana_WA */
511
+ {0x04dd, 0x30f3}, /* kana_N */
512
+ {0x04de, 0x309b}, /* voicedsound */
513
+ {0x04df, 0x309c}, /* semivoicedsound */
514
+ {0x05ac, 0x060c}, /* Arabic_comma */
515
+ {0x05bb, 0x061b}, /* Arabic_semicolon */
516
+ {0x05bf, 0x061f}, /* Arabic_question_mark */
517
+ {0x05c1, 0x0621}, /* Arabic_hamza */
518
+ {0x05c2, 0x0622}, /* Arabic_maddaonalef */
519
+ {0x05c3, 0x0623}, /* Arabic_hamzaonalef */
520
+ {0x05c4, 0x0624}, /* Arabic_hamzaonwaw */
521
+ {0x05c5, 0x0625}, /* Arabic_hamzaunderalef */
522
+ {0x05c6, 0x0626}, /* Arabic_hamzaonyeh */
523
+ {0x05c7, 0x0627}, /* Arabic_alef */
524
+ {0x05c8, 0x0628}, /* Arabic_beh */
525
+ {0x05c9, 0x0629}, /* Arabic_tehmarbuta */
526
+ {0x05ca, 0x062a}, /* Arabic_teh */
527
+ {0x05cb, 0x062b}, /* Arabic_theh */
528
+ {0x05cc, 0x062c}, /* Arabic_jeem */
529
+ {0x05cd, 0x062d}, /* Arabic_hah */
530
+ {0x05ce, 0x062e}, /* Arabic_khah */
531
+ {0x05cf, 0x062f}, /* Arabic_dal */
532
+ {0x05d0, 0x0630}, /* Arabic_thal */
533
+ {0x05d1, 0x0631}, /* Arabic_ra */
534
+ {0x05d2, 0x0632}, /* Arabic_zain */
535
+ {0x05d3, 0x0633}, /* Arabic_seen */
536
+ {0x05d4, 0x0634}, /* Arabic_sheen */
537
+ {0x05d5, 0x0635}, /* Arabic_sad */
538
+ {0x05d6, 0x0636}, /* Arabic_dad */
539
+ {0x05d7, 0x0637}, /* Arabic_tah */
540
+ {0x05d8, 0x0638}, /* Arabic_zah */
541
+ {0x05d9, 0x0639}, /* Arabic_ain */
542
+ {0x05da, 0x063a}, /* Arabic_ghain */
543
+ {0x05e0, 0x0640}, /* Arabic_tatweel */
544
+ {0x05e1, 0x0641}, /* Arabic_feh */
545
+ {0x05e2, 0x0642}, /* Arabic_qaf */
546
+ {0x05e3, 0x0643}, /* Arabic_kaf */
547
+ {0x05e4, 0x0644}, /* Arabic_lam */
548
+ {0x05e5, 0x0645}, /* Arabic_meem */
549
+ {0x05e6, 0x0646}, /* Arabic_noon */
550
+ {0x05e7, 0x0647}, /* Arabic_ha */
551
+ {0x05e8, 0x0648}, /* Arabic_waw */
552
+ {0x05e9, 0x0649}, /* Arabic_alefmaksura */
553
+ {0x05ea, 0x064a}, /* Arabic_yeh */
554
+ {0x05eb, 0x064b}, /* Arabic_fathatan */
555
+ {0x05ec, 0x064c}, /* Arabic_dammatan */
556
+ {0x05ed, 0x064d}, /* Arabic_kasratan */
557
+ {0x05ee, 0x064e}, /* Arabic_fatha */
558
+ {0x05ef, 0x064f}, /* Arabic_damma */
559
+ {0x05f0, 0x0650}, /* Arabic_kasra */
560
+ {0x05f1, 0x0651}, /* Arabic_shadda */
561
+ {0x05f2, 0x0652}, /* Arabic_sukun */
562
+ {0x06a1, 0x0452}, /* Serbian_dje */
563
+ {0x06a2, 0x0453}, /* Macedonia_gje */
564
+ {0x06a3, 0x0451}, /* Cyrillic_io */
565
+ {0x06a4, 0x0454}, /* Ukrainian_ie */
566
+ {0x06a5, 0x0455}, /* Macedonia_dse */
567
+ {0x06a6, 0x0456}, /* Ukrainian_i */
568
+ {0x06a7, 0x0457}, /* Ukrainian_yi */
569
+ {0x06a8, 0x0458}, /* Cyrillic_je */
570
+ {0x06a9, 0x0459}, /* Cyrillic_lje */
571
+ {0x06aa, 0x045a}, /* Cyrillic_nje */
572
+ {0x06ab, 0x045b}, /* Serbian_tshe */
573
+ {0x06ac, 0x045c}, /* Macedonia_kje */
574
+ {0x06ae, 0x045e}, /* Byelorussian_shortu */
575
+ {0x06af, 0x045f}, /* Cyrillic_dzhe */
576
+ {0x06b0, 0x2116}, /* numerosign */
577
+ {0x06b1, 0x0402}, /* Serbian_DJE */
578
+ {0x06b2, 0x0403}, /* Macedonia_GJE */
579
+ {0x06b3, 0x0401}, /* Cyrillic_IO */
580
+ {0x06b4, 0x0404}, /* Ukrainian_IE */
581
+ {0x06b5, 0x0405}, /* Macedonia_DSE */
582
+ {0x06b6, 0x0406}, /* Ukrainian_I */
583
+ {0x06b7, 0x0407}, /* Ukrainian_YI */
584
+ {0x06b8, 0x0408}, /* Cyrillic_JE */
585
+ {0x06b9, 0x0409}, /* Cyrillic_LJE */
586
+ {0x06ba, 0x040a}, /* Cyrillic_NJE */
587
+ {0x06bb, 0x040b}, /* Serbian_TSHE */
588
+ {0x06bc, 0x040c}, /* Macedonia_KJE */
589
+ {0x06be, 0x040e}, /* Byelorussian_SHORTU */
590
+ {0x06bf, 0x040f}, /* Cyrillic_DZHE */
591
+ {0x06c0, 0x044e}, /* Cyrillic_yu */
592
+ {0x06c1, 0x0430}, /* Cyrillic_a */
593
+ {0x06c2, 0x0431}, /* Cyrillic_be */
594
+ {0x06c3, 0x0446}, /* Cyrillic_tse */
595
+ {0x06c4, 0x0434}, /* Cyrillic_de */
596
+ {0x06c5, 0x0435}, /* Cyrillic_ie */
597
+ {0x06c6, 0x0444}, /* Cyrillic_ef */
598
+ {0x06c7, 0x0433}, /* Cyrillic_ghe */
599
+ {0x06c8, 0x0445}, /* Cyrillic_ha */
600
+ {0x06c9, 0x0438}, /* Cyrillic_i */
601
+ {0x06ca, 0x0439}, /* Cyrillic_shorti */
602
+ {0x06cb, 0x043a}, /* Cyrillic_ka */
603
+ {0x06cc, 0x043b}, /* Cyrillic_el */
604
+ {0x06cd, 0x043c}, /* Cyrillic_em */
605
+ {0x06ce, 0x043d}, /* Cyrillic_en */
606
+ {0x06cf, 0x043e}, /* Cyrillic_o */
607
+ {0x06d0, 0x043f}, /* Cyrillic_pe */
608
+ {0x06d1, 0x044f}, /* Cyrillic_ya */
609
+ {0x06d2, 0x0440}, /* Cyrillic_er */
610
+ {0x06d3, 0x0441}, /* Cyrillic_es */
611
+ {0x06d4, 0x0442}, /* Cyrillic_te */
612
+ {0x06d5, 0x0443}, /* Cyrillic_u */
613
+ {0x06d6, 0x0436}, /* Cyrillic_zhe */
614
+ {0x06d7, 0x0432}, /* Cyrillic_ve */
615
+ {0x06d8, 0x044c}, /* Cyrillic_softsign */
616
+ {0x06d9, 0x044b}, /* Cyrillic_yeru */
617
+ {0x06da, 0x0437}, /* Cyrillic_ze */
618
+ {0x06db, 0x0448}, /* Cyrillic_sha */
619
+ {0x06dc, 0x044d}, /* Cyrillic_e */
620
+ {0x06dd, 0x0449}, /* Cyrillic_shcha */
621
+ {0x06de, 0x0447}, /* Cyrillic_che */
622
+ {0x06df, 0x044a}, /* Cyrillic_hardsign */
623
+ {0x06e0, 0x042e}, /* Cyrillic_YU */
624
+ {0x06e1, 0x0410}, /* Cyrillic_A */
625
+ {0x06e2, 0x0411}, /* Cyrillic_BE */
626
+ {0x06e3, 0x0426}, /* Cyrillic_TSE */
627
+ {0x06e4, 0x0414}, /* Cyrillic_DE */
628
+ {0x06e5, 0x0415}, /* Cyrillic_IE */
629
+ {0x06e6, 0x0424}, /* Cyrillic_EF */
630
+ {0x06e7, 0x0413}, /* Cyrillic_GHE */
631
+ {0x06e8, 0x0425}, /* Cyrillic_HA */
632
+ {0x06e9, 0x0418}, /* Cyrillic_I */
633
+ {0x06ea, 0x0419}, /* Cyrillic_SHORTI */
634
+ {0x06eb, 0x041a}, /* Cyrillic_KA */
635
+ {0x06ec, 0x041b}, /* Cyrillic_EL */
636
+ {0x06ed, 0x041c}, /* Cyrillic_EM */
637
+ {0x06ee, 0x041d}, /* Cyrillic_EN */
638
+ {0x06ef, 0x041e}, /* Cyrillic_O */
639
+ {0x06f0, 0x041f}, /* Cyrillic_PE */
640
+ {0x06f1, 0x042f}, /* Cyrillic_YA */
641
+ {0x06f2, 0x0420}, /* Cyrillic_ER */
642
+ {0x06f3, 0x0421}, /* Cyrillic_ES */
643
+ {0x06f4, 0x0422}, /* Cyrillic_TE */
644
+ {0x06f5, 0x0423}, /* Cyrillic_U */
645
+ {0x06f6, 0x0416}, /* Cyrillic_ZHE */
646
+ {0x06f7, 0x0412}, /* Cyrillic_VE */
647
+ {0x06f8, 0x042c}, /* Cyrillic_SOFTSIGN */
648
+ {0x06f9, 0x042b}, /* Cyrillic_YERU */
649
+ {0x06fa, 0x0417}, /* Cyrillic_ZE */
650
+ {0x06fb, 0x0428}, /* Cyrillic_SHA */
651
+ {0x06fc, 0x042d}, /* Cyrillic_E */
652
+ {0x06fd, 0x0429}, /* Cyrillic_SHCHA */
653
+ {0x06fe, 0x0427}, /* Cyrillic_CHE */
654
+ {0x06ff, 0x042a}, /* Cyrillic_HARDSIGN */
655
+ {0x07a1, 0x0386}, /* Greek_ALPHAaccent */
656
+ {0x07a2, 0x0388}, /* Greek_EPSILONaccent */
657
+ {0x07a3, 0x0389}, /* Greek_ETAaccent */
658
+ {0x07a4, 0x038a}, /* Greek_IOTAaccent */
659
+ {0x07a5, 0x03aa}, /* Greek_IOTAdiaeresis */
660
+ {0x07a7, 0x038c}, /* Greek_OMICRONaccent */
661
+ {0x07a8, 0x038e}, /* Greek_UPSILONaccent */
662
+ {0x07a9, 0x03ab}, /* Greek_UPSILONdieresis */
663
+ {0x07ab, 0x038f}, /* Greek_OMEGAaccent */
664
+ {0x07ae, 0x0385}, /* Greek_accentdieresis */
665
+ {0x07af, 0x2015}, /* Greek_horizbar */
666
+ {0x07b1, 0x03ac}, /* Greek_alphaaccent */
667
+ {0x07b2, 0x03ad}, /* Greek_epsilonaccent */
668
+ {0x07b3, 0x03ae}, /* Greek_etaaccent */
669
+ {0x07b4, 0x03af}, /* Greek_iotaaccent */
670
+ {0x07b5, 0x03ca}, /* Greek_iotadieresis */
671
+ {0x07b6, 0x0390}, /* Greek_iotaaccentdieresis */
672
+ {0x07b7, 0x03cc}, /* Greek_omicronaccent */
673
+ {0x07b8, 0x03cd}, /* Greek_upsilonaccent */
674
+ {0x07b9, 0x03cb}, /* Greek_upsilondieresis */
675
+ {0x07ba, 0x03b0}, /* Greek_upsilonaccentdieresis */
676
+ {0x07bb, 0x03ce}, /* Greek_omegaaccent */
677
+ {0x07c1, 0x0391}, /* Greek_ALPHA */
678
+ {0x07c2, 0x0392}, /* Greek_BETA */
679
+ {0x07c3, 0x0393}, /* Greek_GAMMA */
680
+ {0x07c4, 0x0394}, /* Greek_DELTA */
681
+ {0x07c5, 0x0395}, /* Greek_EPSILON */
682
+ {0x07c6, 0x0396}, /* Greek_ZETA */
683
+ {0x07c7, 0x0397}, /* Greek_ETA */
684
+ {0x07c8, 0x0398}, /* Greek_THETA */
685
+ {0x07c9, 0x0399}, /* Greek_IOTA */
686
+ {0x07ca, 0x039a}, /* Greek_KAPPA */
687
+ {0x07cb, 0x039b}, /* Greek_LAMDA */
688
+ {0x07cc, 0x039c}, /* Greek_MU */
689
+ {0x07cd, 0x039d}, /* Greek_NU */
690
+ {0x07ce, 0x039e}, /* Greek_XI */
691
+ {0x07cf, 0x039f}, /* Greek_OMICRON */
692
+ {0x07d0, 0x03a0}, /* Greek_PI */
693
+ {0x07d1, 0x03a1}, /* Greek_RHO */
694
+ {0x07d2, 0x03a3}, /* Greek_SIGMA */
695
+ {0x07d4, 0x03a4}, /* Greek_TAU */
696
+ {0x07d5, 0x03a5}, /* Greek_UPSILON */
697
+ {0x07d6, 0x03a6}, /* Greek_PHI */
698
+ {0x07d7, 0x03a7}, /* Greek_CHI */
699
+ {0x07d8, 0x03a8}, /* Greek_PSI */
700
+ {0x07d9, 0x03a9}, /* Greek_OMEGA */
701
+ {0x07e1, 0x03b1}, /* Greek_alpha */
702
+ {0x07e2, 0x03b2}, /* Greek_beta */
703
+ {0x07e3, 0x03b3}, /* Greek_gamma */
704
+ {0x07e4, 0x03b4}, /* Greek_delta */
705
+ {0x07e5, 0x03b5}, /* Greek_epsilon */
706
+ {0x07e6, 0x03b6}, /* Greek_zeta */
707
+ {0x07e7, 0x03b7}, /* Greek_eta */
708
+ {0x07e8, 0x03b8}, /* Greek_theta */
709
+ {0x07e9, 0x03b9}, /* Greek_iota */
710
+ {0x07ea, 0x03ba}, /* Greek_kappa */
711
+ {0x07eb, 0x03bb}, /* Greek_lambda */
712
+ {0x07ec, 0x03bc}, /* Greek_mu */
713
+ {0x07ed, 0x03bd}, /* Greek_nu */
714
+ {0x07ee, 0x03be}, /* Greek_xi */
715
+ {0x07ef, 0x03bf}, /* Greek_omicron */
716
+ {0x07f0, 0x03c0}, /* Greek_pi */
717
+ {0x07f1, 0x03c1}, /* Greek_rho */
718
+ {0x07f2, 0x03c3}, /* Greek_sigma */
719
+ {0x07f3, 0x03c2}, /* Greek_finalsmallsigma */
720
+ {0x07f4, 0x03c4}, /* Greek_tau */
721
+ {0x07f5, 0x03c5}, /* Greek_upsilon */
722
+ {0x07f6, 0x03c6}, /* Greek_phi */
723
+ {0x07f7, 0x03c7}, /* Greek_chi */
724
+ {0x07f8, 0x03c8}, /* Greek_psi */
725
+ {0x07f9, 0x03c9}, /* Greek_omega */
726
+ {0x08a1, 0x23b7}, /* leftradical */
727
+ {0x08a4, 0x2320}, /* topintegral */
728
+ {0x08a5, 0x2321}, /* botintegral */
729
+ {0x08a7, 0x23a1}, /* topleftsqbracket */
730
+ {0x08a8, 0x23a3}, /* botleftsqbracket */
731
+ {0x08a9, 0x23a4}, /* toprightsqbracket */
732
+ {0x08aa, 0x23a6}, /* botrightsqbracket */
733
+ {0x08ab, 0x239b}, /* topleftparens */
734
+ {0x08ac, 0x239d}, /* botleftparens */
735
+ {0x08ad, 0x239e}, /* toprightparens */
736
+ {0x08ae, 0x23a0}, /* botrightparens */
737
+ {0x08af, 0x23a8}, /* leftmiddlecurlybrace */
738
+ {0x08b0, 0x23ac}, /* rightmiddlecurlybrace */
739
+ {0x08bc, 0x2264}, /* lessthanequal */
740
+ {0x08bd, 0x2260}, /* notequal */
741
+ {0x08be, 0x2265}, /* greaterthanequal */
742
+ {0x08bf, 0x222b}, /* integral */
743
+ {0x08c0, 0x2234}, /* therefore */
744
+ {0x08c1, 0x221d}, /* variation */
745
+ {0x08c2, 0x221e}, /* infinity */
746
+ {0x08c5, 0x2207}, /* nabla */
747
+ {0x08c8, 0x223c}, /* approximate */
748
+ {0x08c9, 0x2243}, /* similarequal */
749
+ {0x08cd, 0x21d4}, /* ifonlyif */
750
+ {0x08ce, 0x21d2}, /* implies */
751
+ {0x08cf, 0x2261}, /* identical */
752
+ {0x08d6, 0x221a}, /* radical */
753
+ {0x08da, 0x2282}, /* includedin */
754
+ {0x08db, 0x2283}, /* includes */
755
+ {0x08dc, 0x2229}, /* intersection */
756
+ {0x08dd, 0x222a}, /* union */
757
+ {0x08de, 0x2227}, /* logicaland */
758
+ {0x08df, 0x2228}, /* logicalor */
759
+ {0x08ef, 0x2202}, /* partialderivative */
760
+ {0x08f6, 0x0192}, /* function */
761
+ {0x08fb, 0x2190}, /* leftarrow */
762
+ {0x08fc, 0x2191}, /* uparrow */
763
+ {0x08fd, 0x2192}, /* rightarrow */
764
+ {0x08fe, 0x2193}, /* downarrow */
765
+ {0x09e0, 0x25c6}, /* soliddiamond */
766
+ {0x09e1, 0x2592}, /* checkerboard */
767
+ {0x09e2, 0x2409}, /* ht */
768
+ {0x09e3, 0x240c}, /* ff */
769
+ {0x09e4, 0x240d}, /* cr */
770
+ {0x09e5, 0x240a}, /* lf */
771
+ {0x09e8, 0x2424}, /* nl */
772
+ {0x09e9, 0x240b}, /* vt */
773
+ {0x09ea, 0x2518}, /* lowrightcorner */
774
+ {0x09eb, 0x2510}, /* uprightcorner */
775
+ {0x09ec, 0x250c}, /* upleftcorner */
776
+ {0x09ed, 0x2514}, /* lowleftcorner */
777
+ {0x09ee, 0x253c}, /* crossinglines */
778
+ {0x09ef, 0x23ba}, /* horizlinescan1 */
779
+ {0x09f0, 0x23bb}, /* horizlinescan3 */
780
+ {0x09f1, 0x2500}, /* horizlinescan5 */
781
+ {0x09f2, 0x23bc}, /* horizlinescan7 */
782
+ {0x09f3, 0x23bd}, /* horizlinescan9 */
783
+ {0x09f4, 0x251c}, /* leftt */
784
+ {0x09f5, 0x2524}, /* rightt */
785
+ {0x09f6, 0x2534}, /* bott */
786
+ {0x09f7, 0x252c}, /* topt */
787
+ {0x09f8, 0x2502}, /* vertbar */
788
+ {0x0aa1, 0x2003}, /* emspace */
789
+ {0x0aa2, 0x2002}, /* enspace */
790
+ {0x0aa3, 0x2004}, /* em3space */
791
+ {0x0aa4, 0x2005}, /* em4space */
792
+ {0x0aa5, 0x2007}, /* digitspace */
793
+ {0x0aa6, 0x2008}, /* punctspace */
794
+ {0x0aa7, 0x2009}, /* thinspace */
795
+ {0x0aa8, 0x200a}, /* hairspace */
796
+ {0x0aa9, 0x2014}, /* emdash */
797
+ {0x0aaa, 0x2013}, /* endash */
798
+ {0x0aae, 0x2026}, /* ellipsis */
799
+ {0x0aaf, 0x2025}, /* doubbaselinedot */
800
+ {0x0ab0, 0x2153}, /* onethird */
801
+ {0x0ab1, 0x2154}, /* twothirds */
802
+ {0x0ab2, 0x2155}, /* onefifth */
803
+ {0x0ab3, 0x2156}, /* twofifths */
804
+ {0x0ab4, 0x2157}, /* threefifths */
805
+ {0x0ab5, 0x2158}, /* fourfifths */
806
+ {0x0ab6, 0x2159}, /* onesixth */
807
+ {0x0ab7, 0x215a}, /* fivesixths */
808
+ {0x0ab8, 0x2105}, /* careof */
809
+ {0x0abb, 0x2012}, /* figdash */
810
+ {0x0ac3, 0x215b}, /* oneeighth */
811
+ {0x0ac4, 0x215c}, /* threeeighths */
812
+ {0x0ac5, 0x215d}, /* fiveeighths */
813
+ {0x0ac6, 0x215e}, /* seveneighths */
814
+ {0x0ac9, 0x2122}, /* trademark */
815
+ {0x0ad0, 0x2018}, /* leftsinglequotemark */
816
+ {0x0ad1, 0x2019}, /* rightsinglequotemark */
817
+ {0x0ad2, 0x201c}, /* leftdoublequotemark */
818
+ {0x0ad3, 0x201d}, /* rightdoublequotemark */
819
+ {0x0ad4, 0x211e}, /* prescription */
820
+ {0x0ad6, 0x2032}, /* minutes */
821
+ {0x0ad7, 0x2033}, /* seconds */
822
+ {0x0ad9, 0x271d}, /* latincross */
823
+ {0x0aec, 0x2663}, /* club */
824
+ {0x0aed, 0x2666}, /* diamond */
825
+ {0x0aee, 0x2665}, /* heart */
826
+ {0x0af0, 0x2720}, /* maltesecross */
827
+ {0x0af1, 0x2020}, /* dagger */
828
+ {0x0af2, 0x2021}, /* doubledagger */
829
+ {0x0af3, 0x2713}, /* checkmark */
830
+ {0x0af4, 0x2717}, /* ballotcross */
831
+ {0x0af5, 0x266f}, /* musicalsharp */
832
+ {0x0af6, 0x266d}, /* musicalflat */
833
+ {0x0af7, 0x2642}, /* malesymbol */
834
+ {0x0af8, 0x2640}, /* femalesymbol */
835
+ {0x0af9, 0x260e}, /* telephone */
836
+ {0x0afa, 0x2315}, /* telephonerecorder */
837
+ {0x0afb, 0x2117}, /* phonographcopyright */
838
+ {0x0afc, 0x2038}, /* caret */
839
+ {0x0afd, 0x201a}, /* singlelowquotemark */
840
+ {0x0afe, 0x201e}, /* doublelowquotemark */
841
+ {0x0bc2, 0x22a5}, /* downtack */
842
+ {0x0bc4, 0x230a}, /* downstile */
843
+ {0x0bca, 0x2218}, /* jot */
844
+ {0x0bcc, 0x2395}, /* quad */
845
+ {0x0bce, 0x22a4}, /* uptack */
846
+ {0x0bcf, 0x25cb}, /* circle */
847
+ {0x0bd3, 0x2308}, /* upstile */
848
+ {0x0bdc, 0x22a2}, /* lefttack */
849
+ {0x0bfc, 0x22a3}, /* righttack */
850
+ {0x0cdf, 0x2017}, /* hebrew_doublelowline */
851
+ {0x0ce0, 0x05d0}, /* hebrew_aleph */
852
+ {0x0ce1, 0x05d1}, /* hebrew_bet */
853
+ {0x0ce2, 0x05d2}, /* hebrew_gimel */
854
+ {0x0ce3, 0x05d3}, /* hebrew_dalet */
855
+ {0x0ce4, 0x05d4}, /* hebrew_he */
856
+ {0x0ce5, 0x05d5}, /* hebrew_waw */
857
+ {0x0ce6, 0x05d6}, /* hebrew_zain */
858
+ {0x0ce7, 0x05d7}, /* hebrew_chet */
859
+ {0x0ce8, 0x05d8}, /* hebrew_tet */
860
+ {0x0ce9, 0x05d9}, /* hebrew_yod */
861
+ {0x0cea, 0x05da}, /* hebrew_finalkaph */
862
+ {0x0ceb, 0x05db}, /* hebrew_kaph */
863
+ {0x0cec, 0x05dc}, /* hebrew_lamed */
864
+ {0x0ced, 0x05dd}, /* hebrew_finalmem */
865
+ {0x0cee, 0x05de}, /* hebrew_mem */
866
+ {0x0cef, 0x05df}, /* hebrew_finalnun */
867
+ {0x0cf0, 0x05e0}, /* hebrew_nun */
868
+ {0x0cf1, 0x05e1}, /* hebrew_samech */
869
+ {0x0cf2, 0x05e2}, /* hebrew_ayin */
870
+ {0x0cf3, 0x05e3}, /* hebrew_finalpe */
871
+ {0x0cf4, 0x05e4}, /* hebrew_pe */
872
+ {0x0cf5, 0x05e5}, /* hebrew_finalzade */
873
+ {0x0cf6, 0x05e6}, /* hebrew_zade */
874
+ {0x0cf7, 0x05e7}, /* hebrew_qoph */
875
+ {0x0cf8, 0x05e8}, /* hebrew_resh */
876
+ {0x0cf9, 0x05e9}, /* hebrew_shin */
877
+ {0x0cfa, 0x05ea}, /* hebrew_taw */
878
+ {0x0da1, 0x0e01}, /* Thai_kokai */
879
+ {0x0da2, 0x0e02}, /* Thai_khokhai */
880
+ {0x0da3, 0x0e03}, /* Thai_khokhuat */
881
+ {0x0da4, 0x0e04}, /* Thai_khokhwai */
882
+ {0x0da5, 0x0e05}, /* Thai_khokhon */
883
+ {0x0da6, 0x0e06}, /* Thai_khorakhang */
884
+ {0x0da7, 0x0e07}, /* Thai_ngongu */
885
+ {0x0da8, 0x0e08}, /* Thai_chochan */
886
+ {0x0da9, 0x0e09}, /* Thai_choching */
887
+ {0x0daa, 0x0e0a}, /* Thai_chochang */
888
+ {0x0dab, 0x0e0b}, /* Thai_soso */
889
+ {0x0dac, 0x0e0c}, /* Thai_chochoe */
890
+ {0x0dad, 0x0e0d}, /* Thai_yoying */
891
+ {0x0dae, 0x0e0e}, /* Thai_dochada */
892
+ {0x0daf, 0x0e0f}, /* Thai_topatak */
893
+ {0x0db0, 0x0e10}, /* Thai_thothan */
894
+ {0x0db1, 0x0e11}, /* Thai_thonangmontho */
895
+ {0x0db2, 0x0e12}, /* Thai_thophuthao */
896
+ {0x0db3, 0x0e13}, /* Thai_nonen */
897
+ {0x0db4, 0x0e14}, /* Thai_dodek */
898
+ {0x0db5, 0x0e15}, /* Thai_totao */
899
+ {0x0db6, 0x0e16}, /* Thai_thothung */
900
+ {0x0db7, 0x0e17}, /* Thai_thothahan */
901
+ {0x0db8, 0x0e18}, /* Thai_thothong */
902
+ {0x0db9, 0x0e19}, /* Thai_nonu */
903
+ {0x0dba, 0x0e1a}, /* Thai_bobaimai */
904
+ {0x0dbb, 0x0e1b}, /* Thai_popla */
905
+ {0x0dbc, 0x0e1c}, /* Thai_phophung */
906
+ {0x0dbd, 0x0e1d}, /* Thai_fofa */
907
+ {0x0dbe, 0x0e1e}, /* Thai_phophan */
908
+ {0x0dbf, 0x0e1f}, /* Thai_fofan */
909
+ {0x0dc0, 0x0e20}, /* Thai_phosamphao */
910
+ {0x0dc1, 0x0e21}, /* Thai_moma */
911
+ {0x0dc2, 0x0e22}, /* Thai_yoyak */
912
+ {0x0dc3, 0x0e23}, /* Thai_rorua */
913
+ {0x0dc4, 0x0e24}, /* Thai_ru */
914
+ {0x0dc5, 0x0e25}, /* Thai_loling */
915
+ {0x0dc6, 0x0e26}, /* Thai_lu */
916
+ {0x0dc7, 0x0e27}, /* Thai_wowaen */
917
+ {0x0dc8, 0x0e28}, /* Thai_sosala */
918
+ {0x0dc9, 0x0e29}, /* Thai_sorusi */
919
+ {0x0dca, 0x0e2a}, /* Thai_sosua */
920
+ {0x0dcb, 0x0e2b}, /* Thai_hohip */
921
+ {0x0dcc, 0x0e2c}, /* Thai_lochula */
922
+ {0x0dcd, 0x0e2d}, /* Thai_oang */
923
+ {0x0dce, 0x0e2e}, /* Thai_honokhuk */
924
+ {0x0dcf, 0x0e2f}, /* Thai_paiyannoi */
925
+ {0x0dd0, 0x0e30}, /* Thai_saraa */
926
+ {0x0dd1, 0x0e31}, /* Thai_maihanakat */
927
+ {0x0dd2, 0x0e32}, /* Thai_saraaa */
928
+ {0x0dd3, 0x0e33}, /* Thai_saraam */
929
+ {0x0dd4, 0x0e34}, /* Thai_sarai */
930
+ {0x0dd5, 0x0e35}, /* Thai_saraii */
931
+ {0x0dd6, 0x0e36}, /* Thai_saraue */
932
+ {0x0dd7, 0x0e37}, /* Thai_sarauee */
933
+ {0x0dd8, 0x0e38}, /* Thai_sarau */
934
+ {0x0dd9, 0x0e39}, /* Thai_sarauu */
935
+ {0x0dda, 0x0e3a}, /* Thai_phinthu */
936
+ {0x0ddf, 0x0e3f}, /* Thai_baht */
937
+ {0x0de0, 0x0e40}, /* Thai_sarae */
938
+ {0x0de1, 0x0e41}, /* Thai_saraae */
939
+ {0x0de2, 0x0e42}, /* Thai_sarao */
940
+ {0x0de3, 0x0e43}, /* Thai_saraaimaimuan */
941
+ {0x0de4, 0x0e44}, /* Thai_saraaimaimalai */
942
+ {0x0de5, 0x0e45}, /* Thai_lakkhangyao */
943
+ {0x0de6, 0x0e46}, /* Thai_maiyamok */
944
+ {0x0de7, 0x0e47}, /* Thai_maitaikhu */
945
+ {0x0de8, 0x0e48}, /* Thai_maiek */
946
+ {0x0de9, 0x0e49}, /* Thai_maitho */
947
+ {0x0dea, 0x0e4a}, /* Thai_maitri */
948
+ {0x0deb, 0x0e4b}, /* Thai_maichattawa */
949
+ {0x0dec, 0x0e4c}, /* Thai_thanthakhat */
950
+ {0x0ded, 0x0e4d}, /* Thai_nikhahit */
951
+ {0x0df0, 0x0e50}, /* Thai_leksun */
952
+ {0x0df1, 0x0e51}, /* Thai_leknung */
953
+ {0x0df2, 0x0e52}, /* Thai_leksong */
954
+ {0x0df3, 0x0e53}, /* Thai_leksam */
955
+ {0x0df4, 0x0e54}, /* Thai_leksi */
956
+ {0x0df5, 0x0e55}, /* Thai_lekha */
957
+ {0x0df6, 0x0e56}, /* Thai_lekhok */
958
+ {0x0df7, 0x0e57}, /* Thai_lekchet */
959
+ {0x0df8, 0x0e58}, /* Thai_lekpaet */
960
+ {0x0df9, 0x0e59}, /* Thai_lekkao */
961
+ {0x13bc, 0x0152}, /* OE */
962
+ {0x13bd, 0x0153}, /* oe */
963
+ {0x13be, 0x0178}, /* Ydiaeresis */
964
+ {0x20a0, 0x20a0}, /* EcuSign */
965
+ {0x20a1, 0x20a1}, /* ColonSign */
966
+ {0x20a2, 0x20a2}, /* CruzeiroSign */
967
+ {0x20a3, 0x20a3}, /* FFrancSign */
968
+ {0x20a4, 0x20a4}, /* LiraSign */
969
+ {0x20a5, 0x20a5}, /* MillSign */
970
+ {0x20a6, 0x20a6}, /* NairaSign */
971
+ {0x20a7, 0x20a7}, /* PesetaSign */
972
+ {0x20a8, 0x20a8}, /* RupeeSign */
973
+ {0x20a9, 0x20a9}, /* WonSign */
974
+ {0x20aa, 0x20aa}, /* NewSheqelSign */
975
+ {0x20ab, 0x20ab}, /* DongSign */
976
+ {0x20ac, 0x20ac}, /* EuroSign */
977
+ {0x06ad, 0x0491}, /* Ukrainian_ghe_with_upturn */
978
+ {0x06bd, 0x0490}, /* Ukrainian_GHE_WITH_UPTURN */
979
+ {0x14a2, 0x0587}, /* Armenian_ligature_ew */
980
+ {0x14a3, 0x0589}, /* Armenian_verjaket */
981
+ {0x14aa, 0x055d}, /* Armenian_but */
982
+ {0x14ad, 0x058a}, /* Armenian_yentamna */
983
+ {0x14af, 0x055c}, /* Armenian_amanak */
984
+ {0x14b0, 0x055b}, /* Armenian_shesht */
985
+ {0x14b1, 0x055e}, /* Armenian_paruyk */
986
+ {0x14b2, 0x0531}, /* Armenian_AYB */
987
+ {0x14b3, 0x0561}, /* Armenian_ayb */
988
+ {0x14b4, 0x0532}, /* Armenian_BEN */
989
+ {0x14b5, 0x0562}, /* Armenian_ben */
990
+ {0x14b6, 0x0533}, /* Armenian_GIM */
991
+ {0x14b7, 0x0563}, /* Armenian_gim */
992
+ {0x14b8, 0x0534}, /* Armenian_DA */
993
+ {0x14b9, 0x0564}, /* Armenian_da */
994
+ {0x14ba, 0x0535}, /* Armenian_YECH */
995
+ {0x14bb, 0x0565}, /* Armenian_yech */
996
+ {0x14bc, 0x0536}, /* Armenian_ZA */
997
+ {0x14bd, 0x0566}, /* Armenian_za */
998
+ {0x14be, 0x0537}, /* Armenian_E */
999
+ {0x14bf, 0x0567}, /* Armenian_e */
1000
+ {0x14c0, 0x0538}, /* Armenian_AT */
1001
+ {0x14c1, 0x0568}, /* Armenian_at */
1002
+ {0x14c2, 0x0539}, /* Armenian_TO */
1003
+ {0x14c3, 0x0569}, /* Armenian_to */
1004
+ {0x14c4, 0x053a}, /* Armenian_ZHE */
1005
+ {0x14c5, 0x056a}, /* Armenian_zhe */
1006
+ {0x14c6, 0x053b}, /* Armenian_INI */
1007
+ {0x14c7, 0x056b}, /* Armenian_ini */
1008
+ {0x14c8, 0x053c}, /* Armenian_LYUN */
1009
+ {0x14c9, 0x056c}, /* Armenian_lyun */
1010
+ {0x14ca, 0x053d}, /* Armenian_KHE */
1011
+ {0x14cb, 0x056d}, /* Armenian_khe */
1012
+ {0x14cc, 0x053e}, /* Armenian_TSA */
1013
+ {0x14cd, 0x056e}, /* Armenian_tsa */
1014
+ {0x14ce, 0x053f}, /* Armenian_KEN */
1015
+ {0x14cf, 0x056f}, /* Armenian_ken */
1016
+ {0x14d0, 0x0540}, /* Armenian_HO */
1017
+ {0x14d1, 0x0570}, /* Armenian_ho */
1018
+ {0x14d2, 0x0541}, /* Armenian_DZA */
1019
+ {0x14d3, 0x0571}, /* Armenian_dza */
1020
+ {0x14d4, 0x0542}, /* Armenian_GHAT */
1021
+ {0x14d5, 0x0572}, /* Armenian_ghat */
1022
+ {0x14d6, 0x0543}, /* Armenian_TCHE */
1023
+ {0x14d7, 0x0573}, /* Armenian_tche */
1024
+ {0x14d8, 0x0544}, /* Armenian_MEN */
1025
+ {0x14d9, 0x0574}, /* Armenian_men */
1026
+ {0x14da, 0x0545}, /* Armenian_HI */
1027
+ {0x14db, 0x0575}, /* Armenian_hi */
1028
+ {0x14dc, 0x0546}, /* Armenian_NU */
1029
+ {0x14dd, 0x0576}, /* Armenian_nu */
1030
+ {0x14de, 0x0547}, /* Armenian_SHA */
1031
+ {0x14df, 0x0577}, /* Armenian_sha */
1032
+ {0x14e0, 0x0548}, /* Armenian_VO */
1033
+ {0x14e1, 0x0578}, /* Armenian_vo */
1034
+ {0x14e2, 0x0549}, /* Armenian_CHA */
1035
+ {0x14e3, 0x0579}, /* Armenian_cha */
1036
+ {0x14e4, 0x054a}, /* Armenian_PE */
1037
+ {0x14e5, 0x057a}, /* Armenian_pe */
1038
+ {0x14e6, 0x054b}, /* Armenian_JE */
1039
+ {0x14e7, 0x057b}, /* Armenian_je */
1040
+ {0x14e8, 0x054c}, /* Armenian_RA */
1041
+ {0x14e9, 0x057c}, /* Armenian_ra */
1042
+ {0x14ea, 0x054d}, /* Armenian_SE */
1043
+ {0x14eb, 0x057d}, /* Armenian_se */
1044
+ {0x14ec, 0x054e}, /* Armenian_VEV */
1045
+ {0x14ed, 0x057e}, /* Armenian_vev */
1046
+ {0x14ee, 0x054f}, /* Armenian_TYUN */
1047
+ {0x14ef, 0x057f}, /* Armenian_tyun */
1048
+ {0x14f0, 0x0550}, /* Armenian_RE */
1049
+ {0x14f1, 0x0580}, /* Armenian_re */
1050
+ {0x14f2, 0x0551}, /* Armenian_TSO */
1051
+ {0x14f3, 0x0581}, /* Armenian_tso */
1052
+ {0x14f4, 0x0552}, /* Armenian_VYUN */
1053
+ {0x14f5, 0x0582}, /* Armenian_vyun */
1054
+ {0x14f6, 0x0553}, /* Armenian_PYUR */
1055
+ {0x14f7, 0x0583}, /* Armenian_pyur */
1056
+ {0x14f8, 0x0554}, /* Armenian_KE */
1057
+ {0x14f9, 0x0584}, /* Armenian_ke */
1058
+ {0x14fa, 0x0555}, /* Armenian_O */
1059
+ {0x14fb, 0x0585}, /* Armenian_o */
1060
+ {0x14fc, 0x0556}, /* Armenian_FE */
1061
+ {0x14fd, 0x0586}, /* Armenian_fe */
1062
+ {0x14fe, 0x055a}, /* Armenian_apostrophe */
1063
+ {0x15d0, 0x10d0}, /* Georgian_an */
1064
+ {0x15d1, 0x10d1}, /* Georgian_ban */
1065
+ {0x15d2, 0x10d2}, /* Georgian_gan */
1066
+ {0x15d3, 0x10d3}, /* Georgian_don */
1067
+ {0x15d4, 0x10d4}, /* Georgian_en */
1068
+ {0x15d5, 0x10d5}, /* Georgian_vin */
1069
+ {0x15d6, 0x10d6}, /* Georgian_zen */
1070
+ {0x15d7, 0x10d7}, /* Georgian_tan */
1071
+ {0x15d8, 0x10d8}, /* Georgian_in */
1072
+ {0x15d9, 0x10d9}, /* Georgian_kan */
1073
+ {0x15da, 0x10da}, /* Georgian_las */
1074
+ {0x15db, 0x10db}, /* Georgian_man */
1075
+ {0x15dc, 0x10dc}, /* Georgian_nar */
1076
+ {0x15dd, 0x10dd}, /* Georgian_on */
1077
+ {0x15de, 0x10de}, /* Georgian_par */
1078
+ {0x15df, 0x10df}, /* Georgian_zhar */
1079
+ {0x15e0, 0x10e0}, /* Georgian_rae */
1080
+ {0x15e1, 0x10e1}, /* Georgian_san */
1081
+ {0x15e2, 0x10e2}, /* Georgian_tar */
1082
+ {0x15e3, 0x10e3}, /* Georgian_un */
1083
+ {0x15e4, 0x10e4}, /* Georgian_phar */
1084
+ {0x15e5, 0x10e5}, /* Georgian_khar */
1085
+ {0x15e6, 0x10e6}, /* Georgian_ghan */
1086
+ {0x15e7, 0x10e7}, /* Georgian_qar */
1087
+ {0x15e8, 0x10e8}, /* Georgian_shin */
1088
+ {0x15e9, 0x10e9}, /* Georgian_chin */
1089
+ {0x15ea, 0x10ea}, /* Georgian_can */
1090
+ {0x15eb, 0x10eb}, /* Georgian_jil */
1091
+ {0x15ec, 0x10ec}, /* Georgian_cil */
1092
+ {0x15ed, 0x10ed}, /* Georgian_char */
1093
+ {0x15ee, 0x10ee}, /* Georgian_xan */
1094
+ {0x15ef, 0x10ef}, /* Georgian_jhan */
1095
+ {0x15f0, 0x10f0}, /* Georgian_hae */
1096
+ {0x15f1, 0x10f1}, /* Georgian_he */
1097
+ {0x15f2, 0x10f2}, /* Georgian_hie */
1098
+ {0x15f3, 0x10f3}, /* Georgian_we */
1099
+ {0x15f4, 0x10f4}, /* Georgian_har */
1100
+ {0x15f5, 0x10f5}, /* Georgian_hoe */
1101
+ {0x15f6, 0x10f6}, /* Georgian_fi */
1102
+ {0x12a1, 0x1e02}, /* Babovedot */
1103
+ {0x12a2, 0x1e03}, /* babovedot */
1104
+ {0x12a6, 0x1e0a}, /* Dabovedot */
1105
+ {0x12a8, 0x1e80}, /* Wgrave */
1106
+ {0x12aa, 0x1e82}, /* Wacute */
1107
+ {0x12ab, 0x1e0b}, /* dabovedot */
1108
+ {0x12ac, 0x1ef2}, /* Ygrave */
1109
+ {0x12b0, 0x1e1e}, /* Fabovedot */
1110
+ {0x12b1, 0x1e1f}, /* fabovedot */
1111
+ {0x12b4, 0x1e40}, /* Mabovedot */
1112
+ {0x12b5, 0x1e41}, /* mabovedot */
1113
+ {0x12b7, 0x1e56}, /* Pabovedot */
1114
+ {0x12b8, 0x1e81}, /* wgrave */
1115
+ {0x12b9, 0x1e57}, /* pabovedot */
1116
+ {0x12ba, 0x1e83}, /* wacute */
1117
+ {0x12bb, 0x1e60}, /* Sabovedot */
1118
+ {0x12bc, 0x1ef3}, /* ygrave */
1119
+ {0x12bd, 0x1e84}, /* Wdiaeresis */
1120
+ {0x12be, 0x1e85}, /* wdiaeresis */
1121
+ {0x12bf, 0x1e61}, /* sabovedot */
1122
+ {0x12d0, 0x0174}, /* Wcircumflex */
1123
+ {0x12d7, 0x1e6a}, /* Tabovedot */
1124
+ {0x12de, 0x0176}, /* Ycircumflex */
1125
+ {0x12f0, 0x0175}, /* wcircumflex */
1126
+ {0x12f7, 0x1e6b}, /* tabovedot */
1127
+ {0x12fe, 0x0177}, /* ycircumflex */
1128
+ {0x0590, 0x06f0}, /* Farsi_0 */
1129
+ {0x0591, 0x06f1}, /* Farsi_1 */
1130
+ {0x0592, 0x06f2}, /* Farsi_2 */
1131
+ {0x0593, 0x06f3}, /* Farsi_3 */
1132
+ {0x0594, 0x06f4}, /* Farsi_4 */
1133
+ {0x0595, 0x06f5}, /* Farsi_5 */
1134
+ {0x0596, 0x06f6}, /* Farsi_6 */
1135
+ {0x0597, 0x06f7}, /* Farsi_7 */
1136
+ {0x0598, 0x06f8}, /* Farsi_8 */
1137
+ {0x0599, 0x06f9}, /* Farsi_9 */
1138
+ {0x05a5, 0x066a}, /* Arabic_percent */
1139
+ {0x05a6, 0x0670}, /* Arabic_superscript_alef */
1140
+ {0x05a7, 0x0679}, /* Arabic_tteh */
1141
+ {0x05a8, 0x067e}, /* Arabic_peh */
1142
+ {0x05a9, 0x0686}, /* Arabic_tcheh */
1143
+ {0x05aa, 0x0688}, /* Arabic_ddal */
1144
+ {0x05ab, 0x0691}, /* Arabic_rreh */
1145
+ {0x05ae, 0x06d4}, /* Arabic_fullstop */
1146
+ {0x05b0, 0x0660}, /* Arabic_0 */
1147
+ {0x05b1, 0x0661}, /* Arabic_1 */
1148
+ {0x05b2, 0x0662}, /* Arabic_2 */
1149
+ {0x05b3, 0x0663}, /* Arabic_3 */
1150
+ {0x05b4, 0x0664}, /* Arabic_4 */
1151
+ {0x05b5, 0x0665}, /* Arabic_5 */
1152
+ {0x05b6, 0x0666}, /* Arabic_6 */
1153
+ {0x05b7, 0x0667}, /* Arabic_7 */
1154
+ {0x05b8, 0x0668}, /* Arabic_8 */
1155
+ {0x05b9, 0x0669}, /* Arabic_9 */
1156
+ {0x05f3, 0x0653}, /* Arabic_madda_above */
1157
+ {0x05f4, 0x0654}, /* Arabic_hamza_above */
1158
+ {0x05f5, 0x0655}, /* Arabic_hamza_below */
1159
+ {0x05f6, 0x0698}, /* Arabic_jeh */
1160
+ {0x05f7, 0x06a4}, /* Arabic_veh */
1161
+ {0x05f8, 0x06a9}, /* Arabic_keheh */
1162
+ {0x05f9, 0x06af}, /* Arabic_gaf */
1163
+ {0x05fa, 0x06ba}, /* Arabic_noon_ghunna */
1164
+ {0x05fb, 0x06be}, /* Arabic_heh_doachashmee */
1165
+ {0x05fc, 0x06cc}, /* Farsi_yeh */
1166
+ {0x05fd, 0x06d2}, /* Arabic_yeh_baree */
1167
+ {0x05fe, 0x06c1}, /* Arabic_heh_goal */
1168
+ {0x0680, 0x0492}, /* Cyrillic_GHE_bar */
1169
+ {0x0681, 0x0496}, /* Cyrillic_ZHE_descender */
1170
+ {0x0682, 0x049a}, /* Cyrillic_KA_descender */
1171
+ {0x0683, 0x049c}, /* Cyrillic_KA_vertstroke */
1172
+ {0x0684, 0x04a2}, /* Cyrillic_EN_descender */
1173
+ {0x0685, 0x04ae}, /* Cyrillic_U_straight */
1174
+ {0x0686, 0x04b0}, /* Cyrillic_U_straight_bar */
1175
+ {0x0687, 0x04b2}, /* Cyrillic_HA_descender */
1176
+ {0x0688, 0x04b6}, /* Cyrillic_CHE_descender */
1177
+ {0x0689, 0x04b8}, /* Cyrillic_CHE_vertstroke */
1178
+ {0x068a, 0x04ba}, /* Cyrillic_SHHA */
1179
+ {0x068c, 0x04d8}, /* Cyrillic_SCHWA */
1180
+ {0x068d, 0x04e2}, /* Cyrillic_I_macron */
1181
+ {0x068e, 0x04e8}, /* Cyrillic_O_bar */
1182
+ {0x068f, 0x04ee}, /* Cyrillic_U_macron */
1183
+ {0x0690, 0x0493}, /* Cyrillic_ghe_bar */
1184
+ {0x0691, 0x0497}, /* Cyrillic_zhe_descender */
1185
+ {0x0692, 0x049b}, /* Cyrillic_ka_descender */
1186
+ {0x0693, 0x049d}, /* Cyrillic_ka_vertstroke */
1187
+ {0x0694, 0x04a3}, /* Cyrillic_en_descender */
1188
+ {0x0695, 0x04af}, /* Cyrillic_u_straight */
1189
+ {0x0696, 0x04b1}, /* Cyrillic_u_straight_bar */
1190
+ {0x0697, 0x04b3}, /* Cyrillic_ha_descender */
1191
+ {0x0698, 0x04b7}, /* Cyrillic_che_descender */
1192
+ {0x0699, 0x04b9}, /* Cyrillic_che_vertstroke */
1193
+ {0x069a, 0x04bb}, /* Cyrillic_shha */
1194
+ {0x069c, 0x04d9}, /* Cyrillic_schwa */
1195
+ {0x069d, 0x04e3}, /* Cyrillic_i_macron */
1196
+ {0x069e, 0x04e9}, /* Cyrillic_o_bar */
1197
+ {0x069f, 0x04ef}, /* Cyrillic_u_macron */
1198
+ {0x16a3, 0x1e8a}, /* Xabovedot */
1199
+ {0x16a6, 0x012c}, /* Ibreve */
1200
+ {0x16a9, 0x01b5}, /* Zstroke */
1201
+ {0x16aa, 0x01e6}, /* Gcaron */
1202
+ {0x16af, 0x019f}, /* Obarred */
1203
+ {0x16b3, 0x1e8b}, /* xabovedot */
1204
+ {0x16b6, 0x012d}, /* ibreve */
1205
+ {0x16b9, 0x01b6}, /* zstroke */
1206
+ {0x16ba, 0x01e7}, /* gcaron */
1207
+ {0x16bd, 0x01d2}, /* ocaron */
1208
+ {0x16bf, 0x0275}, /* obarred */
1209
+ {0x16c6, 0x018f}, /* SCHWA */
1210
+ {0x16f6, 0x0259}, /* schwa */
1211
+ {0x16d1, 0x1e36}, /* Lbelowdot */
1212
+ {0x16e1, 0x1e37}, /* lbelowdot */
1213
+ {0x1ea0, 0x1ea0}, /* Abelowdot */
1214
+ {0x1ea1, 0x1ea1}, /* abelowdot */
1215
+ {0x1ea2, 0x1ea2}, /* Ahook */
1216
+ {0x1ea3, 0x1ea3}, /* ahook */
1217
+ {0x1ea4, 0x1ea4}, /* Acircumflexacute */
1218
+ {0x1ea5, 0x1ea5}, /* acircumflexacute */
1219
+ {0x1ea6, 0x1ea6}, /* Acircumflexgrave */
1220
+ {0x1ea7, 0x1ea7}, /* acircumflexgrave */
1221
+ {0x1ea8, 0x1ea8}, /* Acircumflexhook */
1222
+ {0x1ea9, 0x1ea9}, /* acircumflexhook */
1223
+ {0x1eaa, 0x1eaa}, /* Acircumflextilde */
1224
+ {0x1eab, 0x1eab}, /* acircumflextilde */
1225
+ {0x1eac, 0x1eac}, /* Acircumflexbelowdot */
1226
+ {0x1ead, 0x1ead}, /* acircumflexbelowdot */
1227
+ {0x1eae, 0x1eae}, /* Abreveacute */
1228
+ {0x1eaf, 0x1eaf}, /* abreveacute */
1229
+ {0x1eb0, 0x1eb0}, /* Abrevegrave */
1230
+ {0x1eb1, 0x1eb1}, /* abrevegrave */
1231
+ {0x1eb2, 0x1eb2}, /* Abrevehook */
1232
+ {0x1eb3, 0x1eb3}, /* abrevehook */
1233
+ {0x1eb4, 0x1eb4}, /* Abrevetilde */
1234
+ {0x1eb5, 0x1eb5}, /* abrevetilde */
1235
+ {0x1eb6, 0x1eb6}, /* Abrevebelowdot */
1236
+ {0x1eb7, 0x1eb7}, /* abrevebelowdot */
1237
+ {0x1eb8, 0x1eb8}, /* Ebelowdot */
1238
+ {0x1eb9, 0x1eb9}, /* ebelowdot */
1239
+ {0x1eba, 0x1eba}, /* Ehook */
1240
+ {0x1ebb, 0x1ebb}, /* ehook */
1241
+ {0x1ebc, 0x1ebc}, /* Etilde */
1242
+ {0x1ebd, 0x1ebd}, /* etilde */
1243
+ {0x1ebe, 0x1ebe}, /* Ecircumflexacute */
1244
+ {0x1ebf, 0x1ebf}, /* ecircumflexacute */
1245
+ {0x1ec0, 0x1ec0}, /* Ecircumflexgrave */
1246
+ {0x1ec1, 0x1ec1}, /* ecircumflexgrave */
1247
+ {0x1ec2, 0x1ec2}, /* Ecircumflexhook */
1248
+ {0x1ec3, 0x1ec3}, /* ecircumflexhook */
1249
+ {0x1ec4, 0x1ec4}, /* Ecircumflextilde */
1250
+ {0x1ec5, 0x1ec5}, /* ecircumflextilde */
1251
+ {0x1ec6, 0x1ec6}, /* Ecircumflexbelowdot */
1252
+ {0x1ec7, 0x1ec7}, /* ecircumflexbelowdot */
1253
+ {0x1ec8, 0x1ec8}, /* Ihook */
1254
+ {0x1ec9, 0x1ec9}, /* ihook */
1255
+ {0x1eca, 0x1eca}, /* Ibelowdot */
1256
+ {0x1ecb, 0x1ecb}, /* ibelowdot */
1257
+ {0x1ecc, 0x1ecc}, /* Obelowdot */
1258
+ {0x1ecd, 0x1ecd}, /* obelowdot */
1259
+ {0x1ece, 0x1ece}, /* Ohook */
1260
+ {0x1ecf, 0x1ecf}, /* ohook */
1261
+ {0x1ed0, 0x1ed0}, /* Ocircumflexacute */
1262
+ {0x1ed1, 0x1ed1}, /* ocircumflexacute */
1263
+ {0x1ed2, 0x1ed2}, /* Ocircumflexgrave */
1264
+ {0x1ed3, 0x1ed3}, /* ocircumflexgrave */
1265
+ {0x1ed4, 0x1ed4}, /* Ocircumflexhook */
1266
+ {0x1ed5, 0x1ed5}, /* ocircumflexhook */
1267
+ {0x1ed6, 0x1ed6}, /* Ocircumflextilde */
1268
+ {0x1ed7, 0x1ed7}, /* ocircumflextilde */
1269
+ {0x1ed8, 0x1ed8}, /* Ocircumflexbelowdot */
1270
+ {0x1ed9, 0x1ed9}, /* ocircumflexbelowdot */
1271
+ {0x1eda, 0x1eda}, /* Ohornacute */
1272
+ {0x1edb, 0x1edb}, /* ohornacute */
1273
+ {0x1edc, 0x1edc}, /* Ohorngrave */
1274
+ {0x1edd, 0x1edd}, /* ohorngrave */
1275
+ {0x1ede, 0x1ede}, /* Ohornhook */
1276
+ {0x1edf, 0x1edf}, /* ohornhook */
1277
+ {0x1ee0, 0x1ee0}, /* Ohorntilde */
1278
+ {0x1ee1, 0x1ee1}, /* ohorntilde */
1279
+ {0x1ee2, 0x1ee2}, /* Ohornbelowdot */
1280
+ {0x1ee3, 0x1ee3}, /* ohornbelowdot */
1281
+ {0x1ee4, 0x1ee4}, /* Ubelowdot */
1282
+ {0x1ee5, 0x1ee5}, /* ubelowdot */
1283
+ {0x1ee6, 0x1ee6}, /* Uhook */
1284
+ {0x1ee7, 0x1ee7}, /* uhook */
1285
+ {0x1ee8, 0x1ee8}, /* Uhornacute */
1286
+ {0x1ee9, 0x1ee9}, /* uhornacute */
1287
+ {0x1eea, 0x1eea}, /* Uhorngrave */
1288
+ {0x1eeb, 0x1eeb}, /* uhorngrave */
1289
+ {0x1eec, 0x1eec}, /* Uhornhook */
1290
+ {0x1eed, 0x1eed}, /* uhornhook */
1291
+ {0x1eee, 0x1eee}, /* Uhorntilde */
1292
+ {0x1eef, 0x1eef}, /* uhorntilde */
1293
+ {0x1ef0, 0x1ef0}, /* Uhornbelowdot */
1294
+ {0x1ef1, 0x1ef1}, /* uhornbelowdot */
1295
+ {0x1ef4, 0x1ef4}, /* Ybelowdot */
1296
+ {0x1ef5, 0x1ef5}, /* ybelowdot */
1297
+ {0x1ef6, 0x1ef6}, /* Yhook */
1298
+ {0x1ef7, 0x1ef7}, /* yhook */
1299
+ {0x1ef8, 0x1ef8}, /* Ytilde */
1300
+ {0x1ef9, 0x1ef9}, /* ytilde */
1301
+ {0x1efa, 0x01a0}, /* Ohorn */
1302
+ {0x1efb, 0x01a1}, /* ohorn */
1303
+ {0x1efc, 0x01af}, /* Uhorn */
1304
+ {0x1efd, 0x01b0}, /* uhorn */
1305
+ {0, 0}
1306
+ };
1307
+
1308
+ #endif
llava_next/include/unctrl.h ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /****************************************************************************
2
+ * Copyright 2020 Thomas E. Dickey *
3
+ * Copyright 1998-2001,2009 Free Software Foundation, Inc. *
4
+ * *
5
+ * Permission is hereby granted, free of charge, to any person obtaining a *
6
+ * copy of this software and associated documentation files (the *
7
+ * "Software"), to deal in the Software without restriction, including *
8
+ * without limitation the rights to use, copy, modify, merge, publish, *
9
+ * distribute, distribute with modifications, sublicense, and/or sell *
10
+ * copies of the Software, and to permit persons to whom the Software is *
11
+ * furnished to do so, subject to the following conditions: *
12
+ * *
13
+ * The above copyright notice and this permission notice shall be included *
14
+ * in all copies or substantial portions of the Software. *
15
+ * *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19
+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23
+ * *
24
+ * Except as contained in this notice, the name(s) of the above copyright *
25
+ * holders shall not be used in advertising or otherwise to promote the *
26
+ * sale, use or other dealings in this Software without prior written *
27
+ * authorization. *
28
+ ****************************************************************************/
29
+
30
+ /****************************************************************************
31
+ * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
32
+ * and: Eric S. Raymond <esr@snark.thyrsus.com> *
33
+ ****************************************************************************/
34
+
35
+ /*
36
+ * unctrl.h
37
+ *
38
+ * Display a printable version of a control character.
39
+ * Control characters are displayed in caret notation (^x), DELETE is displayed
40
+ * as ^?. Printable characters are displayed as is.
41
+ */
42
+
43
+ /* $Id: unctrl.h.in,v 1.12 2020/02/02 23:34:34 tom Exp $ */
44
+
45
+ #ifndef NCURSES_UNCTRL_H_incl
46
+ #define NCURSES_UNCTRL_H_incl 1
47
+
48
+ #undef NCURSES_VERSION
49
+ #define NCURSES_VERSION "6.4"
50
+
51
+ #ifdef __cplusplus
52
+ extern "C" {
53
+ #endif
54
+
55
+ #include <ncursesw/curses.h>
56
+
57
+ #undef unctrl
58
+ NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype);
59
+
60
+ #if 1
61
+ NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);
62
+ #endif
63
+
64
+ #ifdef __cplusplus
65
+ }
66
+ #endif
67
+
68
+ #endif /* NCURSES_UNCTRL_H_incl */
llava_next/share/doc/readline/CHANGES ADDED
@@ -0,0 +1,1941 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This document details the changes between this version, readline-8.2, and
2
+ the previous version, readline-8.1.
3
+
4
+ 1. Changes to Readline
5
+
6
+ a. Fixed a problem with cleaning up active marks when using callback mode.
7
+
8
+ b. Fixed a problem with arithmetic comparison operators checking the version.
9
+
10
+ c. Fixed a problem that could cause readline not to build on systems without
11
+ POSIX signal functions.
12
+
13
+ d. Fixed a bug that could cause readline to crash if the application removed
14
+ the callback line handler before readline read all typeahead.
15
+
16
+ e. Added additional checks for read errors in the middle of readline commands.
17
+
18
+ f. Fixed a redisplay problem that occurred when switching from the digit-
19
+ argument prompt `(arg: N)' back to the regular prompt and the regular
20
+ prompt contained invisible characters.
21
+
22
+ g. Fixed a problem with restoring the prompt when aborting an incremental
23
+ search.
24
+
25
+ h. Fix a problem with characters > 128 not being displayed correctly in certain
26
+ single-byte encodings.
27
+
28
+ i. Fixed a problem with unix-filename-rubout that caused it to delete too much
29
+ when applied to a pathname consisting only of one or more slashes.
30
+
31
+ j. Fixed a display problem that caused the prompt to be wrapped incorrectly if
32
+ the screen changed dimensions during a call to readline() and the prompt
33
+ became longer than the screen width.
34
+
35
+ k. Fixed a problem that caused the \r output by turning off bracketed paste
36
+ to overwrite the line if terminal echo was disabled.
37
+
38
+ l. Fixed a bug that could cause colored-completion-prefix to not display if
39
+ completion-prefix-display-length was set.
40
+
41
+ m. Fixed a problem with line wrapping prompts when a group of invisible
42
+ characters runs to the right edge of the screen and the prompt extends
43
+ longer then the screen width.
44
+
45
+ n. Fixed a couple problems that could cause rl_end to be set incorrectly by
46
+ transpose-words.
47
+
48
+ o. Prevent some display problems when running a command as the result of a
49
+ trap or one bound using `bind -x' and the command generates output.
50
+
51
+ p. Fixed an issue with multi-line prompt strings that have one or more
52
+ invisible characters at the end of a physical line.
53
+
54
+ q. Fixed an issue that caused a history line's undo list to be cleared when
55
+ it should not have been.
56
+
57
+ r. When replacing a history entry, make sure the existing entry has a non-NULL
58
+ timestamp before copying it; it may have been added by the application, not
59
+ the history library.
60
+
61
+ 2. New Features in Readline
62
+
63
+ a. There is now an HS_HISTORY_VERSION containing the version number of the
64
+ history library for applications to use.
65
+
66
+ b. History expansion better understands multiple history expansions that may
67
+ contain strings that would ordinarily inhibit history expansion (e.g.,
68
+ `abc!$!$').
69
+
70
+ c. There is a new framework for readline timeouts, including new public
71
+ functions to set timeouts and query how much time is remaining before a
72
+ timeout hits, and a hook function that can trigger when readline times
73
+ out. There is a new state value to indicate a timeout.
74
+
75
+ d. Automatically bind termcap key sequences for page-up and page-down to
76
+ history-search-backward and history-search-forward, respectively.
77
+
78
+ e. There is a new `fetch-history' bindable command that retrieves the history
79
+ entry corresponding to its numeric argument. Negative arguments count back
80
+ from the end of the history.
81
+
82
+ f. `vi-undo' is now a bindable command.
83
+
84
+ g. There is a new option: `enable-active-region'. This separates control of
85
+ the active region and bracketed-paste. It has the same default value as
86
+ bracketed-paste, and enabling bracketed paste enables the active region.
87
+ Users can now turn off the active region while leaving bracketed paste
88
+ enabled.
89
+
90
+ h. rl_completer_word_break_characters is now `const char *' like
91
+ rl_basic_word_break_characters.
92
+
93
+ i. Readline looks in $LS_COLORS for a custom filename extension
94
+ (*.readline-colored-completion-prefix) and uses that as the default color
95
+ for the common prefix displayed when `colored-completion-prefix' is set.
96
+
97
+ j. Two new bindable string variables: active-region-start-color and
98
+ active-region-end-color. The first sets the color used to display the
99
+ active region; the second turns it off. If set, these are used in place
100
+ of terminal standout mode.
101
+
102
+ k. New readline state (RL_STATE_EOF) and application-visible variable
103
+ (rl_eof_found) to allow applications to detect when readline reads EOF
104
+ before calling the deprep-terminal hook.
105
+
106
+ l. There is a new configuration option: --with-shared-termcap-library, which
107
+ forces linking the shared readline library with the shared termcap (or
108
+ curses/ncurses/termlib) library so applications don't have to do it.
109
+
110
+ m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG)
111
+ each time it is called, and modifies the appropriate locale-specific display
112
+ and key binding variables when the locale changes.
113
+
114
+ -------------------------------------------------------------------------------
115
+ This document details the changes between this version, readline-8.1, and
116
+ the previous version, readline-8.0.
117
+
118
+ 1. Changes to Readline
119
+
120
+ a. There are a number of fixes that were found as the result of fuzzing with
121
+ random input.
122
+
123
+ b. Changed the revert-all-at-newline behavior to make sure to start at the end
124
+ of the history list when doing it, instead of the line where the user hit
125
+ return.
126
+
127
+ c. When parsing `set' commands from the inputrc file or an application, readline
128
+ now allows trailing whitespace.
129
+
130
+ d. Fixed a bug that left a file descriptor open to the history file if the
131
+ file size was 0.
132
+
133
+ e. Fixed a problem with binding key sequences containing meta characters.
134
+
135
+ f. Fixed a bug that caused the wrong line to be displayed if the user tried to
136
+ move back beyond the beginning of the history list, or forward past the end
137
+ of the history list.
138
+
139
+ g. If readline catches SIGTSTP, it now sets a hook that allows the calling
140
+ application to handle it if it desires.
141
+
142
+ h. Fixed a redisplay problem with a prompt string containing embedded newlines.
143
+
144
+ i. Fixed a problem with completing filenames containing invalid multibyte
145
+ sequences when case-insensitive comparisons are enabled.
146
+
147
+ j. Fixed a redisplay problem with prompt strings containing invisible multibyte
148
+ characters.
149
+
150
+ k. Fixed a problem with multibyte characters mapped to editing commands that
151
+ modify the search string in incremental search.
152
+
153
+ l. Fixed a bug with maintaining the key sequence while resolving a bound
154
+ command in the presence of ambiguous sequences (sequences with a common
155
+ prefix), in most cases while attempting to unbind it.
156
+
157
+ m. Fixed several buffer overflows found as the result of fuzzing.
158
+
159
+ n. Reworked backslash handling when translating key sequences for key binding
160
+ to be more uniform and consistent, which introduces a slight backwards
161
+ incompatibility.
162
+
163
+ o. Fixed a bug with saving the history that resulted in errors not being
164
+ propagated to the calling application when the history file is not writable.
165
+
166
+ p. Readline only calls chown(2) on a newly-written history file if it really
167
+ needs to, instead of having it be a no-op.
168
+
169
+ q. Readline now behaves better when operate-and-get-next is used when the
170
+ history list is `full': when there are already $HISTSIZE entries.
171
+
172
+ r. Fixed a bug that could cause vi redo (`.') of a replace command not to work
173
+ correctly in the C or POSIX locale.
174
+
175
+ s. Fixed a bug with vi-mode digit arguments that caused the last command to be
176
+ set incorrectly. This prevents yank-last-arg from working as intended, for
177
+ example.
178
+
179
+ t. Make sure that all undo groups are closed when leaving vi insertion mode.
180
+
181
+ u. Make sure that the vi-mode `C' and `c' commands enter insert mode even if
182
+ the motion command doesn't have any effect.
183
+
184
+ v. Fixed several potential memory leaks in the callback mode context handling.
185
+
186
+ w. If readline is handling a SIGTTOU, make sure SIGTTOU is blocked while
187
+ executing the terminal cleanup code, since it's no longer run in a signal
188
+ handling context.
189
+
190
+ x. Fixed a bug that could cause an application with an application-specific
191
+ redisplay function to crash if the line data structures had not been
192
+ initialized.
193
+
194
+ y. Terminals that are named "dumb" or unknown do not enable bracketed paste
195
+ by default.
196
+
197
+ z. Ensure that disabling bracketed paste turns off highlighting the incremental
198
+ search string when the search is successful.
199
+
200
+ 2. New Features in Readline
201
+
202
+ a. If a second consecutive completion attempt produces matches where the first
203
+ did not, treat it as a new completion attempt and insert a match as
204
+ appropriate.
205
+
206
+ b. Bracketed paste mode works in more places: incremental search strings, vi
207
+ overstrike mode, character search, and reading numeric arguments.
208
+
209
+ c. Readline automatically switches to horizontal scrolling if the terminal has
210
+ only one line.
211
+
212
+ d. Unbinding all key sequences bound to a particular readline function now
213
+ descends into keymaps for multi-key sequences.
214
+
215
+ e. rl-clear-display: new bindable command that clears the screen and, if
216
+ possible, the scrollback buffer (bound to emacs mode M-C-l by default).
217
+
218
+ f. New active mark and face feature: when enabled, it will highlight the text
219
+ inserted by a bracketed paste (the `active region') and the text found by
220
+ incremental and non-incremental history searches. This is tied to bracketed
221
+ paste and can be disabled by turning off bracketed paste.
222
+
223
+ g. Readline sets the mark in several additional commands.
224
+
225
+ h. Bracketed paste mode is enabled by default. There is a configure-time
226
+ option (--enable-bracketed-paste-default) to set the default to on or off.
227
+
228
+ i. Readline tries to take advantage of the more regular structure of UTF-8
229
+ characters to identify the beginning and end of characters when moving
230
+ through the line buffer.
231
+
232
+ j. The bindable operate-and-get-next command (and its default bindings) are
233
+ now part of readline instead of a bash-specific addition.
234
+
235
+ k. The signal cleanup code now blocks SIGINT while processing after a SIGINT.
236
+
237
+ -------------------------------------------------------------------------------
238
+ This document details the changes between this version, readline-8.0, and the
239
+ previous version, readline-7.0.
240
+
241
+ 1. Changes to Readline
242
+
243
+ a. Added a guard to prevent nested macros from causing an infinite expansion
244
+ loop.
245
+
246
+ b. Instead of allocating enough history list entries to hold the maximum list
247
+ size, cap the number allocated initially.
248
+
249
+ c. Added a strategy to avoid allocating huge amounts of memory if a block of
250
+ history entries without timestamps occurs after a block with timestamps.
251
+
252
+ d. Added support for keyboard timeouts when an ESC character is the last
253
+ character in a macro.
254
+
255
+ e. There are several performance improvements when in a UTF-8 locale.
256
+
257
+ f. Readline does a better job of preserving the original set of blocked
258
+ signals when using pselect() to wait for input.
259
+
260
+ g. Fixed a bug that caused multibyte characters in macros to be mishandled.
261
+
262
+ h. Fixed several bugs in the code that calculates line breaks when expanding
263
+ prompts that span several lines, contain multibyte characters, and contain
264
+ invisible character seqeuences.
265
+
266
+ i. Fixed several bugs in cursor positioning when displaying lines with prompts
267
+ containing invisible characters and multibyte characters.
268
+
269
+ j. When performing case-insensitive completion, Readline no longer sorts the
270
+ list of matches unless directed to do so.
271
+
272
+ k. Fixed a problem with key sequences ending with a backslash.
273
+
274
+ l. Fixed out-of-bounds and free memory read errors found via fuzzing.
275
+
276
+ m. Fixed several cases where the mark was set to an invalid value.
277
+
278
+ n. Fixed a problem with the case-changing operators in the case where the
279
+ lower and upper case versions of a character do not have the same number
280
+ of bytes.
281
+
282
+ o. Handle incremental and non-incremental search character reads returning EOF.
283
+
284
+ p. Handle the case where a failing readline command at the end of a multi-key
285
+ sequence could be misinterpreted.
286
+
287
+ q. The history library now prints a meaningful error message if the history
288
+ file isn't a regular file.
289
+
290
+ r. Fixed a problem with vi-mode redo (`.') on a command when trying to replace
291
+ a multibyte character.
292
+
293
+ s. The key binding code now attempts to remove a keymap if a key unbinding
294
+ leaves it empty.
295
+
296
+ t. Fixed a line-wrapping issue that caused problems for some terminal
297
+ emulators.
298
+
299
+ u. If there is a key bound to the tty's VDISCARD special character, readline
300
+ disables VDISCARD while it is active.
301
+
302
+ v. Fixed a problem with exiting bracketed paste mode on terminals that assume
303
+ the bracketed paste mode character sequence contains visible characters.
304
+
305
+ w. Fixed a bug that could cause a key binding command to refer to an
306
+ uninitialized variable.
307
+
308
+ x. Added more UTF-8-specific versions of multibyte functions, and optimized
309
+ existing functions if the current locale uses UTF-8 encoding.
310
+
311
+ y. Fixed a problem with bracketed-paste inserting more than one character and
312
+ interacting with other readline functions.
313
+
314
+ z. Fixed a bug that caused the history library to attempt to append a history
315
+ line to a non-existent history entry.
316
+
317
+ aa. If using bracketed paste mode, output a newline after the \r that is the
318
+ last character of the mode disable string to avoid overwriting output.
319
+
320
+ bb. Fixes to the vi-mode `b', `B', `w', `W', `e', and `E' commands to better
321
+ handle multibyte characters.
322
+
323
+ cc. Fixed a redisplay problem that caused an extra newline to be generated on
324
+ accept-line when the line length is exactly the screenwidth.
325
+
326
+ dd. Fixed a bug with adding multibyte characters to an incremental search
327
+ string.
328
+
329
+ ee. Fixed a bug with redoing text insertions in vi mode.
330
+
331
+ ff. Fixed a bug with pasting text into an incremental search string if bracketed
332
+ paste mode is enabled. ESC cannot be one of the incremental search
333
+ terminator characters for this to work.
334
+
335
+ gg. Fixed a bug with anchored search patterns when performing searches in vi
336
+ mode.
337
+
338
+ 2. New Features in Readline
339
+
340
+ a. Non-incremental vi-mode search (`N', `n') can search for a shell pattern, as
341
+ Posix specifies (uses fnmatch(3) if available).
342
+
343
+ b. There are new `next-screen-line' and `previous-screen-line' bindable
344
+ commands, which move the cursor to the same column in the next, or previous,
345
+ physical line, respectively.
346
+
347
+ c. There are default key bindings for control-arrow-key key combinations.
348
+
349
+ d. A negative argument (-N) to `quoted-insert' means to insert the next N
350
+ characters using quoted-insert.
351
+
352
+ e. New public function: rl_check_signals(), which allows applications to
353
+ respond to signals that readline catches while waiting for input using
354
+ a custom read function.
355
+
356
+ f. There is new support for conditionally testing the readline version in an
357
+ inputrc file, with a full set of arithmetic comparison operators available.
358
+
359
+ g. There is a simple variable comparison facility available for use within an
360
+ inputrc file. Allowable operators are equality and inequality; string
361
+ variables may be compared to a value; boolean variables must be compared to
362
+ either `on' or `off'; variable names are separated from the operator by
363
+ whitespace.
364
+
365
+ h. The history expansion library now understands command and process
366
+ substitution and extended globbing and allows them to appear anywhere in a
367
+ word.
368
+
369
+ i. The history library has a new variable that allows applications to set the
370
+ initial quoting state, so quoting state can be inherited from a previous
371
+ line.
372
+
373
+ j. Readline now allows application-defined keymap names; there is a new public
374
+ function, rl_set_keymap_name(), to do that.
375
+
376
+ k. The "Insert" keypad key, if available, now puts readline into overwrite
377
+ mode.
378
+
379
+ -------------------------------------------------------------------------------
380
+ This document details the changes between this version, readline-7.0, and the
381
+ previous version, readline-6.3.
382
+
383
+ 1. Changes to Readline
384
+
385
+ a. A bug that caused vi-mode `.' to be unable to redo `c', `d', and `y'
386
+ commands with modifiers was fixed.
387
+
388
+ b. Fixed a bug that caused callback mode to dump core when reading a
389
+ multiple-key sequence (e.g., arrow keys).
390
+
391
+ c. Fixed a bug that caused the redisplay code to erase some of the line when
392
+ using horizontal scrolling with incremental search.
393
+
394
+ d. Readline's input handler now performs signal processing if read(2) is
395
+ interrupted by SIGALRM or SIGVTALRM.
396
+
397
+ e. Fixed a problem with revert-all-at-newline freeing freed memory.
398
+
399
+ f. Clarified the documentation for the history_quotes_inhibit_expansion
400
+ variable to note that it inhibits scanning for the history comment
401
+ character and that it only affects double-quoted strings.
402
+
403
+ g. Fixed an off-by-one error in the prompt printed when performing searches.
404
+
405
+ h. Use pselect(2), if available, to wait for input before calling read(2), so
406
+ a SIGWINCH can interrupt it, since it doesn't interrupt read(2).
407
+
408
+ i. Some memory leaks caused by signals interrupting filename completion have
409
+ been fixed.
410
+
411
+ j. Reading EOF twice on a non-empty line causes EOF to be returned, rather
412
+ than the partial line. This can cause partial lines to be executed on
413
+ SIGHUP, for example.
414
+
415
+ k. Fixed a bug concerning deleting multibyte characters from the search
416
+ string while performing an incremental search.
417
+
418
+ l. Fixed a bug with tilde expanding directory names in filename completion.
419
+
420
+ m. Fixed a bug that did not allow binding sequences beginning with a `\'.
421
+
422
+ n. Fixed a redisplay bug involving incorrect line wrapping when the prompt
423
+ contains a multibyte character in the last screen column.
424
+
425
+ o. Fixed a bug that caused history expansion to disregard characters that are
426
+ documented to delimit a history event specifier without requiring `:'.
427
+
428
+ p. Fixed a bug that could cause reading past the end of a string when reading
429
+ the value when binding the set of isearch terminators.
430
+
431
+ q. Fixed a bug that caused readline commands that depend on knowing which
432
+ key invoked them to misbehave when dispatching key sequences that are
433
+ prefixes of other key bindings.
434
+
435
+ r. Paren matching now works in vi insert mode.
436
+
437
+ s. Colored completion prefixes are now displayed using a different color, less
438
+ likely to collide with files.
439
+
440
+ t. Fixed a bug that caused vi-mode character search to misbehave when
441
+ running in callback mode.
442
+
443
+ u. Fixed a bug that caused output to be delayed when input is coming from a
444
+ macro in vi-mode.
445
+
446
+ v. Fixed a bug that caused the vi-mode `.' command to misbehave when redoing
447
+ a multi-key key sequence via a macro.
448
+
449
+ w. Fixed a bug that caused problems with applications that supply their own
450
+ input function when performing completion.
451
+
452
+ x. When read returns -1/EIO when attempting to read a key, return an error
453
+ instead of line termination back to the caller.
454
+
455
+ y. Updated tty auditing feature based on patch from Red Hat.
456
+
457
+ z. Fixed a bug that could cause the history library to crash on overflows
458
+ introduced by malicious editing of timestamps in the history file.
459
+
460
+ aa. The history file writing functions only attempt to create and use a backup
461
+ history file if the history file exists and is a regular file.
462
+
463
+ bb. Fixed an out-of-bounds read in readline's internal tilde expansion interface.
464
+
465
+ cc. Fixed several redisplay bugs with prompt strings containing multibyte
466
+ and non-visible characters whose physical length is longer than the screen
467
+ width.
468
+
469
+ dd. Fixed a redisplay bug with prompt strings containing invisible characters
470
+ whose physical length exceeds the screen width and using incremental search.
471
+
472
+ ee. Readline prints more descriptive error messages when it encounters errors
473
+ while reading an inputrc file.
474
+
475
+ ff. Fixed a bug in the character insertion code that attempts to optimize
476
+ typeahead when it reads a character that is not bound to self-insert and
477
+ resets the key sequence state.
478
+
479
+ gg. When refreshing the line as the result of a key sequence, Readline attempts
480
+ to redraw only the last line of a multiline prompt.
481
+
482
+ hh. Fixed an issue that caused completion of git commands to display
483
+ incorrectly when using colored-completion-prefix.
484
+
485
+ ii. Fixed several redisplay bugs having to do with multibyte characters and
486
+ invisible characters in prompt strings.
487
+
488
+ jj. Fixed a bug that caused mode strings to be displayed incorrectly if the
489
+ prompt was shorter than the mode string.
490
+
491
+ 2. New Features in Readline
492
+
493
+ a. The history truncation code now uses the same error recovery mechanism as
494
+ the history writing code, and restores the old version of the history file
495
+ on error. The error recovery mechanism handles symlinked history files.
496
+
497
+ b. There is a new bindable variable, `enable-bracketed-paste', which enables
498
+ support for a terminal's bracketed paste mode.
499
+
500
+ c. The editing mode indicators can now be strings and are user-settable
501
+ (new `emacs-mode-string', `vi-cmd-mode-string' and `vi-ins-mode-string'
502
+ variables). Mode strings can contain invisible character sequences.
503
+ Setting mode strings to null strings restores the defaults.
504
+
505
+ d. Prompt expansion adds the mode string to the last line of a multi-line
506
+ prompt (one with embedded newlines).
507
+
508
+ e. There is a new bindable variable, `colored-completion-prefix', which, if
509
+ set, causes the common prefix of a set of possible completions to be
510
+ displayed in color.
511
+
512
+ f. There is a new bindable command `vi-yank-pop', a vi-mode version of emacs-
513
+ mode yank-pop.
514
+
515
+ g. The redisplay code underwent several efficiency improvements for multibyte
516
+ locales.
517
+
518
+ h. The insert-char function attempts to batch-insert all pending typeahead
519
+ that maps to self-insert, as long as it is coming from the terminal.
520
+
521
+ i. rl_callback_sigcleanup: a new application function that can clean up and
522
+ unset any state set by readline's callback mode. Intended to be used
523
+ after a signal.
524
+
525
+ j. If an incremental search string has its last character removed with DEL, the
526
+ resulting empty search string no longer matches the previous line.
527
+
528
+ k. If readline reads a history file that begins with `#' (or the value of
529
+ the history comment character) and has enabled history timestamps, the history
530
+ entries are assumed to be delimited by timestamps. This allows multi-line
531
+ history entries.
532
+
533
+ l. Readline now throws an error if it parses a key binding without a terminating
534
+ `:' or whitespace.
535
+
536
+ m. The default binding for ^W in vi mode now uses word boundaries specified
537
+ by Posix (vi-unix-word-rubout is bindable command name).
538
+
539
+ n. rl_clear_visible_line: new application-callable function; clears all
540
+ screen lines occupied by the current visible readline line.
541
+
542
+ o. rl_tty_set_echoing: application-callable function that controls whether
543
+ or not readline thinks it is echoing terminal output.
544
+
545
+ p. Handle >| and strings of digits preceding and following redirection
546
+ specifications as single tokens when tokenizing the line for history
547
+ expansion.
548
+
549
+ q. Fixed a bug with displaying completions when the prefix display length
550
+ is greater than the length of the completions to be displayed.
551
+
552
+ r. The :p history modifier now applies to the entire line, so any expansion
553
+ specifying :p causes the line to be printed instead of expanded.
554
+
555
+ s. New application-callable function: rl_pending_signal(): returns the signal
556
+ number of any signal readline has caught but not yet handled.
557
+
558
+ t. New application-settable variable: rl_persistent_signal_handlers: if set
559
+ to a non-zero value, readline will enable the readline-6.2 signal handler
560
+ behavior in callback mode: handlers are installed when
561
+ rl_callback_handler_install is called and removed removed when a complete
562
+ line has been read.
563
+
564
+ -------------------------------------------------------------------------------
565
+ This document details the changes between this version, readline-6.3, and the
566
+ previous version, readline-6.2.
567
+
568
+ 1. Changes to Readline
569
+
570
+ a. Fixed a bug that did not allow the `dd', `cc', or `yy' vi editing mode
571
+ commands to work on the entire line.
572
+
573
+ b. Fixed a bug that caused redisplay problems with prompts longer than 128
574
+ characters and history searches.
575
+
576
+ c. Fixed a bug that caused readline to try and run code to modify its idea
577
+ of the screen size in a signal handler context upon receiving a SIGWINCH.
578
+
579
+ d. Fixed a bug that caused the `meta' key to be enabled beyond the duration
580
+ of an individual call top readline().
581
+
582
+ e. Added a workaround for a wcwidth bug in Mac OS X that caused readline's
583
+ redisplay to mishandle zero-width combining characters.
584
+
585
+ f. Fixed a bug that caused readline to `forget' part of a key sequence when
586
+ a multiple-key sequence caused it to break out of an incremental search.
587
+
588
+ g. Fixed bugs that caused readline to execute code in a signal handler
589
+ context if interrupted while reading from the file system during completion.
590
+
591
+ h. Fixed a bug that caused readline to `forget' part of a key sequence when
592
+ reading an unbound multi-character key sequence.
593
+
594
+ i. Fixed a bug that caused Readline's signal handlers to be installed beyond
595
+ the bounds of a single call to readline().
596
+
597
+ j. Fixed a bug that caused the `.' command to not redo the most recent `R'
598
+ command in vi mode.
599
+
600
+ k. Fixed a bug that caused ignoring case in completion matches to result in
601
+ readline using the wrong match.
602
+
603
+ l. Paren matching now works in vi insert mode.
604
+
605
+ m. Fix menu-completion to make show-all-if-ambiguous and menu-complete-display-prefix
606
+ work together.
607
+
608
+ n. Fixed a bug that didn't allow the `cc', `dd', or `yy' commands to be redone
609
+ in vi editing mode.
610
+
611
+ o. Fixed a bug that caused the filename comparison code to not compare
612
+ multibyte characters correctly when using case-sensitive or case-mapping
613
+ comparisons.
614
+
615
+ p. Fixed the input reading loop to call the input hook function only when there
616
+ is no terminal input available.
617
+
618
+ q. Fixed a bug that caused binding a macro to a multi-character key sequence
619
+ where the sequence and macro value share a common prefix to not perform
620
+ the macro replacement.
621
+
622
+ r. Fixed several redisplay errors with multibyte characters and prompts
623
+ containing invisible characters when using horizontal scrolling.
624
+
625
+ s. Fixed a bug that caused redisplay errors when trying to overwrite
626
+ existing characters using multibyte characters.
627
+
628
+ t. Fixed a bug in vi mode that caused the arrow keys to set the saved last
629
+ vi-mode command to the wrong value.
630
+
631
+ u. Fixed a bug that caused double-quoted strings to be scanned incorrectly
632
+ when being used as the value of a readline variable assignment.
633
+
634
+ v. Fixed a bug with vi mode that prevented `.' from repeating a command
635
+ entered on a previous line (command).
636
+
637
+ w. Fixed a bug that could cause completion to core dump if it was interrupted
638
+ by a signal.
639
+
640
+ x. Fixed a bug that could cause readline to crash and seg fault attempting to
641
+ expand an empty history entry.
642
+
643
+ y. Fixed a bug that caused display problems with multi-line prompts containing
644
+ invisible characters on multiple lines.
645
+
646
+ z. Fixed a bug that caused effects made by undoing changes to a history line to
647
+ be discarded.
648
+
649
+ 2. New Features in Readline
650
+
651
+ a. Readline is now more responsive to SIGHUP and other fatal signals when
652
+ reading input from the terminal or performing word completion but no
653
+ longer attempts to run any not-allowable functions from a signal handler
654
+ context.
655
+
656
+ b. There are new bindable commands to search the history for the string of
657
+ characters between the beginning of the line and the point
658
+ (history-substring-search-forward, history-substring-search-backward)
659
+
660
+ c. Readline allows quoted strings as the values of variables when setting
661
+ them with `set'. As a side effect, trailing spaces and tabs are ignored
662
+ when setting a string variable's value.
663
+
664
+ d. The history library creates a backup of the history file when writing it
665
+ and restores the backup on a write error.
666
+
667
+ e. New application-settable variable: rl_filename_stat_hook: a function called
668
+ with a filename before using it in a call to stat(2). Bash uses it to
669
+ expand shell variables so things like $HOME/Downloads have a slash
670
+ appended.
671
+
672
+ f. New bindable function `print-last-kbd-macro', prints the most-recently-
673
+ defined keyboard macro in a reusable format.
674
+
675
+ g. New user-settable variable `colored-stats', enables use of colored text
676
+ to denote file types when displaying possible completions (colored analog
677
+ of visible-stats).
678
+
679
+ h. New user-settable variable `keyseq-timout', acts as an inter-character
680
+ timeout when reading input or incremental search strings.
681
+
682
+ i. New application-callable function: rl_clear_history. Clears the history list
683
+ and frees all readline-associated private data.
684
+
685
+ j. New user-settable variable, show-mode-in-prompt, adds a characters to the
686
+ beginning of the prompt indicating the current editing mode.
687
+
688
+ k. New application-settable variable: rl_input_available_hook; function to be
689
+ called when readline needs to check whether there is data available on its
690
+ input source. The default hook checks rl_instream.
691
+
692
+ l. Readline calls an application-set event hook (rl_signal_event_hook) after
693
+ it gets a signal while reading input (read returns -1/EINTR but readline
694
+ does not handle the signal immediately) to allow the application to handle
695
+ or otherwise note it. Not currently called for SIGHUP or SIGTERM.
696
+
697
+ m. If the user-settable variable `history-size' is set to a value less than
698
+ 0, the history list size is unlimited.
699
+
700
+ n. When creating shared libraries on Mac OS X, the pathname written into the
701
+ library (install_name) no longer includes the minor version number.
702
+
703
+ -------------------------------------------------------------------------------
704
+ This document details the changes between this version, readline-6.2,
705
+ and the previous version, readline-6.1.
706
+
707
+ 1. Changes to Readline
708
+
709
+ a. Fixed a bug that caused the unconverted filename to be added to the list of
710
+ completions when the application specified filename conversion functions.
711
+
712
+ b. Fixed a bug that caused the wrong filename to be passed to opendir when the
713
+ application has specified a filename dequoting function.
714
+
715
+ c. Fixed a bug when repeating a character search in vi mode in the case where
716
+ there was no search to repeat.
717
+
718
+ d. When show-all-if-ambiguous is set, the completion routines no longer insert
719
+ a common match prefix that is shorter than the text being completed.
720
+
721
+ e. The full set of vi editing commands may now be used in callback mode.
722
+
723
+ f. Fixed a bug that caused readline to not update its idea of the terminal
724
+ dimensions while running in `no-echo' mode.
725
+
726
+ h. Fixed a bug that caused readline to dump core if an application called
727
+ rl_prep_terminal without setting rl_instream.
728
+
729
+ i. Fixed a bug that caused meta-prefixed characters bound to incremental
730
+ search forward or backward to not be recognized if they were typed
731
+ subsequently.
732
+
733
+ j. The incremental search code treats key sequences that map to the same
734
+ functions as (default) ^G, ^W, and ^Y as equivalent to those characters.
735
+
736
+ k. Fixed a bug in menu-complete that caused it to misbehave with large
737
+ negative argument.
738
+
739
+ l. Fixed a bug that caused vi-mode yank-last-arg to ring the bell when invoked
740
+ at the end of the line.
741
+
742
+ m. Fixed a bug that made an explicit argument of 0 to yank-last-arg behave
743
+ as if it were a negative argument.
744
+
745
+ n. Fixed a bug that caused directory names in words to be completed to not
746
+ be dequoted correctly.
747
+
748
+ 2. New Features in Readline
749
+
750
+ a. The history library does not try to write the history filename in the
751
+ current directory if $HOME is unset. This closes a potential security
752
+ problem if the application does not specify a history filename.
753
+
754
+ b. New bindable variable `completion-display-width' to set the number of
755
+ columns used when displaying completions.
756
+
757
+ c. New bindable variable `completion-case-map' to cause case-insensitive
758
+ completion to treat `-' and `_' as identical.
759
+
760
+ d. There are new bindable vi-mode command names to avoid readline's case-
761
+ insensitive matching not allowing them to be bound separately.
762
+
763
+ e. New bindable variable `menu-complete-display-prefix' causes the menu
764
+ completion code to display the common prefix of the possible completions
765
+ before cycling through the list, instead of after.
766
+
767
+ -------------------------------------------------------------------------------
768
+ This document details the changes between this version, readline-6.1,
769
+ and the previous version, readline-6.0.
770
+
771
+ 1. Changes to Readline
772
+
773
+ a. The SIGWINCH signal handler now avoids calling the redisplay code if
774
+ one arrives while in the middle of redisplay.
775
+
776
+ b. Changes to the timeout code to make sure that timeout values greater
777
+ than one second are handled better.
778
+
779
+ c. Fixed a bug in the redisplay code that was triggered by a prompt
780
+ containing invisible characters exactly the width of the screen.
781
+
782
+ d. Fixed a bug in the redisplay code encountered when running in horizontal
783
+ scroll mode.
784
+
785
+ e. Fixed a bug that prevented menu completion from properly completing
786
+ filenames.
787
+
788
+ f. Fixed a redisplay bug caused by a multibyte character causing a line to
789
+ wrap.
790
+
791
+ g. Fixed a bug that caused key sequences of two characters to not be
792
+ recognized when a longer sequence identical in the first two characters
793
+ was bound.
794
+
795
+ h. Fixed a bug that caused history expansion to be attempted on $'...'
796
+ single-quoted strings.
797
+
798
+ i. Fixed a bug that caused incorrect redisplay when the prompt contained
799
+ multibyte characters in an `invisible' sequence bracketed by \[ and
800
+ \].
801
+
802
+ j. Fixed a bug that caused history expansion to short-circuit after
803
+ encountering a multibyte character.
804
+
805
+ k. Fixed a bug that caused applications using the callback interface to not
806
+ react to SIGINT (or other signals) until another character arrived.
807
+
808
+ 2. New Features in Readline
809
+
810
+ a. New bindable function: menu-complete-backward.
811
+
812
+ b. In the vi insertion keymap, C-n is now bound to menu-complete by default,
813
+ and C-p to menu-complete-backward.
814
+
815
+ c. When in vi command mode, repeatedly hitting ESC now does nothing, even
816
+ when ESC introduces a bound key sequence. This is closer to how
817
+ historical vi behaves.
818
+
819
+ d. New bindable function: skip-csi-sequence. Can be used as a default to
820
+ consume key sequences generated by keys like Home and End without having
821
+ to bind all keys.
822
+
823
+ e. New application-settable function: rl_filename_rewrite_hook. Can be used
824
+ to rewrite or modify filenames read from the file system before they are
825
+ compared to the word to be completed.
826
+
827
+ f. New bindable variable: skip-completed-text, active when completing in the
828
+ middle of a word. If enabled, it means that characters in the completion
829
+ that match characters in the remainder of the word are "skipped" rather
830
+ than inserted into the line.
831
+
832
+ g. The pre-readline-6.0 version of menu completion is available as
833
+ "old-menu-complete" for users who do not like the readline-6.0 version.
834
+
835
+ h. New bindable variable: echo-control-characters. If enabled, and the
836
+ tty ECHOCTL bit is set, controls the echoing of characters corresponding
837
+ to keyboard-generated signals.
838
+
839
+ i. New bindable variable: enable-meta-key. Controls whether or not readline
840
+ sends the smm/rmm sequences if the terminal indicates it has a meta key
841
+ that enables eight-bit characters.
842
+
843
+ -------------------------------------------------------------------------------
844
+ This document details the changes between this version, readline-6.0,
845
+ and the previous version, readline-5.2.
846
+
847
+ 1. Changes to Readline
848
+
849
+ a. Fixed a number of redisplay errors in environments supporting multibyte
850
+ characters.
851
+
852
+ b. Fixed bugs in vi command mode that caused motion commands to inappropriately
853
+ set the mark.
854
+
855
+ c. When using the arrow keys in vi insertion mode, readline allows movement
856
+ beyond the current end of the line (unlike command mode).
857
+
858
+ d. Fixed bugs that caused readline to loop when the terminal has been taken
859
+ away and reads return -1/EIO.
860
+
861
+ e. Fixed bugs in redisplay occurring when displaying prompts containing
862
+ invisible characters.
863
+
864
+ f. Fixed a bug that caused the completion append character to not be reset to
865
+ the default after an application-specified completion function changed it.
866
+
867
+ g. Fixed a problem that caused incorrect positioning of the cursor while in
868
+ emacs editing mode when moving forward at the end of a line while using
869
+ a locale supporting multibyte characters.
870
+
871
+ h. Fixed an off-by-one error that caused readline to drop every 511th
872
+ character of buffered input.
873
+
874
+ i. Fixed a bug that resulted in SIGTERM not being caught or cleaned up.
875
+
876
+ j. Fixed redisplay bugs caused by multiline prompts with invisible characters
877
+ or no characters following the final newline.
878
+
879
+ k. Fixed redisplay bug caused by prompts consisting solely of invisible
880
+ characters.
881
+
882
+ l. Fixed a bug in the code that buffers characters received very quickly in
883
+ succession which caused characters to be dropped.
884
+
885
+ m. Fixed a bug that caused readline to reference uninitialized data structures
886
+ if it received a SIGWINCH before completing initialization.
887
+
888
+ n. Fixed a bug that caused the vi-mode `last command' to be set incorrectly
889
+ and therefore unrepeatable.
890
+
891
+ o. Fixed a bug that caused readline to disable echoing when it was being used
892
+ with an output file descriptor that was not a terminal.
893
+
894
+ p. Readline now blocks SIGINT while manipulating internal data structures
895
+ during redisplay.
896
+
897
+ q. Fixed a bug in redisplay that caused readline to segfault when pasting a
898
+ very long line (over 130,000 characters).
899
+
900
+ r. Fixed bugs in redisplay when using prompts with no visible printing
901
+ characters.
902
+
903
+ s. Fixed a bug that caused redisplay errors when using prompts with invisible
904
+ characters and numeric arguments to a command in a multibyte locale.
905
+
906
+ t. Fixed a bug that caused redisplay errors when using prompts with invisible
907
+ characters spanning more than two physical screen lines.
908
+
909
+ 2. New Features in Readline
910
+
911
+ a. A new variable, rl_sort_completion_matches; allows applications to inhibit
912
+ match list sorting (but beware: some things don't work right if
913
+ applications do this).
914
+
915
+ b. A new variable, rl_completion_invoking_key; allows applications to discover
916
+ the key that invoked rl_complete or rl_menu_complete.
917
+
918
+ c. The functions rl_block_sigint and rl_release_sigint are now public and
919
+ available to calling applications who want to protect critical sections
920
+ (like redisplay).
921
+
922
+ d. The functions rl_save_state and rl_restore_state are now public and
923
+ available to calling applications; documented rest of readline's state
924
+ flag values.
925
+
926
+ e. A new user-settable variable, `history-size', allows setting the maximum
927
+ number of entries in the history list.
928
+
929
+ f. There is a new implementation of menu completion, with several improvements
930
+ over the old; the most notable improvement is a better `completions
931
+ browsing' mode.
932
+
933
+ g. The menu completion code now uses the rl_menu_completion_entry_function
934
+ variable, allowing applications to provide their own menu completion
935
+ generators.
936
+
937
+ h. There is support for replacing a prefix of a pathname with a `...' when
938
+ displaying possible completions. This is controllable by setting the
939
+ `completion-prefix-display-length' variable. Matches with a common prefix
940
+ longer than this value have the common prefix replaced with `...'.
941
+
942
+ i. There is a new `revert-all-at-newline' variable. If enabled, readline will
943
+ undo all outstanding changes to all history lines when `accept-line' is
944
+ executed.
945
+
946
+ -------------------------------------------------------------------------------
947
+ This document details the changes between this version, readline-5.2,
948
+ and the previous version, readline-5.1.
949
+
950
+ 1. Changes to Readline
951
+
952
+ a. Fixed a problem that caused segmentation faults when using readline in
953
+ callback mode and typing consecutive DEL characters on an empty line.
954
+
955
+ b. Fixed several redisplay problems with multibyte characters, all having to
956
+ do with the different code paths and variable meanings between single-byte
957
+ and multibyte character redisplay.
958
+
959
+ c. Fixed a problem with key sequence translation when presented with the
960
+ sequence \M-\C-x.
961
+
962
+ d. Fixed a problem that prevented the `a' command in vi mode from being
963
+ undone and redone properly.
964
+
965
+ e. Fixed a problem that prevented empty inserts in vi mode from being undone
966
+ properly.
967
+
968
+ f. Fixed a problem that caused readline to initialize with an incorrect idea
969
+ of whether or not the terminal can autowrap.
970
+
971
+ g. Fixed output of key bindings (like bash `bind -p') to honor the setting of
972
+ convert-meta and use \e where appropriate.
973
+
974
+ h. Changed the default filename completion function to call the filename
975
+ dequoting function if the directory completion hook isn't set. This means
976
+ that any directory completion hooks need to dequote the directory name,
977
+ since application-specific hooks need to know how the word was quoted,
978
+ even if no other changes are made.
979
+
980
+ i. Fixed a bug with creating the prompt for a non-interactive search string
981
+ when there are non-printing characters in the primary prompt.
982
+
983
+ j. Fixed a bug that caused prompts with invisible characters to be redrawn
984
+ multiple times in a multibyte locale.
985
+
986
+ k. Fixed a bug that could cause the key sequence scanning code to return the
987
+ wrong function.
988
+
989
+ l. Fixed a problem with the callback interface that caused it to fail when
990
+ using multi-character keyboard macros.
991
+
992
+ m. Fixed a bug that could cause a core dump when an edited history entry was
993
+ re-executed under certain conditions.
994
+
995
+ n. Fixed a bug that caused readline to reference freed memory when attmpting
996
+ to display a portion of the prompt.
997
+
998
+ o. Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing
999
+ the prompt and input line multiple times.
1000
+
1001
+ p. Fixed history expansion to not be confused by here-string redirection.
1002
+
1003
+ q. Readline no longer treats read errors by converting them to newlines, as
1004
+ it does with EOF. This caused partial lines to be returned from readline().
1005
+
1006
+ r. Fixed a redisplay bug that occurred in multibyte-capable locales when the
1007
+ prompt was one character longer than the screen width.
1008
+
1009
+ 2. New Features in Readline
1010
+
1011
+ a. Calling applications can now set the keyboard timeout to 0, allowing
1012
+ poll-like behavior.
1013
+
1014
+ b. The value of SYS_INPUTRC (configurable at compilation time) is now used as
1015
+ the default last-ditch startup file.
1016
+
1017
+ c. The history file reading functions now allow windows-like \r\n line
1018
+ terminators.
1019
+
1020
+ -------------------------------------------------------------------------------
1021
+ This document details the changes between this version, readline-5.1,
1022
+ and the previous version, readline-5.0.
1023
+
1024
+ 1. Changes to Readline
1025
+
1026
+ a. Fixed a bug that caused multiliine prompts to be wrapped and displayed
1027
+ incorrectly.
1028
+
1029
+ b. Fixed a bug that caused ^P/^N in emacs mode to fail to display the current
1030
+ line correctly.
1031
+
1032
+ c. Fixed a problem in computing the number of invisible characters on the first
1033
+ line of a prompt whose length exceeds the screen width.
1034
+
1035
+ d. Fixed vi-mode searching so that failure preserves the current line rather
1036
+ than the last line in the history list.
1037
+
1038
+ e. Fixed the vi-mode `~' command (change-case) to have the correct behavior at
1039
+ end-of-line when manipulating multibyte characters.
1040
+
1041
+ f. Fixed the vi-mode `r' command (change-char) to have the correct behavior at
1042
+ end-of-line when manipulating multibyte characters.
1043
+
1044
+ g. Fixed multiple bugs in the redisplay of multibyte characters: displaying
1045
+ prompts longer than the screen width containing multibyte characters,
1046
+
1047
+ h. Fix the calculation of the number of physical characters in the prompt
1048
+ string when it contains multibyte characters.
1049
+
1050
+ i. A non-zero value for the `rl_complete_suppress_append' variable now causes
1051
+ no `/' to be appended to a directory name.
1052
+
1053
+ j. Fixed forward-word and backward-word to work when words contained
1054
+ multibyte characters.
1055
+
1056
+ k. Fixed a bug in finding the delimiter of a `?' substring when performing
1057
+ history expansion in a locale that supports multibyte characters.
1058
+
1059
+ l. Fixed a memory leak caused by not freeing the timestamp in a history entry.
1060
+
1061
+ m. Fixed a bug that caused "\M-x" style key bindings to not obey the setting
1062
+ of the `convert-meta' variable.
1063
+
1064
+ n. Fixed saving and restoring primary prompt when prompting for incremental
1065
+ and non-incremental searches; search prompts now display multibyte
1066
+ characters correctly.
1067
+
1068
+ o. Fixed a bug that caused keys originally bound to self-insert but shadowed
1069
+ by a multi-character key sequence to not be inserted.
1070
+
1071
+ p. Fixed code so rl_prep_term_function and rl_deprep_term_function aren't
1072
+ dereferenced if NULL (matching the documentation).
1073
+
1074
+ q. Extensive changes to readline to add enough state so that commands
1075
+ requiring additional characters (searches, multi-key sequences, numeric
1076
+ arguments, commands requiring an additional specifier character like
1077
+ vi-mode change-char, etc.) work without synchronously waiting for
1078
+ additional input.
1079
+
1080
+ r. Lots of changes so readline builds and runs on MinGW.
1081
+
1082
+ s. Readline no longer tries to modify the terminal settings when running in
1083
+ callback mode.
1084
+
1085
+ t. The Readline display code no longer sets the location of the last invisible
1086
+ character in the prompt if the \[\] sequence is empty.
1087
+
1088
+ u. The `change-case' command now correctly changes the case of multibyte
1089
+ characters.
1090
+
1091
+ v. Changes to the shared library construction scripts to deal with Windows
1092
+ DLL naming conventions for Cygwin.
1093
+
1094
+ w. Fixed the redisplay code to avoid core dumps resulting from a poorly-timed
1095
+ SIGWINCH.
1096
+
1097
+ x. Fixed the non-incremental search code in vi mode to dispose of any current
1098
+ undo list when copying a line from the history into the current editing
1099
+ buffer.
1100
+
1101
+ y. Fixed a bug that caused reversing the incremental search direction to
1102
+ not work correctly.
1103
+
1104
+ z. Fixed the vi-mode `U' command to only undo up to the first time insert mode
1105
+ was entered, as Posix specifies.
1106
+
1107
+ aa. Fixed a bug in the vi-mode `r' command that left the cursor in the wrong
1108
+ place.
1109
+
1110
+ bb. Fixed a redisplay bug caused by moving the cursor vertically to a line
1111
+ with invisible characters in the prompt in a multibyte locale.
1112
+
1113
+ cc. Fixed a bug that could cause the terminal special chars to be bound in the
1114
+ wrong keymap in vi mode.
1115
+
1116
+ 2. New Features in Readline
1117
+
1118
+ a. The key sequence sent by the keypad `delete' key is now automatically
1119
+ bound to delete-char.
1120
+
1121
+ b. A negative argument to menu-complete now cycles backward through the
1122
+ completion list.
1123
+
1124
+ c. A new bindable readline variable: bind-tty-special-chars. If non-zero,
1125
+ readline will bind the terminal special characters to their readline
1126
+ equivalents when it's called (on by default).
1127
+
1128
+ d. New bindable command: vi-rubout. Saves deleted text for possible
1129
+ reinsertion, as with any vi-mode `text modification' command; `X' is bound
1130
+ to this in vi command mode.
1131
+
1132
+ e. If the rl_completion_query_items is set to a value < 0, readline never
1133
+ asks the user whether or not to view the possible completions.
1134
+
1135
+ f. The `C-w' binding in incremental search now understands multibyte
1136
+ characters.
1137
+
1138
+ g. New application-callable auxiliary function, rl_variable_value, returns
1139
+ a string corresponding to a readline variable's value.
1140
+
1141
+ h. When parsing inputrc files and variable binding commands, the parser
1142
+ strips trailing whitespace from values assigned to boolean variables
1143
+ before checking them.
1144
+
1145
+ i. A new external application-controllable variable that allows the LINES
1146
+ and COLUMNS environment variables to set the window size regardless of
1147
+ what the kernel returns.
1148
+
1149
+ -------------------------------------------------------------------------------
1150
+ This document details the changes between this version, readline-5.0,
1151
+ and the previous version, readline-4.3.
1152
+
1153
+ 1. Changes to Readline
1154
+
1155
+ a. Fixes to avoid core dumps because of null pointer references in the
1156
+ multibyte character code.
1157
+
1158
+ b. Fix to avoid infinite recursion caused by certain key combinations.
1159
+
1160
+ c. Fixed a bug that caused the vi-mode `last command' to be set incorrectly.
1161
+
1162
+ d. Readline no longer tries to read ahead more than one line of input, even
1163
+ when more is available.
1164
+
1165
+ e. Fixed the code that adjusts the point to not mishandle null wide
1166
+ characters.
1167
+
1168
+ f. Fixed a bug in the history expansion `g' modifier that caused it to skip
1169
+ every other match.
1170
+
1171
+ g. Fixed a bug that caused the prompt to overwrite previous output when the
1172
+ output doesn't contain a newline and the locale supports multibyte
1173
+ characters. This same change fixes the problem of readline redisplay
1174
+ slowing down dramatically as the line gets longer in multibyte locales.
1175
+
1176
+ h. History traversal with arrow keys in vi insertion mode causes the cursor
1177
+ to be placed at the end of the new line, like in emacs mode.
1178
+
1179
+ i. The locale initialization code does a better job of using the right
1180
+ precedence and defaulting when checking the appropriate environment
1181
+ variables.
1182
+
1183
+ j. Fixed the history word tokenizer to handle <( and >( better when used as
1184
+ part of bash.
1185
+
1186
+ k. The overwrite mode code received several bug fixes to improve undo.
1187
+
1188
+ l. Many speedups to the multibyte character redisplay code.
1189
+
1190
+ m. The callback character reading interface should not hang waiting to read
1191
+ keyboard input.
1192
+
1193
+ n. Fixed a bug with redoing vi-mode `s' command.
1194
+
1195
+ o. The code that initializes the terminal tracks changes made to the terminal
1196
+ special characters with stty(1) (or equivalent), so that these changes
1197
+ are reflected in the readline bindings. New application-callable function
1198
+ to make it work: rl_tty_unset_default_bindings().
1199
+
1200
+ p. Fixed a bug that could cause garbage to be inserted in the buffer when
1201
+ changing character case in vi mode when using a multibyte locale.
1202
+
1203
+ q. Fixed a bug in the redisplay code that caused problems on systems
1204
+ supporting multibyte characters when moving between history lines when the
1205
+ new line has more glyphs but fewer bytes.
1206
+
1207
+ r. Undo and redo now work better after exiting vi insertion mode.
1208
+
1209
+ s. Make sure system calls are restarted after a SIGWINCH is received using
1210
+ SA_RESTART.
1211
+
1212
+ t. Improvements to the code that displays possible completions when using
1213
+ multibyte characters.
1214
+
1215
+ u. Fixed a problem when parsing nested if statements in inputrc files.
1216
+
1217
+ v. The completer now takes multibyte characters into account when looking for
1218
+ quoted substrings on which to perform completion.
1219
+
1220
+ w. The history search functions now perform better bounds checking on the
1221
+ history list.
1222
+
1223
+ x. Change to history expansion functions to treat `^' as equivalent to word
1224
+ one, as the documentation states.
1225
+
1226
+ y. Some changes to the display code to improve display and redisplay of
1227
+ multibyte characters.
1228
+
1229
+ z. Changes to speed up the multibyte character redisplay code.
1230
+
1231
+ aa. Fixed a bug in the vi-mode `E' command that caused it to skip over the
1232
+ last character of a word if invoked while point was on the word's
1233
+ next-to-last character.
1234
+
1235
+ bb. Fixed a bug that could cause incorrect filename quoting when
1236
+ case-insensitive completion was enabled and the word being completed
1237
+ contained backslashes quoting word break characters.
1238
+
1239
+ cc. Fixed a bug in redisplay triggered when the prompt string contains
1240
+ invisible characters.
1241
+
1242
+ dd. Fixed some display (and other) bugs encountered in multibyte locales
1243
+ when a non-ascii character was the last character on a line.
1244
+
1245
+ ee. Fixed some display bugs caused by multibyte characters in prompt strings.
1246
+
1247
+ ff. Fixed a problem with history expansion caused by non-whitespace characters
1248
+ used as history word delimiters.
1249
+
1250
+ gg. Fixed a problem that could cause readline to refer to freed memory when
1251
+ moving between history lines while doing searches.
1252
+
1253
+ hh. Improvements to the code that expands and displays prompt strings
1254
+ containing multibyte characters.
1255
+
1256
+ ii. Fixed a problem with vi-mode not correctly remembering the numeric argument
1257
+ to the last `c'hange command for later use with `.'.
1258
+
1259
+ jj. Fixed a bug in vi-mode that caused multi-digit count arguments to work
1260
+ incorrectly.
1261
+
1262
+ kk. Fixed a problem in vi-mode that caused the last text modification command
1263
+ to not be remembered across different command lines.
1264
+
1265
+ ll. Fixed problems with changing characters and changing case at the end of
1266
+ the line.
1267
+
1268
+ mm. Fixed a problem with readline saving the contents of the current line
1269
+ before beginning a non-interactive search.
1270
+
1271
+ nn. Fixed a problem with EOF detection when using rl_event_hook.
1272
+
1273
+ oo. Fixed a problem with the vi mode `p' and `P' commands ignoring numeric
1274
+ arguments.
1275
+
1276
+ 2. New Features in Readline
1277
+
1278
+ a. History expansion has a new `a' modifier equivalent to the `g' modifier
1279
+ for compatibility with the BSD csh.
1280
+
1281
+ b. History expansion has a new `G' modifier equivalent to the BSD csh `g'
1282
+ modifier, which performs a substitution once per word.
1283
+
1284
+ c. All non-incremental search operations may now undo the operation of
1285
+ replacing the current line with the history line.
1286
+
1287
+ d. The text inserted by an `a' command in vi mode can be reinserted with
1288
+ `.'.
1289
+
1290
+ e. New bindable variable, `show-all-if-unmodified'. If set, the readline
1291
+ completer will list possible completions immediately if there is more
1292
+ than one completion and partial completion cannot be performed.
1293
+
1294
+ f. There is a new application-callable `free_history_entry()' function.
1295
+
1296
+ g. History list entries now contain timestamp information; the history file
1297
+ functions know how to read and write timestamp information associated
1298
+ with each entry.
1299
+
1300
+ h. Four new key binding functions have been added:
1301
+
1302
+ rl_bind_key_if_unbound()
1303
+ rl_bind_key_if_unbound_in_map()
1304
+ rl_bind_keyseq_if_unbound()
1305
+ rl_bind_keyseq_if_unbound_in_map()
1306
+
1307
+ i. New application variable, rl_completion_quote_character, set to any
1308
+ quote character readline finds before it calls the application completion
1309
+ function.
1310
+
1311
+ j. New application variable, rl_completion_suppress_quote, settable by an
1312
+ application completion function. If set to non-zero, readline does not
1313
+ attempt to append a closing quote to a completed word.
1314
+
1315
+ k. New application variable, rl_completion_found_quote, set to a non-zero
1316
+ value if readline determines that the word to be completed is quoted.
1317
+ Set before readline calls any application completion function.
1318
+
1319
+ l. New function hook, rl_completion_word_break_hook, called when readline
1320
+ needs to break a line into words when completion is attempted. Allows
1321
+ the word break characters to vary based on position in the line.
1322
+
1323
+ m. New bindable command: unix-filename-rubout. Does the same thing as
1324
+ unix-word-rubout, but adds `/' to the set of word delimiters.
1325
+
1326
+ n. When listing completions, directories have a `/' appended if the
1327
+ `mark-directories' option has been enabled.
1328
+
1329
+ -------------------------------------------------------------------------------
1330
+ This document details the changes between this version, readline-4.3,
1331
+ and the previous version, readline-4.2a.
1332
+
1333
+ 1. Changes to Readline
1334
+
1335
+ a. Fixed output of comment-begin character when listing variable values.
1336
+
1337
+ b. Added some default key bindings for common escape sequences produced by
1338
+ HOME and END keys.
1339
+
1340
+ c. Fixed the mark handling code to be more emacs-compatible.
1341
+
1342
+ d. A bug was fixed in the code that prints possible completions to keep it
1343
+ from printing empty strings in certain circumstances.
1344
+
1345
+ e. Change the key sequence printing code to print ESC as M\- if ESC is a
1346
+ meta-prefix character -- it's easier for users to understand than \e.
1347
+
1348
+ f. Fixed unstifle_history() to return values that match the documentation.
1349
+
1350
+ g. Fixed the event loop (rl_event_hook) to handle the case where the input
1351
+ file descriptor is invalidated.
1352
+
1353
+ h. Fixed the prompt display code to work better when the application has a
1354
+ custom redisplay function.
1355
+
1356
+ i. Changes to make reading and writing the history file a little faster, and
1357
+ to cope with huge history files without calling abort(3) from xmalloc.
1358
+
1359
+ j. The vi-mode `S' and `s' commands are now undone correctly.
1360
+
1361
+ k. Fixed a problem which caused the display to be messed up when the last
1362
+ line of a multi-line prompt (possibly containing invisible characters)
1363
+ was longer than the screen width.
1364
+
1365
+ 2. New Features in Readline
1366
+
1367
+ a. Support for key `subsequences': allows, e.g., ESC and ESC-a to both
1368
+ be bound to readline functions. Now the arrow keys may be used in vi
1369
+ insert mode.
1370
+
1371
+ b. When listing completions, and the number of lines displayed is more than
1372
+ the screen length, readline uses an internal pager to display the results.
1373
+ This is controlled by the `page-completions' variable (default on).
1374
+
1375
+ c. New code to handle editing and displaying multibyte characters.
1376
+
1377
+ d. The behavior introduced in bash-2.05a of deciding whether or not to
1378
+ append a slash to a completed name that is a symlink to a directory has
1379
+ been made optional, controlled by the `mark-symlinked-directories'
1380
+ variable (default is the 2.05a behavior).
1381
+
1382
+ e. The `insert-comment' command now acts as a toggle if given a numeric
1383
+ argument: if the first characters on the line don't specify a
1384
+ comment, insert one; if they do, delete the comment text
1385
+
1386
+ f. New application-settable completion variable:
1387
+ rl_completion_mark_symlink_dirs, allows an application's completion
1388
+ function to temporarily override the user's preference for appending
1389
+ slashes to names which are symlinks to directories.
1390
+
1391
+ g. New function available to application completion functions:
1392
+ rl_completion_mode, to tell how the completion function was invoked
1393
+ and decide which argument to supply to rl_complete_internal (to list
1394
+ completions, etc.).
1395
+
1396
+ h. Readline now has an overwrite mode, toggled by the `overwrite-mode'
1397
+ bindable command, which could be bound to `Insert'.
1398
+
1399
+ i. New application-settable completion variable:
1400
+ rl_completion_suppress_append, inhibits appending of
1401
+ rl_completion_append_character to completed words.
1402
+
1403
+ j. New key bindings when reading an incremental search string: ^W yanks
1404
+ the currently-matched word out of the current line into the search
1405
+ string; ^Y yanks the rest of the current line into the search string,
1406
+ DEL or ^H deletes characters from the search string.
1407
+
1408
+ -------------------------------------------------------------------------------
1409
+ This document details the changes between this version, readline-4.2a,
1410
+ and the previous version, readline-4.2.
1411
+
1412
+ 1. Changes to Readline
1413
+
1414
+ a. More `const' and type casting fixes.
1415
+
1416
+ b. Changed rl_message() to use vsnprintf(3) (if available) to fix buffer
1417
+ overflow problems.
1418
+
1419
+ c. The completion code no longer appends a `/' or ` ' to a match when
1420
+ completing a symbolic link that resolves to a directory name, unless
1421
+ the match does not add anything to the word being completed. This
1422
+ means that a tab will complete the word up to the full name, but not
1423
+ add anything, and a subsequent tab will add a slash.
1424
+
1425
+ d. Fixed a trivial typo that made the vi-mode `dT' command not work.
1426
+
1427
+ e. Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert.
1428
+
1429
+ f. Fixed the tty code so that ^V works more than once.
1430
+
1431
+ g. Changed the use of __P((...)) for function prototypes to PARAMS((...))
1432
+ because the use of __P in typedefs conflicted g++ and glibc.
1433
+
1434
+ h. The completion code now attempts to do a better job of preserving the
1435
+ case of the word the user typed if ignoring case in completions.
1436
+
1437
+ i. Readline defaults to not echoing the input and lets the terminal
1438
+ initialization code enable echoing if there is a controlling terminal.
1439
+
1440
+ j. The key binding code now processes only two hex digits after a `\x'
1441
+ escape sequence, and the documentation was changed to note that the
1442
+ octal and hex escape sequences result in an eight-bit value rather
1443
+ than strict ASCII.
1444
+
1445
+ k. Fixed a few places where negative array subscripts could have occurred.
1446
+
1447
+ l. Fixed the vi-mode code to use a better method to determine the bounds of
1448
+ the array used to hold the marks, and to avoid out-of-bounds references.
1449
+
1450
+ m. Fixed the defines in chardefs.h to work better when chars are signed.
1451
+
1452
+ n. Fixed configure.in to use the new names for bash autoconf macros.
1453
+
1454
+ o. Readline no longer attempts to define its own versions of some ctype
1455
+ macros if they are implemented as functions in libc but not as macros in
1456
+ <ctype.h>.
1457
+
1458
+ p. Fixed a problem where rl_backward could possibly set point to before
1459
+ the beginning of the line.
1460
+
1461
+ q. Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause
1462
+ include file problems.
1463
+
1464
+ 2. New Features in Readline
1465
+
1466
+ a. Added extern declaration for rl_get_termcap to readline.h, making it a
1467
+ public function (it was always there, just not in readline.h).
1468
+
1469
+ b. New #defines in readline.h: RL_READLINE_VERSION, currently 0x0402,
1470
+ RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2.
1471
+
1472
+ c. New readline variable: rl_readline_version, mirrors RL_READLINE_VERSION.
1473
+
1474
+ d. New bindable boolean readline variable: match-hidden-files. Controls
1475
+ completion of files beginning with a `.' (on Unix). Enabled by default.
1476
+
1477
+ e. The history expansion code now allows any character to terminate a
1478
+ `:first-' modifier, like csh.
1479
+
1480
+ f. The incremental search code remembers the last search string and uses
1481
+ it if ^R^R is typed without a search string.
1482
+
1483
+ h. New bindable variable `history-preserve-point'. If set, the history
1484
+ code attempts to place the user at the same location on each history
1485
+ line retrieved with previous-history or next-history.
1486
+
1487
+ -------------------------------------------------------------------------------
1488
+ This document details the changes between this version, readline-4.2,
1489
+ and the previous version, readline-4.1.
1490
+
1491
+ 1. Changes to Readline
1492
+
1493
+ a. When setting the terminal attributes on systems using `struct termio',
1494
+ readline waits for output to drain before changing the attributes.
1495
+
1496
+ b. A fix was made to the history word tokenization code to avoid attempts to
1497
+ dereference a null pointer.
1498
+
1499
+ c. Readline now defaults rl_terminal_name to $TERM if the calling application
1500
+ has left it unset, and tries to initialize with the resultant value.
1501
+
1502
+ d. Instead of calling (*rl_getc_function)() directly to get input in certain
1503
+ places, readline now calls rl_read_key() consistently.
1504
+
1505
+ e. Fixed a bug in the completion code that allowed a backslash to quote a
1506
+ single quote inside a single-quoted string.
1507
+
1508
+ f. rl_prompt is no longer assigned directly from the argument to readline(),
1509
+ but uses memory allocated by readline. This allows constant strings to
1510
+ be passed to readline without problems arising when the prompt processing
1511
+ code wants to modify the string.
1512
+
1513
+ g. Fixed a bug that caused non-interactive history searches to return the
1514
+ wrong line when performing multiple searches backward for the same string.
1515
+
1516
+ h. Many variables, function arguments, and function return values are now
1517
+ declared `const' where appropriate, to improve behavior when linking with
1518
+ C++ code.
1519
+
1520
+ i. The control character detection code now works better on systems where
1521
+ `char' is unsigned by default.
1522
+
1523
+ j. The vi-mode numeric argument is now capped at 999999, just like emacs mode.
1524
+
1525
+ k. The Function, CPFunction, CPPFunction, and VFunction typedefs have been
1526
+ replaced with a set of specific prototyped typedefs, though they are
1527
+ still in the readline header files for backwards compatibility.
1528
+
1529
+ m. Nearly all of the (undocumented) internal global variables in the library
1530
+ now have an _rl_ prefix -- there were a number that did not, like
1531
+ screenheight, screenwidth, alphabetic, etc.
1532
+
1533
+ n. The ding() convenience function has been renamed to rl_ding(), though the
1534
+ old function is still defined for backwards compatibility.
1535
+
1536
+ o. The completion convenience functions filename_completion_function,
1537
+ username_completion_function, and completion_matches now have an rl_
1538
+ prefix, though the old names are still defined for backwards compatibility.
1539
+
1540
+ p. The functions shared by readline and bash (linkage is satisfied from bash
1541
+ when compiling with bash, and internally otherwise) now have an sh_ prefix.
1542
+
1543
+ q. Changed the shared library creation procedure on Linux and BSD/OS 4.x so
1544
+ that the `soname' contains only the major version number rather than the
1545
+ major and minor numbers.
1546
+
1547
+ r. Fixed a redisplay bug that occurred when the prompt spanned more than one
1548
+ physical line and contained invisible characters.
1549
+
1550
+ s. Added a missing `includedir' variable to the Makefile.
1551
+
1552
+ t. When installing the shared libraries, make sure symbolic links are relative.
1553
+
1554
+ u. Added configure test so that it can set `${MAKE}' appropriately.
1555
+
1556
+ v. Fixed a bug in rl_forward that could cause the point to be set to before
1557
+ the beginning of the line in vi mode.
1558
+
1559
+ w. Fixed a bug in the callback read-char interface to make it work when a
1560
+ readline function pushes some input onto the input stream with
1561
+ rl_execute_next (like the incremental search functions).
1562
+
1563
+ x. Fixed a file descriptor leak in the history file manipulation code that
1564
+ was tripped when attempting to truncate a non-regular file (like
1565
+ /dev/null).
1566
+
1567
+ y. Changes to make all of the exported readline functions declared in
1568
+ readline.h have an rl_ prefix (rltty_set_default_bindings is now
1569
+ rl_tty_set_default_bindings, crlf is now rl_crlf, etc.)
1570
+
1571
+ z. The formatted documentation included in the base readline distribution
1572
+ is no longer removed on a `make distclean'.
1573
+
1574
+ aa. Some changes were made to avoid gcc warnings with -Wall.
1575
+
1576
+ bb. rl_get_keymap_by_name now finds keymaps case-insensitively, so
1577
+ `set keymap EMACS' works.
1578
+
1579
+ cc. The history file writing and truncation functions now return a useful
1580
+ status on error.
1581
+
1582
+ dd. Fixed a bug that could cause applications to dereference a NULL pointer
1583
+ if a NULL second argument was passed to history_expand().
1584
+
1585
+ ee. If a hook function assigned to rl_event_hook sets rl_done to a non-zero
1586
+ value, rl_read_key() now immediately returns '\n' (which is assumed to
1587
+ be bound to accept-line).
1588
+
1589
+ 2. New Features in Readline
1590
+
1591
+ a. The blink timeout for paren matching is now settable by applications,
1592
+ via the rl_set_paren_blink_timeout() function.
1593
+
1594
+ b. _rl_executing_macro has been renamed to rl_executing_macro, which means
1595
+ it's now part of the public interface.
1596
+
1597
+ c. Readline has a new variable, rl_readline_state, which is a bitmap that
1598
+ encapsulates the current state of the library; intended for use by
1599
+ callbacks and hook functions.
1600
+
1601
+ d. rlfe has a new -l option to log input and output (-a appends to logfile),
1602
+ a new -n option to set the readline application name, and -v and -h
1603
+ options for version and help information.
1604
+
1605
+ e. rlfe can now perform filename completion for the inferior process if the
1606
+ OS has a /proc/<PID>/cwd that can be read with readlink(2) to get the
1607
+ inferior's current working directory.
1608
+
1609
+ f. A new file, rltypedefs.h, contains the new typedefs for function pointers
1610
+ and is installed by `make install'.
1611
+
1612
+ g. New application-callable function rl_set_prompt(const char *prompt):
1613
+ expands its prompt string argument and sets rl_prompt to the result.
1614
+
1615
+ h. New application-callable function rl_set_screen_size(int rows, int cols):
1616
+ public method for applications to set readline's idea of the screen
1617
+ dimensions.
1618
+
1619
+ i. The history example program (examples/histexamp.c) is now built as one
1620
+ of the examples.
1621
+
1622
+ j. The documentation has been updated to cover nearly all of the public
1623
+ functions and variables declared in readline.h.
1624
+
1625
+ k. New function, rl_get_screen_size (int *rows, int *columns), returns
1626
+ readline's idea of the screen dimensions.
1627
+
1628
+ l. The timeout in rl_gather_tyi (readline keyboard input polling function)
1629
+ is now settable via a function (rl_set_keyboard_input_timeout()).
1630
+
1631
+ m. Renamed the max_input_history variable to history_max_entries; the old
1632
+ variable is maintained for backwards compatibility.
1633
+
1634
+ n. The list of characters that separate words for the history tokenizer is
1635
+ now settable with a variable: history_word_delimiters. The default
1636
+ value is as before.
1637
+
1638
+ o. There is a new history.3 manual page documenting the history library.
1639
+
1640
+ -------------------------------------------------------------------------------
1641
+ This document details the changes between this version, readline-4.1,
1642
+ and the previous version, readline-4.0.
1643
+
1644
+ 1. Changes to Readline
1645
+
1646
+ a. Changed the HTML documents so that the table-of-contents is no longer
1647
+ a separate file.
1648
+
1649
+ b. Changes to the shared object configuration for: Irix 5.x, Irix 6.x,
1650
+ OSF/1.
1651
+
1652
+ c. The shared library major and minor versions are now constructed
1653
+ automatically by configure and substituted into the makefiles.
1654
+
1655
+ d. It's now possible to install the shared libraries separately from the
1656
+ static libraries.
1657
+
1658
+ e. The history library tries to truncate the history file only if it is a
1659
+ regular file.
1660
+
1661
+ f. A bug that caused _rl_dispatch to address negative array indices on
1662
+ systems with signed chars was fixed.
1663
+
1664
+ g. rl-yank-nth-arg now leaves the history position the same as when it was
1665
+ called.
1666
+
1667
+ h. Changes to the completion code to handle MS-DOS drive-letter:pathname
1668
+ filenames.
1669
+
1670
+ i. Completion is now case-insensitive by default on MS-DOS.
1671
+
1672
+ j. Fixes to the history file manipulation code for MS-DOS.
1673
+
1674
+ k. Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS.
1675
+
1676
+ l. Some fixes were made to the redisplay code for better operation on MS-DOS.
1677
+
1678
+ m. The quoted-insert code will now insert tty special chars like ^C.
1679
+
1680
+ n. A bug was fixed that caused the display code to reference memory before
1681
+ the start of the prompt string.
1682
+
1683
+ o. More support for __EMX__ (OS/2).
1684
+
1685
+ p. A bug was fixed in readline's signal handling that could cause infinite
1686
+ recursion in signal handlers.
1687
+
1688
+ q. A bug was fixed that caused the point to be less than zero when rl_forward
1689
+ was given a very large numeric argument.
1690
+
1691
+ r. The vi-mode code now gets characters via the application-settable value
1692
+ of rl_getc_function rather than calling rl_getc directly.
1693
+
1694
+ s. The history file code now uses O_BINARY mode when reading and writing
1695
+ the history file on cygwin32.
1696
+
1697
+ t. Fixed a bug in the redisplay code for lines with more than 256 line
1698
+ breaks.
1699
+
1700
+ u. A bug was fixed which caused invisible character markers to not be
1701
+ stripped from the prompt string if the terminal was in no-echo mode.
1702
+
1703
+ v. Readline no longer tries to get the variables it needs for redisplay
1704
+ from the termcap entry if the calling application has specified its
1705
+ own redisplay function. Readline treats the terminal as `dumb' in
1706
+ this case.
1707
+
1708
+ w. Fixes to the SIGWINCH code so that a multiple-line prompt with escape
1709
+ sequences is redrawn correctly.
1710
+
1711
+ x. Changes to the install and install-shared targets so that the libraries
1712
+ and header files are installed separately.
1713
+
1714
+ 2. New Features in Readline
1715
+
1716
+ a. A new Readline `user manual' is in doc/rluserman.texinfo.
1717
+
1718
+ b. Parentheses matching is now always compiled into readline, and enabled
1719
+ or disabled when the value of the `blink-matching-paren' variable is
1720
+ changed.
1721
+
1722
+ c. MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename.
1723
+
1724
+ d. MS-DOS systems now use ~/_history as the default history file.
1725
+
1726
+ e. history-search-{forward,backward} now leave the point at the end of the
1727
+ line when the string to search for is empty, like
1728
+ {reverse,forward}-search-history.
1729
+
1730
+ f. history-search-{forward,backward} now leave the last history line found
1731
+ in the readline buffer if the second or subsequent search fails.
1732
+
1733
+ g. New function for use by applications: rl_on_new_line_with_prompt, used
1734
+ when an application displays the prompt itself before calling readline().
1735
+
1736
+ h. New variable for use by applications: rl_already_prompted. An application
1737
+ that displays the prompt itself before calling readline() must set this to
1738
+ a non-zero value.
1739
+
1740
+ i. A new variable, rl_gnu_readline_p, always 1. The intent is that an
1741
+ application can verify whether or not it is linked with the `real'
1742
+ readline library or some substitute.
1743
+
1744
+ j. Per Bothner's `rlfe' (pronounced `Ralphie') readline front-end program
1745
+ is included in the examples subdirectory, though it is not built
1746
+ by default.
1747
+
1748
+ -------------------------------------------------------------------------------
1749
+ This document details the changes between this version, readline-4.0,
1750
+ and the previous version, readline-2.2.
1751
+
1752
+ 1. Changes to Readline
1753
+
1754
+ a. The version number is now 4.0, to match the major and minor version
1755
+ numbers on the shared readline and history libraries. Future
1756
+ releases will maintain the identical numbering.
1757
+
1758
+ b. Fixed a typo in the `make install' recipe that copied libreadline.a
1759
+ to libhistory.old right after installing it.
1760
+
1761
+ c. The readline and history info files are now installed out of the source
1762
+ directory if they are not found in the build directory.
1763
+
1764
+ d. The library no longer exports a function named `savestring' -- backwards
1765
+ compatibility be damned.
1766
+
1767
+ e. There is no longer any #ifdef SHELL code in the source files.
1768
+
1769
+ f. Some changes were made to the key binding code to fix memory leaks and
1770
+ better support Win32 systems.
1771
+
1772
+ g. Fixed a silly typo in the paren matching code -- it's microseconds, not
1773
+ milliseconds.
1774
+
1775
+ h. The readline library should be compilable by C++ compilers.
1776
+
1777
+ i. The readline.h public header file now includes function prototypes for
1778
+ all readline functions, and some changes were made to fix errors in the
1779
+ source files uncovered by the use of prototypes.
1780
+
1781
+ j. The maximum numeric argument is now clamped at 1000000.
1782
+
1783
+ k. Fixes to rl_yank_last_arg to make it behave better.
1784
+
1785
+ l. Fixed a bug in the display code that caused core dumps if the prompt
1786
+ string length exceeded 1024 characters.
1787
+
1788
+ m. The menu completion code was fixed to properly insert a single completion
1789
+ if there is only one match.
1790
+
1791
+ n. A bug was fixed that caused the display code to improperly display tabs
1792
+ after newlines.
1793
+
1794
+ o. A fix was made to the completion code in which a typo caused the wrong
1795
+ value to be passed to the function that computed the longest common
1796
+ prefix of the list of matches.
1797
+
1798
+ p. The completion code now checks the value of rl_filename_completion_desired,
1799
+ which is set by application-supplied completion functions to indicate
1800
+ that filename completion is being performed, to decide whether or not to
1801
+ call an application-supplied `ignore completions' function.
1802
+
1803
+ q. Code was added to the history library to catch history substitutions
1804
+ using `&' without a previous history substitution or search having been
1805
+ performed.
1806
+
1807
+
1808
+ 2. New Features in Readline
1809
+
1810
+ a. There is a new script, support/shobj-conf, to do system-specific shared
1811
+ object and library configuration. It generates variables for configure
1812
+ to substitute into makefiles. The README file provides a detailed
1813
+ explanation of the shared library creation process.
1814
+
1815
+ b. Shared libraries and objects are now built in the `shlib' subdirectory.
1816
+ There is a shlib/Makefile.in to control the build process. `make shared'
1817
+ from the top-level directory is still the right way to build shared
1818
+ versions of the libraries.
1819
+
1820
+ c. rlconf.h is now installed, so applications can find out which features
1821
+ have been compiled into the installed readline and history libraries.
1822
+
1823
+ d. rlstdc.h is now an installed header file.
1824
+
1825
+ e. Many changes to the signal handling:
1826
+ o Readline now catches SIGQUIT and cleans up the tty before returning;
1827
+ o A new variable, rl_catch_signals, is available to application writers
1828
+ to indicate to readline whether or not it should install its own
1829
+ signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP,
1830
+ SIGTTIN, and SIGTTOU;
1831
+ o A new variable, rl_catch_sigwinch, is available to application
1832
+ writers to indicate to readline whether or not it should install its
1833
+ own signal handler for SIGWINCH, which will chain to the calling
1834
+ applications's SIGWINCH handler, if one is installed;
1835
+ o There is a new function, rl_free_line_state, for application signal
1836
+ handlers to call to free up the state associated with the current
1837
+ line after receiving a signal;
1838
+ o There is a new function, rl_cleanup_after_signal, to clean up the
1839
+ display and terminal state after receiving a signal;
1840
+ o There is a new function, rl_reset_after_signal, to reinitialize the
1841
+ terminal and display state after an application signal handler
1842
+ returns and readline continues
1843
+
1844
+ f. There is a new function, rl_resize_terminal, to reset readline's idea of
1845
+ the screen size after a SIGWINCH.
1846
+
1847
+ g. New public functions: rl_save_prompt and rl_restore_prompt. These were
1848
+ previously private functions with a `_' prefix. These functions are
1849
+ used when an application wants to write a message to the `message area'
1850
+ with rl_message and have the prompt restored correctly when the message
1851
+ is erased.
1852
+
1853
+ h. New function hook: rl_pre_input_hook, called just before readline starts
1854
+ reading input, after initialization.
1855
+
1856
+ i. New function hook: rl_display_matches_hook, called when readline would
1857
+ display the list of completion matches. The new function
1858
+ rl_display_match_list is what readline uses internally, and is available
1859
+ for use by application functions called via this hook.
1860
+
1861
+ j. New bindable function, delete-char-or-list, like tcsh.
1862
+
1863
+ k. A new variable, rl_erase_empty_line, which, if set by an application using
1864
+ readline, will cause readline to erase, prompt and all, lines on which the
1865
+ only thing typed was a newline.
1866
+
1867
+ l. There is a new script, support/shlib-install, to install and uninstall
1868
+ the shared readline and history libraries.
1869
+
1870
+ m. A new bindable variable, `isearch-terminators', which is a string
1871
+ containing the set of characters that should terminate an incremental
1872
+ search without being executed as a command.
1873
+
1874
+ n. A new bindable function, forward-backward-delete-char.
1875
+
1876
+ -------------------------------------------------------------------------------
1877
+ This document details the changes between this version, readline-2.2,
1878
+ and the previous version, readline-2.1.
1879
+
1880
+ 1. Changes to Readline
1881
+
1882
+ a. Added a missing `extern' to a declaration in readline.h that kept
1883
+ readline from compiling cleanly on some systems.
1884
+
1885
+ b. The history file is now opened with mode 0600 when it is written for
1886
+ better security.
1887
+
1888
+ c. Changes were made to the SIGWINCH handling code so that prompt redisplay
1889
+ is done better.
1890
+
1891
+ d. ^G now interrupts incremental searches correctly.
1892
+
1893
+ e. A bug that caused a core dump when the set of characters to be quoted
1894
+ when completing words was empty was fixed.
1895
+
1896
+ f. Fixed a problem in the readline test program rltest.c that caused a core
1897
+ dump.
1898
+
1899
+ g. The code that handles parser directives in inputrc files now displays
1900
+ more error messages.
1901
+
1902
+ h. The history expansion code was fixed so that the appearance of the
1903
+ history comment character at the beginning of a word inhibits history
1904
+ expansion for that word and the rest of the input line.
1905
+
1906
+ i. The code that prints completion listings now behaves better if one or
1907
+ more of the filenames contains non-printable characters.
1908
+
1909
+ j. The time delay when showing matching parentheses is now 0.5 seconds.
1910
+
1911
+
1912
+ 2. New Features in Readline
1913
+
1914
+ a. There is now an option for `iterative' yank-last-arg handline, so a user
1915
+ can keep entering `M-.', yanking the last argument of successive history
1916
+ lines.
1917
+
1918
+ b. New variable, `print-completions-horizontally', which causes completion
1919
+ matches to be displayed across the screen (like `ls -x') rather than up
1920
+ and down the screen (like `ls').
1921
+
1922
+ c. New variable, `completion-ignore-case', which causes filename completion
1923
+ and matching to be performed case-insensitively.
1924
+
1925
+ d. There is a new bindable command, `magic-space', which causes history
1926
+ expansion to be performed on the current readline buffer and a space to
1927
+ be inserted into the result.
1928
+
1929
+ e. There is a new bindable command, `menu-complete', which enables tcsh-like
1930
+ menu completion (successive executions of menu-complete insert a single
1931
+ completion match, cycling through the list of possible completions).
1932
+
1933
+ f. There is a new bindable command, `paste-from-clipboard', for use on Win32
1934
+ systems, to insert the text from the Win32 clipboard into the editing
1935
+ buffer.
1936
+
1937
+ g. The key sequence translation code now understands printf-style backslash
1938
+ escape sequences, including \NNN octal escapes. These escape sequences
1939
+ may be used in key sequence definitions or macro values.
1940
+
1941
+ h. An `$include' inputrc file parser directive has been added.
llava_next/share/doc/readline/INSTALL ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Basic Installation
2
+ ==================
3
+
4
+ These are installation instructions for Readline-8.2.
5
+
6
+ The simplest way to compile readline is:
7
+
8
+ 1. `cd' to the directory containing the readline source code and type
9
+ `./configure' to configure readline for your system. If you're
10
+ using `csh' on an old version of System V, you might need to type
11
+ `sh ./configure' instead to prevent `csh' from trying to execute
12
+ `configure' itself.
13
+
14
+ Running `configure' takes some time. While running, it prints some
15
+ messages telling which features it is checking for.
16
+
17
+ 2. Type `make' to compile readline and build the static readline
18
+ and history libraries. If supported, the shared readline and history
19
+ libraries will be built also. See below for instructions on compiling
20
+ the other parts of the distribution. Typing `make everything' will
21
+ cause the static and shared libraries (if supported) and the example
22
+ programs to be built.
23
+
24
+ 3. Type `make install' to install the static readline and history
25
+ libraries, the readline include files, the documentation, and, if
26
+ supported, the shared readline and history libraries.
27
+
28
+ 4. You can remove the created libraries and object files from the
29
+ build directory by typing `make clean'. To also remove the
30
+ files that `configure' created (so you can compile readline for
31
+ a different kind of computer), type `make distclean'. There is
32
+ also a `make maintainer-clean' target, but that is intended mainly
33
+ for the readline developers, and should be used with care.
34
+
35
+ The `configure' shell script attempts to guess correct values for
36
+ various system-dependent variables used during compilation. It
37
+ uses those values to create a `Makefile' in the build directory,
38
+ and Makefiles in the `doc', `shlib', and `examples'
39
+ subdirectories. It also creates a `config.h' file containing
40
+ system-dependent definitions. Finally, it creates a shell script
41
+ `config.status' that you can run in the future to recreate the
42
+ current configuration, a file `config.cache' that saves the
43
+ results of its tests to speed up reconfiguring, and a file
44
+ `config.log' containing compiler output (useful mainly for
45
+ debugging `configure').
46
+
47
+ If you need to do unusual things to compile readline, please try
48
+ to figure out how `configure' could check whether to do them, and
49
+ mail diffs or instructions to <bug-readline@gnu.org> so they can
50
+ be considered for the next release. If at some point
51
+ `config.cache' contains results you don't want to keep, you may
52
+ remove or edit it.
53
+
54
+ The file `configure.in' is used to create `configure' by a
55
+ program called `autoconf'. You only need `configure.in' if you
56
+ want to change it or regenerate `configure' using a newer version
57
+ of `autoconf'. The readline `configure.in' requires autoconf
58
+ version 2.69 or newer.
59
+
60
+ Compilers and Options
61
+ =====================
62
+
63
+ Some systems require unusual options for compilation or linking that
64
+ the `configure' script does not know about. You can give `configure'
65
+ initial values for variables by setting them in the environment. Using
66
+ a Bourne-compatible shell, you can do that on the command line like
67
+ this:
68
+
69
+ CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
70
+
71
+ Or on systems that have the `env' program, you can do it like this:
72
+
73
+ env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
74
+
75
+ Compiling For Multiple Architectures
76
+ ====================================
77
+
78
+ You can compile readline for more than one kind of computer at the
79
+ same time, by placing the object files for each architecture in their
80
+ own directory. To do this, you must use a version of `make' that
81
+ supports the `VPATH' variable, such as GNU `make'. `cd' to the
82
+ directory where you want the object files and executables to go and run
83
+ the `configure' script. `configure' automatically checks for the
84
+ source code in the directory that `configure' is in and in `..'.
85
+
86
+ If you have to use a `make' that does not supports the `VPATH'
87
+ variable, you have to compile readline for one architecture at a
88
+ time in the source code directory. After you have installed
89
+ readline for one architecture, use `make distclean' before
90
+ reconfiguring for another architecture.
91
+
92
+ Installation Names
93
+ ==================
94
+
95
+ By default, `make install' will install the readline libraries in
96
+ `/usr/local/lib', the include files in
97
+ `/usr/local/include/readline', the man pages in `/usr/local/man',
98
+ and the info files in `/usr/local/info'. You can specify an
99
+ installation prefix other than `/usr/local' by giving `configure'
100
+ the option `--prefix=PATH' or by supplying a value for the
101
+ DESTDIR variable when running `make install'.
102
+
103
+ You can specify separate installation prefixes for
104
+ architecture-specific files and architecture-independent files.
105
+ If you give `configure' the option `--exec-prefix=PATH', the
106
+ readline Makefiles will use PATH as the prefix for installing the
107
+ libraries. Documentation and other data files will still use the
108
+ regular prefix.
109
+
110
+ Specifying the System Type
111
+ ==========================
112
+
113
+ There may be some features `configure' can not figure out
114
+ automatically, but need to determine by the type of host readline
115
+ will run on. Usually `configure' can figure that out, but if it
116
+ prints a message saying it can not guess the host type, give it
117
+ the `--host=TYPE' option. TYPE can either be a short name for
118
+ the system type, such as `sun4', or a canonical name with three
119
+ fields: CPU-COMPANY-SYSTEM (e.g., i386-unknown-freebsd4.2).
120
+
121
+ See the file `config.sub' for the possible values of each field.
122
+
123
+ Sharing Defaults
124
+ ================
125
+
126
+ If you want to set default values for `configure' scripts to share,
127
+ you can create a site shell script called `config.site' that gives
128
+ default values for variables like `CC', `cache_file', and `prefix'.
129
+ `configure' looks for `PREFIX/share/config.site' if it exists, then
130
+ `PREFIX/etc/config.site' if it exists. Or, you can set the
131
+ `CONFIG_SITE' environment variable to the location of the site script.
132
+ A warning: the readline `configure' looks for a site script, but not
133
+ all `configure' scripts do.
134
+
135
+ Operation Controls
136
+ ==================
137
+
138
+ `configure' recognizes the following options to control how it
139
+ operates.
140
+
141
+ `--cache-file=FILE'
142
+ Use and save the results of the tests in FILE instead of
143
+ `./config.cache'. Set FILE to `/dev/null' to disable caching, for
144
+ debugging `configure'.
145
+
146
+ `--help'
147
+ Print a summary of the options to `configure', and exit.
148
+
149
+ `--quiet'
150
+ `--silent'
151
+ `-q'
152
+ Do not print messages saying which checks are being made.
153
+
154
+ `--srcdir=DIR'
155
+ Look for the package's source code in directory DIR. Usually
156
+ `configure' can determine that directory automatically.
157
+
158
+ `--version'
159
+ Print the version of Autoconf used to generate the `configure'
160
+ script, and exit.
161
+
162
+ `configure' also accepts some other, not widely useful, options.
163
+
164
+ Optional Features
165
+ =================
166
+
167
+ The readline `configure' recognizes two `--with-PACKAGE' options:
168
+
169
+ `--with-curses'
170
+ This tells readline that it can find the termcap library functions
171
+ (tgetent, et al.) in the curses library, rather than a separate
172
+ termcap library. Readline uses the termcap functions, but does not
173
+ usually link with the termcap or curses library itself, allowing
174
+ applications which link with readline the to choose an appropriate
175
+ library. This option tells readline to link the example programs with
176
+ the curses library rather than libtermcap.
177
+
178
+ `--with-shared-termcap-library'
179
+ This tells the readline build process to link the shared version of
180
+ libreadline against a shared version of the curses or termcap library
181
+ (see the description of SHLIB_LIBS below under `Shared Libraries').
182
+ This relieves the application of having to link with curses or termcap
183
+ itself, but does not allow the application to choose which library to
184
+ use. This is only effective on systems that build shared libraries (see
185
+ below; the default for shared libraries is `yes').
186
+
187
+ `configure' also recognizes several `--enable-FEATURE' options:
188
+
189
+ `--enable-bracketed-paste-default'
190
+ Enable bracketed paste by default, so the initial value of the
191
+ `enable-bracketed-paste' Readline variable is `on'. The default
192
+ is `yes'.
193
+
194
+ `--enable-install-examples'
195
+ Install the readline example programs as part of `make install'.
196
+
197
+ `--enable-multibyte'
198
+ Build with support for multibyte characters enabled on systems with the
199
+ necessary framework (locale definitions, C library functions, etc.). The
200
+ default is `yes'.
201
+
202
+ `--enable-shared'
203
+ Build the shared libraries by default on supported platforms. The
204
+ default is `yes'.
205
+
206
+ `--enable-static'
207
+ Build the static libraries by default. The default is `yes'.
208
+
209
+ Shared Libraries
210
+ ================
211
+
212
+ There is support for building shared versions of the readline and
213
+ history libraries. The configure script creates a Makefile in
214
+ the `shlib' subdirectory, and typing `make shared' will cause
215
+ shared versions of the readline and history libraries to be built
216
+ on supported platforms.
217
+
218
+ If `configure' is given the `--enable-shared' option, it will attempt
219
+ to build the shared libraries by default on supported platforms. This
220
+ option is enabled by default.
221
+
222
+ Configure calls the script support/shobj-conf to test whether or
223
+ not shared library creation is supported and to generate the values
224
+ of variables that are substituted into shlib/Makefile. If you
225
+ try to build shared libraries on an unsupported platform, `make'
226
+ will display a message asking you to update support/shobj-conf for
227
+ your platform.
228
+
229
+ If you need to update support/shobj-conf, you will need to create
230
+ a `stanza' for your operating system and compiler. The script uses
231
+ the value of host_os and ${CC} as determined by configure. For
232
+ instance, FreeBSD 4.2 with any version of gcc is identified as
233
+ `freebsd4.2-gcc*'.
234
+
235
+ In the stanza for your operating system-compiler pair, you will need to
236
+ define several variables. They are:
237
+
238
+ SHOBJ_CC The C compiler used to compile source files into shareable
239
+ object files. This is normally set to the value of ${CC}
240
+ by configure, and should not need to be changed.
241
+
242
+ SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create
243
+ position-independent code. If you are using gcc, this
244
+ should probably be set to `-fpic'.
245
+
246
+ SHOBJ_LD The link editor to be used to create the shared library from
247
+ the object files created by $SHOBJ_CC. If you are using
248
+ gcc, a value of `gcc' will probably work.
249
+
250
+ SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation.
251
+ If you are using gcc, `-shared' may be all that is necessary.
252
+ These should be the flags needed for generic shared object
253
+ creation.
254
+
255
+ SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library
256
+ creation. Many systems use the -R option to the link
257
+ editor to embed a path within the library for run-time
258
+ library searches. A reasonable value for such systems would
259
+ be `-R$(libdir)'.
260
+
261
+ SHLIB_LIBS Any additional libraries that shared libraries should be
262
+ linked against when they are created.
263
+
264
+ SHLIB_LIBPREF The prefix to use when generating the filename of the shared
265
+ library. The default is `lib'; Cygwin uses `cyg'.
266
+
267
+ SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when
268
+ generating the filename of the shared library. Many systems
269
+ use `so'; HP-UX uses `sl'.
270
+
271
+ SHLIB_LIBVERSION The string to append to the filename to indicate the version
272
+ of the shared library. It should begin with $(SHLIB_LIBSUFF),
273
+ and possibly include version information that allows the
274
+ run-time loader to load the version of the shared library
275
+ appropriate for a particular program. Systems using shared
276
+ libraries similar to SunOS 4.x use major and minor library
277
+ version numbers; for those systems a value of
278
+ `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
279
+ Systems based on System V Release 4 don't use minor version
280
+ numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
281
+ Other Unix versions use different schemes.
282
+
283
+ SHLIB_DLLVERSION The version number for shared libraries that determines API
284
+ compatibility between readline versions and the underlying
285
+ system. Used only on Cygwin. Defaults to $SHLIB_MAJOR, but
286
+ can be overridden at configuration time by defining DLLVERSION
287
+ in the environment.
288
+
289
+ SHLIB_DOT The character used to separate the name of the shared library
290
+ from the suffix and version information. The default is `.';
291
+ systems like Cygwin which don't separate version information
292
+ from the library name should set this to the empty string.
293
+
294
+ SHLIB_STATUS Set this to `supported' when you have defined the other
295
+ necessary variables. Make uses this to determine whether
296
+ or not shared library creation should be attempted. If
297
+ shared libraries are not supported, this will be set to
298
+ `unsupported'.
299
+
300
+ You should look at the existing stanzas in support/shobj-conf for ideas.
301
+
302
+ Once you have updated support/shobj-conf, re-run configure and type
303
+ `make shared' or `make'. The shared libraries will be created in the
304
+ shlib subdirectory.
305
+
306
+ If shared libraries are created, `make install' will install them.
307
+ You may install only the shared libraries by running `make
308
+ install-shared' from the top-level build directory. Running `make
309
+ install' in the shlib subdirectory will also work. If you don't want
310
+ to install any created shared libraries, run `make install-static'.
llava_next/share/doc/readline/README ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Introduction
2
+ ============
3
+
4
+ This is the Gnu Readline library, version 8.2.
5
+
6
+ The Readline library provides a set of functions for use by applications
7
+ that allow users to edit command lines as they are typed in. Both
8
+ Emacs and vi editing modes are available. The Readline library includes
9
+ additional functions to maintain a list of previously-entered command
10
+ lines, to recall and perhaps reedit those lines, and perform csh-like
11
+ history expansion on previous commands.
12
+
13
+ The history facilities are also placed into a separate library, the
14
+ History library, as part of the build process. The History library
15
+ may be used without Readline in applications which desire its
16
+ capabilities.
17
+
18
+ The Readline library is free software, distributed under the terms of
19
+ the [GNU] General Public License as published by the Free Software
20
+ Foundation, version 3 of the License. For more information, see the
21
+ file COPYING.
22
+
23
+ To build the library, try typing `./configure', then `make'. The
24
+ configuration process is automated, so no further intervention should
25
+ be necessary. Readline builds with `gcc' by default if it is
26
+ available. If you want to use `cc' instead, type
27
+
28
+ CC=cc ./configure
29
+
30
+ if you are using a Bourne-style shell. If you are not, the following
31
+ may work:
32
+
33
+ env CC=cc ./configure
34
+
35
+ Read the file INSTALL in this directory for more information about how
36
+ to customize and control the build process.
37
+
38
+ The file rlconf.h contains C preprocessor defines that enable and disable
39
+ certain Readline features.
40
+
41
+ The special make target `everything' will build the static and shared
42
+ libraries (if the target platform supports them) and the examples.
43
+
44
+ Examples
45
+ ========
46
+
47
+ There are several example programs that use Readline features in the
48
+ examples directory. The `rl' program is of particular interest. It
49
+ is a command-line interface to Readline, suitable for use in shell
50
+ scripts in place of `read'.
51
+
52
+ Shared Libraries
53
+ ================
54
+
55
+ There is skeletal support for building shared versions of the
56
+ Readline and History libraries. The configure script creates
57
+ a Makefile in the `shlib' subdirectory, and typing `make shared'
58
+ will cause shared versions of the Readline and History libraries
59
+ to be built on supported platforms.
60
+
61
+ If `configure' is given the `--enable-shared' option, it will attempt
62
+ to build the shared libraries by default on supported platforms.
63
+
64
+ Configure calls the script support/shobj-conf to test whether or
65
+ not shared library creation is supported and to generate the values
66
+ of variables that are substituted into shlib/Makefile. If you
67
+ try to build shared libraries on an unsupported platform, `make'
68
+ will display a message asking you to update support/shobj-conf for
69
+ your platform.
70
+
71
+ If you need to update support/shobj-conf, you will need to create
72
+ a `stanza' for your operating system and compiler. The script uses
73
+ the value of host_os and ${CC} as determined by configure. For
74
+ instance, FreeBSD 4.2 with any version of gcc is identified as
75
+ `freebsd4.2-gcc*'.
76
+
77
+ In the stanza for your operating system-compiler pair, you will need to
78
+ define several variables. They are:
79
+
80
+ SHOBJ_CC The C compiler used to compile source files into shareable
81
+ object files. This is normally set to the value of ${CC}
82
+ by configure, and should not need to be changed.
83
+
84
+ SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create
85
+ position-independent code. If you are using gcc, this
86
+ should probably be set to `-fpic'.
87
+
88
+ SHOBJ_LD The link editor to be used to create the shared library from
89
+ the object files created by $SHOBJ_CC. If you are using
90
+ gcc, a value of `gcc' will probably work.
91
+
92
+ SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation.
93
+ If you are using gcc, `-shared' may be all that is necessary.
94
+ These should be the flags needed for generic shared object
95
+ creation.
96
+
97
+ SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library
98
+ creation. Many systems use the -R option to the link
99
+ editor to embed a path within the library for run-time
100
+ library searches. A reasonable value for such systems would
101
+ be `-R$(libdir)'.
102
+
103
+ SHLIB_LIBS Any additional libraries that shared libraries should be
104
+ linked against when they are created.
105
+
106
+ SHLIB_LIBPREF The prefix to use when generating the filename of the shared
107
+ library. The default is `lib'; Cygwin uses `cyg'.
108
+
109
+ SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when
110
+ generating the filename of the shared library. Many systems
111
+ use `so'; HP-UX uses `sl'.
112
+
113
+ SHLIB_LIBVERSION The string to append to the filename to indicate the version
114
+ of the shared library. It should begin with $(SHLIB_LIBSUFF),
115
+ and possibly include version information that allows the
116
+ run-time loader to load the version of the shared library
117
+ appropriate for a particular program. Systems using shared
118
+ libraries similar to SunOS 4.x use major and minor library
119
+ version numbers; for those systems a value of
120
+ `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
121
+ Systems based on System V Release 4 don't use minor version
122
+ numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
123
+ Other Unix versions use different schemes.
124
+
125
+ SHLIB_DLLVERSION The version number for shared libraries that determines API
126
+ compatibility between readline versions and the underlying
127
+ system. Used only on Cygwin. Defaults to $SHLIB_MAJOR, but
128
+ can be overridden at configuration time by defining DLLVERSION
129
+ in the environment.
130
+
131
+ SHLIB_DOT The character used to separate the name of the shared library
132
+ from the suffix and version information. The default is `.';
133
+ systems like Cygwin which don't separate version information
134
+ from the library name should set this to the empty string.
135
+
136
+ SHLIB_STATUS Set this to `supported' when you have defined the other
137
+ necessary variables. Make uses this to determine whether
138
+ or not shared library creation should be attempted.
139
+
140
+ You should look at the existing stanzas in support/shobj-conf for ideas.
141
+
142
+ Once you have updated support/shobj-conf, re-run configure and type
143
+ `make shared'. The shared libraries will be created in the shlib
144
+ subdirectory.
145
+
146
+ If shared libraries are created, `make install' will install them.
147
+ You may install only the shared libraries by running `make
148
+ install-shared' from the top-level build directory. Running `make
149
+ install' in the shlib subdirectory will also work. If you don't want
150
+ to install any created shared libraries, run `make install-static'.
151
+
152
+ Documentation
153
+ =============
154
+
155
+ The documentation for the Readline and History libraries appears in
156
+ the `doc' subdirectory. There are three texinfo files and a
157
+ Unix-style manual page describing the facilities available in the
158
+ Readline library. The texinfo files include both user and
159
+ programmer's manuals. HTML versions of the manuals appear in the
160
+ `doc' subdirectory as well.
161
+
162
+ Usage
163
+ =====
164
+
165
+ Our position on the use of Readline through a shared-library linking
166
+ mechanism is that there is no legal difference between shared-library
167
+ linking and static linking--either kind of linking combines various
168
+ modules into a single larger work. The conditions for using Readline
169
+ in a larger work are stated in section 3 of the GNU GPL.
170
+
171
+ Reporting Bugs
172
+ ==============
173
+
174
+ Bug reports for Readline should be sent to:
175
+
176
+ bug-readline@gnu.org
177
+
178
+ When reporting a bug, please include the following information:
179
+
180
+ * the version number and release status of Readline (e.g., 4.2-release)
181
+ * the machine and OS that it is running on
182
+ * a list of the compilation flags or the contents of `config.h', if
183
+ appropriate
184
+ * a description of the bug
185
+ * a recipe for recreating the bug reliably
186
+ * a fix for the bug if you have one!
187
+
188
+ If you would like to contact the Readline maintainer directly, send mail
189
+ to bash-maintainers@gnu.org.
190
+
191
+ Since Readline is developed along with bash, the bug-bash@gnu.org mailing
192
+ list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains
193
+ Readline bug reports and fixes.
194
+
195
+ Chet Ramey
196
+ chet.ramey@case.edu
llava_next/share/doc/xz/AUTHORS ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Authors of XZ Utils
3
+ ===================
4
+
5
+ XZ Utils is developed and maintained by
6
+ Lasse Collin <lasse.collin@tukaani.org>.
7
+
8
+ Major parts of liblzma are based on code written by Igor Pavlov,
9
+ specifically the LZMA SDK <https://7-zip.org/sdk.html>. Without
10
+ this code, XZ Utils wouldn't exist.
11
+
12
+ The SHA-256 implementation in liblzma is based on code written by
13
+ Wei Dai in Crypto++ Library <https://www.cryptopp.com/>.
14
+
15
+ A few scripts have been adapted from GNU gzip. The original
16
+ versions were written by Jean-loup Gailly, Charles Levert, and
17
+ Paul Eggert. Andrew Dudman helped adapting the scripts and their
18
+ man pages for XZ Utils.
19
+
20
+ The initial version of the threaded .xz decompressor was written
21
+ by Sebastian Andrzej Siewior.
22
+
23
+ The initial version of the .lz (lzip) decoder was written
24
+ by Michał Górny.
25
+
26
+ Architecture-specific CRC optimizations were contributed by
27
+ Ilya Kurdyukov, Hans Jansen, and Chenxi Mao.
28
+
29
+ Other authors:
30
+ - Jonathan Nieder
31
+ - Joachim Henke
32
+
33
+ Special author: Jia Tan was a co-maintainer in 2022-2024. He and
34
+ the team behind him inserted a backdoor (CVE-2024-3094) into
35
+ XZ Utils 5.6.0 and 5.6.1 releases. He suddenly disappeared when
36
+ this was discovered.
37
+
38
+ Many people have contributed improvements or reported bugs.
39
+ Most of these people are mentioned in the file THANKS.
40
+
41
+ The translations of the command line tools and man pages have been
42
+ contributed by many people via the Translation Project:
43
+
44
+ - https://translationproject.org/domain/xz.html
45
+ - https://translationproject.org/domain/xz-man.html
46
+
47
+ The authors of the translated man pages are in the header comments
48
+ of the man page files. In the source package, the authors of the
49
+ translations are in po/*.po and po4a/*.po files.
50
+
51
+ Third-party code whose authors aren't listed here:
52
+
53
+ - GNU getopt_long() in the 'lib' directory is included for
54
+ platforms that don't have a usable getopt_long().
55
+
56
+ - The build system files from GNU Autoconf, GNU Automake,
57
+ GNU Libtool, GNU Gettext, Autoconf Archive, and related files.
58
+
llava_next/share/doc/xz/COPYING ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ XZ Utils Licensing
3
+ ==================
4
+
5
+ Different licenses apply to different files in this package. Here
6
+ is a summary of which licenses apply to which parts of this package:
7
+
8
+ - liblzma is under the BSD Zero Clause License (0BSD).
9
+
10
+ - The command line tools xz, xzdec, lzmadec, and lzmainfo are
11
+ under 0BSD except that, on systems that don't have a usable
12
+ getopt_long, GNU getopt_long is compiled and linked in from the
13
+ 'lib' directory. The getopt_long code is under GNU LGPLv2.1+.
14
+
15
+ - The scripts to grep, diff, and view compressed files have been
16
+ adapted from GNU gzip. These scripts (xzgrep, xzdiff, xzless,
17
+ and xzmore) are under GNU GPLv2+. The man pages of the scripts
18
+ are under 0BSD; they aren't based on the man pages of GNU gzip.
19
+
20
+ - Most of the XZ Utils specific documentation that is in
21
+ plain text files (like README, INSTALL, PACKAGERS, NEWS,
22
+ and ChangeLog) are under 0BSD unless stated otherwise in
23
+ the file itself. The files xz-file-format.txt and
24
+ lzma-file-format.xt are in the public domain but may
25
+ be distributed under the terms of 0BSD too.
26
+
27
+ - Translated messages and man pages are under 0BSD except that
28
+ some old translations are in the public domain.
29
+
30
+ - Test files and test code in the 'tests' directory, and
31
+ debugging utilities in the 'debug' directory are under
32
+ the BSD Zero Clause License (0BSD).
33
+
34
+ - The GNU Autotools based build system contains files that are
35
+ under GNU GPLv2+, GNU GPLv3+, and a few permissive licenses.
36
+ These files don't affect the licensing of the binaries being
37
+ built.
38
+
39
+ - The 'extra' directory contains files that are under various
40
+ free software licenses. These aren't built or installed as
41
+ part of XZ Utils.
42
+
43
+ For the files under the BSD Zero Clause License (0BSD), if
44
+ a copyright notice is needed, the following is sufficient:
45
+
46
+ Copyright (C) The XZ Utils authors and contributors
47
+
48
+ If you copy significant amounts of 0BSD-licensed code from XZ Utils
49
+ into your project, acknowledging this somewhere in your software is
50
+ polite (especially if it is proprietary, non-free software), but
51
+ it is not legally required by the license terms. Here is an example
52
+ of a good notice to put into "about box" or into documentation:
53
+
54
+ This software includes code from XZ Utils <https://tukaani.org/xz/>.
55
+
56
+ The following license texts are included in the following files:
57
+ - COPYING.0BSD: BSD Zero Clause License
58
+ - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
59
+ - COPYING.GPLv2: GNU General Public License version 2
60
+ - COPYING.GPLv3: GNU General Public License version 3
61
+
62
+ A note about old XZ Utils releases:
63
+
64
+ XZ Utils releases 5.4.6 and older and 5.5.1alpha have a
65
+ significant amount of code put into the public domain and
66
+ that obviously remains so. The switch from public domain to
67
+ 0BSD for newer releases was made in Febrary 2024 because
68
+ public domain has (real or perceived) legal ambiguities in
69
+ some jurisdictions.
70
+
71
+ There is very little *practical* difference between public
72
+ domain and 0BSD. The main difference likely is that one
73
+ shouldn't claim that 0BSD-licensed code is in the public
74
+ domain; 0BSD-licensed code is copyrighted but available under
75
+ an extremely permissive license. Neither 0BSD nor public domain
76
+ require retaining or reproducing author, copyright holder, or
77
+ license notices when distributing the software. (Compare to,
78
+ for example, BSD 2-Clause "Simplified" License which does have
79
+ such requirements.)
80
+
81
+ If you have questions, don't hesitate to ask for more information.
82
+ The contact information is in the README file.
83
+
llava_next/share/doc/xz/COPYING.0BSD ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Permission to use, copy, modify, and/or distribute this
2
+ software for any purpose with or without fee is hereby granted.
3
+
4
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
5
+ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
6
+ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
7
+ THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
8
+ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
9
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
10
+ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
11
+ CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
llava_next/share/doc/xz/COPYING.GPLv2 ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
llava_next/share/doc/xz/NEWS ADDED
The diff for this file is too large to render. See raw diff
 
llava_next/share/doc/xz/README ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ XZ Utils
3
+ ========
4
+
5
+ 0. Overview
6
+ 1. Documentation
7
+ 1.1. Overall documentation
8
+ 1.2. Documentation for command-line tools
9
+ 1.3. Documentation for liblzma
10
+ 2. Version numbering
11
+ 3. Reporting bugs
12
+ 4. Translations
13
+ 5. Other implementations of the .xz format
14
+ 6. Contact information
15
+
16
+
17
+ 0. Overview
18
+ -----------
19
+
20
+ XZ Utils provide a general-purpose data-compression library plus
21
+ command-line tools. The native file format is the .xz format, but
22
+ also the legacy .lzma format is supported. The .xz format supports
23
+ multiple compression algorithms, which are called "filters" in the
24
+ context of XZ Utils. The primary filter is currently LZMA2. With
25
+ typical files, XZ Utils create about 30 % smaller files than gzip.
26
+
27
+ To ease adapting support for the .xz format into existing applications
28
+ and scripts, the API of liblzma is somewhat similar to the API of the
29
+ popular zlib library. For the same reason, the command-line tool xz
30
+ has a command-line syntax similar to that of gzip.
31
+
32
+ When aiming for the highest compression ratio, the LZMA2 encoder uses
33
+ a lot of CPU time and may use, depending on the settings, even
34
+ hundreds of megabytes of RAM. However, in fast modes, the LZMA2 encoder
35
+ competes with bzip2 in compression speed, RAM usage, and compression
36
+ ratio.
37
+
38
+ LZMA2 is reasonably fast to decompress. It is a little slower than
39
+ gzip, but a lot faster than bzip2. Being fast to decompress means
40
+ that the .xz format is especially nice when the same file will be
41
+ decompressed very many times (usually on different computers), which
42
+ is the case e.g. when distributing software packages. In such
43
+ situations, it's not too bad if the compression takes some time,
44
+ since that needs to be done only once to benefit many people.
45
+
46
+ With some file types, combining (or "chaining") LZMA2 with an
47
+ additional filter can improve the compression ratio. A filter chain may
48
+ contain up to four filters, although usually only one or two are used.
49
+ For example, putting a BCJ (Branch/Call/Jump) filter before LZMA2
50
+ in the filter chain can improve compression ratio of executable files.
51
+
52
+ Since the .xz format allows adding new filter IDs, it is possible that
53
+ some day there will be a filter that is, for example, much faster to
54
+ compress than LZMA2 (but probably with worse compression ratio).
55
+ Similarly, it is possible that some day there is a filter that will
56
+ compress better than LZMA2.
57
+
58
+ XZ Utils supports multithreaded compression. XZ Utils doesn't support
59
+ multithreaded decompression yet. It has been planned though and taken
60
+ into account when designing the .xz file format. In the future, files
61
+ that were created in threaded mode can be decompressed in threaded
62
+ mode too.
63
+
64
+
65
+ 1. Documentation
66
+ ----------------
67
+
68
+ 1.1. Overall documentation
69
+
70
+ README This file
71
+
72
+ INSTALL.generic Generic install instructions for those not
73
+ familiar with packages using GNU Autotools
74
+ INSTALL Installation instructions specific to XZ Utils
75
+ PACKAGERS Information to packagers of XZ Utils
76
+
77
+ COPYING XZ Utils copyright and license information
78
+ COPYING.0BSD BSD Zero Clause License
79
+ COPYING.GPLv2 GNU General Public License version 2
80
+ COPYING.GPLv3 GNU General Public License version 3
81
+ COPYING.LGPLv2.1 GNU Lesser General Public License version 2.1
82
+
83
+ AUTHORS The main authors of XZ Utils
84
+ THANKS Incomplete list of people who have helped making
85
+ this software
86
+ NEWS User-visible changes between XZ Utils releases
87
+ ChangeLog Detailed list of changes (commit log)
88
+ TODO Known bugs and some sort of to-do list
89
+
90
+ Note that only some of the above files are included in binary
91
+ packages.
92
+
93
+
94
+ 1.2. Documentation for command-line tools
95
+
96
+ The command-line tools are documented as man pages. In source code
97
+ releases (and possibly also in some binary packages), the man pages
98
+ are also provided in plain text (ASCII only) format in the directory
99
+ "doc/man" to make the man pages more accessible to those whose
100
+ operating system doesn't provide an easy way to view man pages.
101
+
102
+
103
+ 1.3. Documentation for liblzma
104
+
105
+ The liblzma API headers include short docs about each function
106
+ and data type as Doxygen tags. These docs should be quite OK as
107
+ a quick reference.
108
+
109
+ There are a few example/tutorial programs that should help in
110
+ getting started with liblzma. In the source package the examples
111
+ are in "doc/examples" and in binary packages they may be under
112
+ "examples" in the same directory as this README.
113
+
114
+ Since the liblzma API has similarities to the zlib API, some people
115
+ may find it useful to read the zlib docs and tutorial too:
116
+
117
+ https://zlib.net/manual.html
118
+ https://zlib.net/zlib_how.html
119
+
120
+
121
+ 2. Version numbering
122
+ --------------------
123
+
124
+ The version number format of XZ Utils is X.Y.ZS:
125
+
126
+ - X is the major version. When this is incremented, the library
127
+ API and ABI break.
128
+
129
+ - Y is the minor version. It is incremented when new features
130
+ are added without breaking the existing API or ABI. An even Y
131
+ indicates a stable release and an odd Y indicates unstable
132
+ (alpha or beta version).
133
+
134
+ - Z is the revision. This has a different meaning for stable and
135
+ unstable releases:
136
+
137
+ * Stable: Z is incremented when bugs get fixed without adding
138
+ any new features. This is intended to be convenient for
139
+ downstream distributors that want bug fixes but don't want
140
+ any new features to minimize the risk of introducing new bugs.
141
+
142
+ * Unstable: Z is just a counter. API or ABI of features added
143
+ in earlier unstable releases having the same X.Y may break.
144
+
145
+ - S indicates stability of the release. It is missing from the
146
+ stable releases, where Y is an even number. When Y is odd, S
147
+ is either "alpha" or "beta" to make it very clear that such
148
+ versions are not stable releases. The same X.Y.Z combination is
149
+ not used for more than one stability level, i.e. after X.Y.Zalpha,
150
+ the next version can be X.Y.(Z+1)beta but not X.Y.Zbeta.
151
+
152
+
153
+ 3. Reporting bugs
154
+ -----------------
155
+
156
+ Naturally it is easiest for me if you already know what causes the
157
+ unexpected behavior. Even better if you have a patch to propose.
158
+ However, quite often the reason for unexpected behavior is unknown,
159
+ so here are a few things to do before sending a bug report:
160
+
161
+ 1. Try to create a small example how to reproduce the issue.
162
+
163
+ 2. Compile XZ Utils with debugging code using configure switches
164
+ --enable-debug and, if possible, --disable-shared. If you are
165
+ using GCC, use CFLAGS='-O0 -ggdb3'. Don't strip the resulting
166
+ binaries.
167
+
168
+ 3. Turn on core dumps. The exact command depends on your shell;
169
+ for example in GNU bash it is done with "ulimit -c unlimited",
170
+ and in tcsh with "limit coredumpsize unlimited".
171
+
172
+ 4. Try to reproduce the suspected bug. If you get "assertion failed"
173
+ message, be sure to include the complete message in your bug
174
+ report. If the application leaves a coredump, get a backtrace
175
+ using gdb:
176
+ $ gdb /path/to/app-binary # Load the app to the debugger.
177
+ (gdb) core core # Open the coredump.
178
+ (gdb) bt # Print the backtrace. Copy & paste to bug report.
179
+ (gdb) quit # Quit gdb.
180
+
181
+ Report your bug via email or IRC (see Contact information below).
182
+ Don't send core dump files or any executables. If you have a small
183
+ example file(s) (total size less than 256 KiB), please include
184
+ it/them as an attachment. If you have bigger test files, put them
185
+ online somewhere and include a URL to the file(s) in the bug report.
186
+
187
+ Always include the exact version number of XZ Utils in the bug report.
188
+ If you are using a snapshot from the git repository, use "git describe"
189
+ to get the exact snapshot version. If you are using XZ Utils shipped
190
+ in an operating system distribution, mention the distribution name,
191
+ distribution version, and exact xz package version; if you cannot
192
+ repeat the bug with the code compiled from unpatched source code,
193
+ you probably need to report a bug to your distribution's bug tracking
194
+ system.
195
+
196
+
197
+ 4. Translations
198
+ ---------------
199
+
200
+ The xz command line tool and all man pages can be translated.
201
+ The translations are handled via the Translation Project. If you
202
+ wish to help translating xz, please join the Translation Project:
203
+
204
+ https://translationproject.org/html/translators.html
205
+
206
+ Below are notes and testing instructions specific to xz
207
+ translations.
208
+
209
+ Testing can be done by installing xz into a temporary directory:
210
+
211
+ ./configure --disable-shared --prefix=/tmp/xz-test
212
+ # <Edit the .po file in the po directory.>
213
+ make -C po update-po
214
+ make install
215
+ bash debug/translation.bash | less
216
+ bash debug/translation.bash | less -S # For --list outputs
217
+
218
+ Repeat the above as needed (no need to re-run configure though).
219
+
220
+ Note especially the following:
221
+
222
+ - The output of --help and --long-help must look nice on
223
+ an 80-column terminal. It's OK to add extra lines if needed.
224
+
225
+ - In contrast, don't add extra lines to error messages and such.
226
+ They are often preceded with e.g. a filename on the same line,
227
+ so you have no way to predict where to put a \n. Let the terminal
228
+ do the wrapping even if it looks ugly. Adding new lines will be
229
+ even uglier in the generic case even if it looks nice in a few
230
+ limited examples.
231
+
232
+ - Be careful with column alignment in tables and table-like output
233
+ (--list, --list --verbose --verbose, --info-memory, --help, and
234
+ --long-help):
235
+
236
+ * All descriptions of options in --help should start in the
237
+ same column (but it doesn't need to be the same column as
238
+ in the English messages; just be consistent if you change it).
239
+ Check that both --help and --long-help look OK, since they
240
+ share several strings.
241
+
242
+ * --list --verbose and --info-memory print lines that have
243
+ the format "Description: %s". If you need a longer
244
+ description, you can put extra space between the colon
245
+ and %s. Then you may need to add extra space to other
246
+ strings too so that the result as a whole looks good (all
247
+ values start at the same column).
248
+
249
+ * The columns of the actual tables in --list --verbose --verbose
250
+ should be aligned properly. Abbreviate if necessary. It might
251
+ be good to keep at least 2 or 3 spaces between column headings
252
+ and avoid spaces in the headings so that the columns stand out
253
+ better, but this is a matter of opinion. Do what you think
254
+ looks best.
255
+
256
+ - Be careful to put a period at the end of a sentence when the
257
+ original version has it, and don't put it when the original
258
+ doesn't have it. Similarly, be careful with \n characters
259
+ at the beginning and end of the strings.
260
+
261
+ - Read the TRANSLATORS comments that have been extracted from the
262
+ source code and included in xz.pot. Some comments suggest
263
+ testing with a specific command which needs an .xz file. You
264
+ may use e.g. any tests/files/good-*.xz. However, these test
265
+ commands are included in translations.bash output, so reading
266
+ translations.bash output carefully can be enough.
267
+
268
+ - If you find language problems in the original English strings,
269
+ feel free to suggest improvements. Ask if something is unclear.
270
+
271
+ - The translated messages should be understandable (sometimes this
272
+ may be a problem with the original English messages too). Don't
273
+ make a direct word-by-word translation from English especially if
274
+ the result doesn't sound good in your language.
275
+
276
+ Thanks for your help!
277
+
278
+
279
+ 5. Other implementations of the .xz format
280
+ ------------------------------------------
281
+
282
+ 7-Zip and the p7zip port of 7-Zip support the .xz format starting
283
+ from the version 9.00alpha.
284
+
285
+ https://7-zip.org/
286
+ https://p7zip.sourceforge.net/
287
+
288
+ XZ Embedded is a limited implementation written for use in the Linux
289
+ kernel, but it is also suitable for other embedded use.
290
+
291
+ https://tukaani.org/xz/embedded.html
292
+
293
+ XZ for Java is a complete implementation written in pure Java.
294
+
295
+ https://tukaani.org/xz/java.html
296
+
297
+
298
+ 6. Contact information
299
+ ----------------------
300
+
301
+ XZ Utils in general:
302
+ - Home page: https://tukaani.org/xz/
303
+ - Email to maintainer(s): xz@tukaani.org
304
+ - IRC: #tukaani on Libera Chat
305
+ - GitHub: https://github.com/tukaani-project/xz
306
+
307
+ Lead maintainer:
308
+ - Email: Lasse Collin <lasse.collin@tukaani.org>
309
+ - IRC: Larhzu on Libera Chat
310
+
llava_next/share/doc/xz/THANKS ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Thanks
3
+ ======
4
+
5
+ Some people have helped more, some less, but nevertheless everyone's help
6
+ has been important. :-) In alphabetical order:
7
+ - Mark Adler
8
+ - Kian-Meng Ang
9
+ - H. Peter Anvin
10
+ - Jeff Bastian
11
+ - Nelson H. F. Beebe
12
+ - Karl Beldan
13
+ - Karl Berry
14
+ - Anders F. Björklund
15
+ - Emmanuel Blot
16
+ - Melanie Blower
17
+ - Alexander Bluhm
18
+ - Martin Blumenstingl
19
+ - Ben Boeckel
20
+ - Jakub Bogusz
21
+ - Adam Borowski
22
+ - Maarten Bosmans
23
+ - Lukas Braune
24
+ - Benjamin Buch
25
+ - Trent W. Buck
26
+ - Kevin R. Bulgrien
27
+ - James Buren
28
+ - David Burklund
29
+ - Frank Busse
30
+ - Daniel Mealha Cabrita
31
+ - Milo Casagrande
32
+ - Marek Černocký
33
+ - Tomer Chachamu
34
+ - Vitaly Chikunov
35
+ - Antoine Cœur
36
+ - Felix Collin
37
+ - Marcus Comstedt
38
+ - Gabi Davar
39
+ - İhsan Doğan
40
+ - Chris Donawa
41
+ - Andrew Dudman
42
+ - Markus Duft
43
+ - İsmail Dönmez
44
+ - Dexter Castor Döpping
45
+ - Paul Eggert
46
+ - Robert Elz
47
+ - Gilles Espinasse
48
+ - Denis Excoffier
49
+ - Vincent Fazio
50
+ - Michael Felt
51
+ - Michael Fox
52
+ - Andres Freund
53
+ - Mike Frysinger
54
+ - Daniel Richard G.
55
+ - Tomasz Gajc
56
+ - Bjarni Ingi Gislason
57
+ - John Paul Adrian Glaubitz
58
+ - Bill Glessner
59
+ - Matthew Good
60
+ - Michał Górny
61
+ - Jason Gorski
62
+ - Juan Manuel Guerrero
63
+ - Gabriela Gutierrez
64
+ - Diederik de Haas
65
+ - Joachim Henke
66
+ - Christian Hesse
67
+ - Vincenzo Innocente
68
+ - Peter Ivanov
69
+ - Nicholas Jackson
70
+ - Sam James
71
+ - Hajin Jang
72
+ - Hans Jansen
73
+ - Jouk Jansen
74
+ - Jun I Jin
75
+ - Christoph Junghans
76
+ - Kiyoshi Kanazawa
77
+ - Joona Kannisto
78
+ - Per Øyvind Karlsen
79
+ - Firas Khalil Khana
80
+ - Iouri Kharon
81
+ - Thomas Klausner
82
+ - Richard Koch
83
+ - Anton Kochkov
84
+ - Ville Koskinen
85
+ - Sergey Kosukhin
86
+ - Marcin Kowalczyk
87
+ - Jan Kratochvil
88
+ - Christian Kujau
89
+ - Stephan Kulow
90
+ - Ilya Kurdyukov
91
+ - Peter Lawler
92
+ - James M Leddy
93
+ - Kelvin Lee
94
+ - Vincent Lefevre
95
+ - Hin-Tak Leung
96
+ - Andraž 'ruskie' Levstik
97
+ - Cary Lewis
98
+ - Wim Lewis
99
+ - Xin Li
100
+ - Yifeng Li
101
+ - Eric Lindblad
102
+ - Lorenzo De Liso
103
+ - H.J. Lu
104
+ - Bela Lubkin
105
+ - Chenxi Mao
106
+ - Gregory Margo
107
+ - Julien Marrec
108
+ - Ed Maste
109
+ - Martin Matuška
110
+ - Ivan A. Melnikov
111
+ - Jim Meyering
112
+ - Arkadiusz Miskiewicz
113
+ - Nathan Moinvaziri
114
+ - Étienne Mollier
115
+ - Conley Moorhous
116
+ - Andrew Murray
117
+ - Rafał Mużyło
118
+ - Adrien Nader
119
+ - Evan Nemerson
120
+ - Alexander Neumann
121
+ - Hongbo Ni
122
+ - Jonathan Nieder
123
+ - Asgeir Storesund Nilsen
124
+ - Andre Noll
125
+ - Peter O'Gorman
126
+ - Dimitri Papadopoulos Orfanos
127
+ - Daniel Packard
128
+ - Filip Palian
129
+ - Peter Pallinger
130
+ - Kai Pastor
131
+ - Keith Patton
132
+ - Rui Paulo
133
+ - Igor Pavlov
134
+ - Diego Elio Pettenò
135
+ - Elbert Pol
136
+ - Mikko Pouru
137
+ - Frank Prochnow
138
+ - Rich Prohaska
139
+ - Trần Ngọc Quân
140
+ - Pavel Raiskup
141
+ - Ole André Vadla Ravnås
142
+ - Eric S. Raymond
143
+ - Robert Readman
144
+ - Bernhard Reutner-Fischer
145
+ - Markus Rickert
146
+ - Cristian Rodríguez
147
+ - Christian von Roques
148
+ - Boud Roukema
149
+ - Torsten Rupp
150
+ - Stephen Sachs
151
+ - Jukka Salmi
152
+ - Agostino Sarubbo
153
+ - Vijay Sarvepalli
154
+ - Alexandre Sauvé
155
+ - Benno Schulenberg
156
+ - Andreas Schwab
157
+ - Eli Schwartz
158
+ - Peter Seiderer
159
+ - Bhargava Shastry
160
+ - Dan Shechter
161
+ - Stuart Shelton
162
+ - Sebastian Andrzej Siewior
163
+ - Ville Skyttä
164
+ - Brad Smith
165
+ - Bruce Stark
166
+ - Pippijn van Steenhoven
167
+ - Tobias Stoeckmann
168
+ - Martin Storsjö
169
+ - Jonathan Stott
170
+ - Dan Stromberg
171
+ - Douglas Thor
172
+ - Vincent Torri
173
+ - Alexey Tourbin
174
+ - Paul Townsend
175
+ - Mohammed Adnène Trojette
176
+ - Orange Tsai
177
+ - Taiki Tsunekawa
178
+ - Mathieu Vachon
179
+ - Maksym Vatsyk
180
+ - Loganaden Velvindron
181
+ - Patrick J. Volkerding
182
+ - Martin Väth
183
+ - Adam Walling
184
+ - Jeffrey Walton
185
+ - Christian Weisgerber
186
+ - Dan Weiss
187
+ - Bert Wesarg
188
+ - Mark Wielaard
189
+ - Fredrik Wikstrom
190
+ - Jim Wilcoxson
191
+ - Ralf Wildenhues
192
+ - Charles Wilson
193
+ - Lars Wirzenius
194
+ - Pilorz Wojciech
195
+ - Chien Wong
196
+ - Ryan Young
197
+ - Andreas Zieringer
198
+
199
+ Companies:
200
+ - Google
201
+ - Sandfly Security
202
+
203
+ Also thanks to all the people who have participated in the Tukaani project.
204
+
205
+ I have probably forgot to add some names to the above list. Sorry about
206
+ that and thanks for your help.
207
+
llava_next/share/doc/xz/examples/00_README.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ liblzma example programs
3
+ ========================
4
+
5
+ Introduction
6
+
7
+ The examples are written so that the same comments aren't
8
+ repeated (much) in later files.
9
+
10
+ On POSIX systems, the examples should build by just typing "make".
11
+
12
+ The examples that use stdin or stdout don't set stdin and stdout
13
+ to binary mode. On systems where it matters (e.g. Windows) it is
14
+ possible that the examples won't work without modification.
15
+
16
+
17
+ List of examples
18
+
19
+ 01_compress_easy.c Multi-call compression using
20
+ a compression preset
21
+
22
+ 02_decompress.c Multi-call decompression
23
+
24
+ 03_compress_custom.c Like 01_compress_easy.c but using
25
+ a custom filter chain
26
+ (x86 BCJ + LZMA2)
27
+
28
+ 04_compress_easy_mt.c Multi-threaded multi-call
29
+ compression using a compression
30
+ preset
31
+
llava_next/share/doc/xz/examples/01_compress_easy.c ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: 0BSD
2
+
3
+ ///////////////////////////////////////////////////////////////////////////////
4
+ //
5
+ /// \file 01_compress_easy.c
6
+ /// \brief Compress from stdin to stdout in multi-call mode
7
+ ///
8
+ /// Usage: ./01_compress_easy PRESET < INFILE > OUTFILE
9
+ ///
10
+ /// Example: ./01_compress_easy 6 < foo > foo.xz
11
+ //
12
+ // Author: Lasse Collin
13
+ //
14
+ ///////////////////////////////////////////////////////////////////////////////
15
+
16
+ #include <stdbool.h>
17
+ #include <stdlib.h>
18
+ #include <stdio.h>
19
+ #include <string.h>
20
+ #include <errno.h>
21
+ #include <lzma.h>
22
+
23
+
24
+ static void
25
+ show_usage_and_exit(const char *argv0)
26
+ {
27
+ fprintf(stderr, "Usage: %s PRESET < INFILE > OUTFILE\n"
28
+ "PRESET is a number 0-9 and can optionally be "
29
+ "followed by 'e' to indicate extreme preset\n",
30
+ argv0);
31
+ exit(EXIT_FAILURE);
32
+ }
33
+
34
+
35
+ static uint32_t
36
+ get_preset(int argc, char **argv)
37
+ {
38
+ // One argument whose first char must be 0-9.
39
+ if (argc != 2 || argv[1][0] < '0' || argv[1][0] > '9')
40
+ show_usage_and_exit(argv[0]);
41
+
42
+ // Calculate the preste level 0-9.
43
+ uint32_t preset = argv[1][0] - '0';
44
+
45
+ // If there is a second char, it must be 'e'. It will set
46
+ // the LZMA_PRESET_EXTREME flag.
47
+ if (argv[1][1] != '\0') {
48
+ if (argv[1][1] != 'e' || argv[1][2] != '\0')
49
+ show_usage_and_exit(argv[0]);
50
+
51
+ preset |= LZMA_PRESET_EXTREME;
52
+ }
53
+
54
+ return preset;
55
+ }
56
+
57
+
58
+ static bool
59
+ init_encoder(lzma_stream *strm, uint32_t preset)
60
+ {
61
+ // Initialize the encoder using a preset. Set the integrity to check
62
+ // to CRC64, which is the default in the xz command line tool. If
63
+ // the .xz file needs to be decompressed with XZ Embedded, use
64
+ // LZMA_CHECK_CRC32 instead.
65
+ lzma_ret ret = lzma_easy_encoder(strm, preset, LZMA_CHECK_CRC64);
66
+
67
+ // Return successfully if the initialization went fine.
68
+ if (ret == LZMA_OK)
69
+ return true;
70
+
71
+ // Something went wrong. The possible errors are documented in
72
+ // lzma/container.h (src/liblzma/api/lzma/container.h in the source
73
+ // package or e.g. /usr/include/lzma/container.h depending on the
74
+ // install prefix).
75
+ const char *msg;
76
+ switch (ret) {
77
+ case LZMA_MEM_ERROR:
78
+ msg = "Memory allocation failed";
79
+ break;
80
+
81
+ case LZMA_OPTIONS_ERROR:
82
+ msg = "Specified preset is not supported";
83
+ break;
84
+
85
+ case LZMA_UNSUPPORTED_CHECK:
86
+ msg = "Specified integrity check is not supported";
87
+ break;
88
+
89
+ default:
90
+ // This is most likely LZMA_PROG_ERROR indicating a bug in
91
+ // this program or in liblzma. It is inconvenient to have a
92
+ // separate error message for errors that should be impossible
93
+ // to occur, but knowing the error code is important for
94
+ // debugging. That's why it is good to print the error code
95
+ // at least when there is no good error message to show.
96
+ msg = "Unknown error, possibly a bug";
97
+ break;
98
+ }
99
+
100
+ fprintf(stderr, "Error initializing the encoder: %s (error code %u)\n",
101
+ msg, ret);
102
+ return false;
103
+ }
104
+
105
+
106
+ static bool
107
+ compress(lzma_stream *strm, FILE *infile, FILE *outfile)
108
+ {
109
+ // This will be LZMA_RUN until the end of the input file is reached.
110
+ // This tells lzma_code() when there will be no more input.
111
+ lzma_action action = LZMA_RUN;
112
+
113
+ // Buffers to temporarily hold uncompressed input
114
+ // and compressed output.
115
+ uint8_t inbuf[BUFSIZ];
116
+ uint8_t outbuf[BUFSIZ];
117
+
118
+ // Initialize the input and output pointers. Initializing next_in
119
+ // and avail_in isn't really necessary when we are going to encode
120
+ // just one file since LZMA_STREAM_INIT takes care of initializing
121
+ // those already. But it doesn't hurt much and it will be needed
122
+ // if encoding more than one file like we will in 02_decompress.c.
123
+ //
124
+ // While we don't care about strm->total_in or strm->total_out in this
125
+ // example, it is worth noting that initializing the encoder will
126
+ // always reset total_in and total_out to zero. But the encoder
127
+ // initialization doesn't touch next_in, avail_in, next_out, or
128
+ // avail_out.
129
+ strm->next_in = NULL;
130
+ strm->avail_in = 0;
131
+ strm->next_out = outbuf;
132
+ strm->avail_out = sizeof(outbuf);
133
+
134
+ // Loop until the file has been successfully compressed or until
135
+ // an error occurs.
136
+ while (true) {
137
+ // Fill the input buffer if it is empty.
138
+ if (strm->avail_in == 0 && !feof(infile)) {
139
+ strm->next_in = inbuf;
140
+ strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
141
+ infile);
142
+
143
+ if (ferror(infile)) {
144
+ fprintf(stderr, "Read error: %s\n",
145
+ strerror(errno));
146
+ return false;
147
+ }
148
+
149
+ // Once the end of the input file has been reached,
150
+ // we need to tell lzma_code() that no more input
151
+ // will be coming and that it should finish the
152
+ // encoding.
153
+ if (feof(infile))
154
+ action = LZMA_FINISH;
155
+ }
156
+
157
+ // Tell liblzma do the actual encoding.
158
+ //
159
+ // This reads up to strm->avail_in bytes of input starting
160
+ // from strm->next_in. avail_in will be decremented and
161
+ // next_in incremented by an equal amount to match the
162
+ // number of input bytes consumed.
163
+ //
164
+ // Up to strm->avail_out bytes of compressed output will be
165
+ // written starting from strm->next_out. avail_out and next_out
166
+ // will be incremented by an equal amount to match the number
167
+ // of output bytes written.
168
+ //
169
+ // The encoder has to do internal buffering, which means that
170
+ // it may take quite a bit of input before the same data is
171
+ // available in compressed form in the output buffer.
172
+ lzma_ret ret = lzma_code(strm, action);
173
+
174
+ // If the output buffer is full or if the compression finished
175
+ // successfully, write the data from the output buffer to
176
+ // the output file.
177
+ if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
178
+ // When lzma_code() has returned LZMA_STREAM_END,
179
+ // the output buffer is likely to be only partially
180
+ // full. Calculate how much new data there is to
181
+ // be written to the output file.
182
+ size_t write_size = sizeof(outbuf) - strm->avail_out;
183
+
184
+ if (fwrite(outbuf, 1, write_size, outfile)
185
+ != write_size) {
186
+ fprintf(stderr, "Write error: %s\n",
187
+ strerror(errno));
188
+ return false;
189
+ }
190
+
191
+ // Reset next_out and avail_out.
192
+ strm->next_out = outbuf;
193
+ strm->avail_out = sizeof(outbuf);
194
+ }
195
+
196
+ // Normally the return value of lzma_code() will be LZMA_OK
197
+ // until everything has been encoded.
198
+ if (ret != LZMA_OK) {
199
+ // Once everything has been encoded successfully, the
200
+ // return value of lzma_code() will be LZMA_STREAM_END.
201
+ //
202
+ // It is important to check for LZMA_STREAM_END. Do not
203
+ // assume that getting ret != LZMA_OK would mean that
204
+ // everything has gone well.
205
+ if (ret == LZMA_STREAM_END)
206
+ return true;
207
+
208
+ // It's not LZMA_OK nor LZMA_STREAM_END,
209
+ // so it must be an error code. See lzma/base.h
210
+ // (src/liblzma/api/lzma/base.h in the source package
211
+ // or e.g. /usr/include/lzma/base.h depending on the
212
+ // install prefix) for the list and documentation of
213
+ // possible values. Most values listen in lzma_ret
214
+ // enumeration aren't possible in this example.
215
+ const char *msg;
216
+ switch (ret) {
217
+ case LZMA_MEM_ERROR:
218
+ msg = "Memory allocation failed";
219
+ break;
220
+
221
+ case LZMA_DATA_ERROR:
222
+ // This error is returned if the compressed
223
+ // or uncompressed size get near 8 EiB
224
+ // (2^63 bytes) because that's where the .xz
225
+ // file format size limits currently are.
226
+ // That is, the possibility of this error
227
+ // is mostly theoretical unless you are doing
228
+ // something very unusual.
229
+ //
230
+ // Note that strm->total_in and strm->total_out
231
+ // have nothing to do with this error. Changing
232
+ // those variables won't increase or decrease
233
+ // the chance of getting this error.
234
+ msg = "File size limits exceeded";
235
+ break;
236
+
237
+ default:
238
+ // This is most likely LZMA_PROG_ERROR, but
239
+ // if this program is buggy (or liblzma has
240
+ // a bug), it may be e.g. LZMA_BUF_ERROR or
241
+ // LZMA_OPTIONS_ERROR too.
242
+ //
243
+ // It is inconvenient to have a separate
244
+ // error message for errors that should be
245
+ // impossible to occur, but knowing the error
246
+ // code is important for debugging. That's why
247
+ // it is good to print the error code at least
248
+ // when there is no good error message to show.
249
+ msg = "Unknown error, possibly a bug";
250
+ break;
251
+ }
252
+
253
+ fprintf(stderr, "Encoder error: %s (error code %u)\n",
254
+ msg, ret);
255
+ return false;
256
+ }
257
+ }
258
+ }
259
+
260
+
261
+ extern int
262
+ main(int argc, char **argv)
263
+ {
264
+ // Get the preset number from the command line.
265
+ uint32_t preset = get_preset(argc, argv);
266
+
267
+ // Initialize a lzma_stream structure. When it is allocated on stack,
268
+ // it is simplest to use LZMA_STREAM_INIT macro like below. When it
269
+ // is allocated on heap, using memset(strmptr, 0, sizeof(*strmptr))
270
+ // works (as long as NULL pointers are represented with zero bits
271
+ // as they are on practically all computers today).
272
+ lzma_stream strm = LZMA_STREAM_INIT;
273
+
274
+ // Initialize the encoder. If it succeeds, compress from
275
+ // stdin to stdout.
276
+ bool success = init_encoder(&strm, preset);
277
+ if (success)
278
+ success = compress(&strm, stdin, stdout);
279
+
280
+ // Free the memory allocated for the encoder. If we were encoding
281
+ // multiple files, this would only need to be done after the last
282
+ // file. See 02_decompress.c for handling of multiple files.
283
+ //
284
+ // It is OK to call lzma_end() multiple times or when it hasn't been
285
+ // actually used except initialized with LZMA_STREAM_INIT.
286
+ lzma_end(&strm);
287
+
288
+ // Close stdout to catch possible write errors that can occur
289
+ // when pending data is flushed from the stdio buffers.
290
+ if (fclose(stdout)) {
291
+ fprintf(stderr, "Write error: %s\n", strerror(errno));
292
+ success = false;
293
+ }
294
+
295
+ return success ? EXIT_SUCCESS : EXIT_FAILURE;
296
+ }
llava_next/share/doc/xz/examples/02_decompress.c ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: 0BSD
2
+
3
+ ///////////////////////////////////////////////////////////////////////////////
4
+ //
5
+ /// \file 02_decompress.c
6
+ /// \brief Decompress .xz files to stdout
7
+ ///
8
+ /// Usage: ./02_decompress INPUT_FILES... > OUTFILE
9
+ ///
10
+ /// Example: ./02_decompress foo.xz bar.xz > foobar
11
+ //
12
+ // Author: Lasse Collin
13
+ //
14
+ ///////////////////////////////////////////////////////////////////////////////
15
+
16
+ #include <stdbool.h>
17
+ #include <stdlib.h>
18
+ #include <stdio.h>
19
+ #include <string.h>
20
+ #include <errno.h>
21
+ #include <lzma.h>
22
+
23
+
24
+ static bool
25
+ init_decoder(lzma_stream *strm)
26
+ {
27
+ // Initialize a .xz decoder. The decoder supports a memory usage limit
28
+ // and a set of flags.
29
+ //
30
+ // The memory usage of the decompressor depends on the settings used
31
+ // to compress a .xz file. It can vary from less than a megabyte to
32
+ // a few gigabytes, but in practice (at least for now) it rarely
33
+ // exceeds 65 MiB because that's how much memory is required to
34
+ // decompress files created with "xz -9". Settings requiring more
35
+ // memory take extra effort to use and don't (at least for now)
36
+ // provide significantly better compression in most cases.
37
+ //
38
+ // Memory usage limit is useful if it is important that the
39
+ // decompressor won't consume gigabytes of memory. The need
40
+ // for limiting depends on the application. In this example,
41
+ // no memory usage limiting is used. This is done by setting
42
+ // the limit to UINT64_MAX.
43
+ //
44
+ // The .xz format allows concatenating compressed files as is:
45
+ //
46
+ // echo foo | xz > foobar.xz
47
+ // echo bar | xz >> foobar.xz
48
+ //
49
+ // When decompressing normal standalone .xz files, LZMA_CONCATENATED
50
+ // should always be used to support decompression of concatenated
51
+ // .xz files. If LZMA_CONCATENATED isn't used, the decoder will stop
52
+ // after the first .xz stream. This can be useful when .xz data has
53
+ // been embedded inside another file format.
54
+ //
55
+ // Flags other than LZMA_CONCATENATED are supported too, and can
56
+ // be combined with bitwise-or. See lzma/container.h
57
+ // (src/liblzma/api/lzma/container.h in the source package or e.g.
58
+ // /usr/include/lzma/container.h depending on the install prefix)
59
+ // for details.
60
+ lzma_ret ret = lzma_stream_decoder(
61
+ strm, UINT64_MAX, LZMA_CONCATENATED);
62
+
63
+ // Return successfully if the initialization went fine.
64
+ if (ret == LZMA_OK)
65
+ return true;
66
+
67
+ // Something went wrong. The possible errors are documented in
68
+ // lzma/container.h (src/liblzma/api/lzma/container.h in the source
69
+ // package or e.g. /usr/include/lzma/container.h depending on the
70
+ // install prefix).
71
+ //
72
+ // Note that LZMA_MEMLIMIT_ERROR is never possible here. If you
73
+ // specify a very tiny limit, the error will be delayed until
74
+ // the first headers have been parsed by a call to lzma_code().
75
+ const char *msg;
76
+ switch (ret) {
77
+ case LZMA_MEM_ERROR:
78
+ msg = "Memory allocation failed";
79
+ break;
80
+
81
+ case LZMA_OPTIONS_ERROR:
82
+ msg = "Unsupported decompressor flags";
83
+ break;
84
+
85
+ default:
86
+ // This is most likely LZMA_PROG_ERROR indicating a bug in
87
+ // this program or in liblzma. It is inconvenient to have a
88
+ // separate error message for errors that should be impossible
89
+ // to occur, but knowing the error code is important for
90
+ // debugging. That's why it is good to print the error code
91
+ // at least when there is no good error message to show.
92
+ msg = "Unknown error, possibly a bug";
93
+ break;
94
+ }
95
+
96
+ fprintf(stderr, "Error initializing the decoder: %s (error code %u)\n",
97
+ msg, ret);
98
+ return false;
99
+ }
100
+
101
+
102
+ static bool
103
+ decompress(lzma_stream *strm, const char *inname, FILE *infile, FILE *outfile)
104
+ {
105
+ // When LZMA_CONCATENATED flag was used when initializing the decoder,
106
+ // we need to tell lzma_code() when there will be no more input.
107
+ // This is done by setting action to LZMA_FINISH instead of LZMA_RUN
108
+ // in the same way as it is done when encoding.
109
+ //
110
+ // When LZMA_CONCATENATED isn't used, there is no need to use
111
+ // LZMA_FINISH to tell when all the input has been read, but it
112
+ // is still OK to use it if you want. When LZMA_CONCATENATED isn't
113
+ // used, the decoder will stop after the first .xz stream. In that
114
+ // case some unused data may be left in strm->next_in.
115
+ lzma_action action = LZMA_RUN;
116
+
117
+ uint8_t inbuf[BUFSIZ];
118
+ uint8_t outbuf[BUFSIZ];
119
+
120
+ strm->next_in = NULL;
121
+ strm->avail_in = 0;
122
+ strm->next_out = outbuf;
123
+ strm->avail_out = sizeof(outbuf);
124
+
125
+ while (true) {
126
+ if (strm->avail_in == 0 && !feof(infile)) {
127
+ strm->next_in = inbuf;
128
+ strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
129
+ infile);
130
+
131
+ if (ferror(infile)) {
132
+ fprintf(stderr, "%s: Read error: %s\n",
133
+ inname, strerror(errno));
134
+ return false;
135
+ }
136
+
137
+ // Once the end of the input file has been reached,
138
+ // we need to tell lzma_code() that no more input
139
+ // will be coming. As said before, this isn't required
140
+ // if the LZMA_CONCATENATED flag isn't used when
141
+ // initializing the decoder.
142
+ if (feof(infile))
143
+ action = LZMA_FINISH;
144
+ }
145
+
146
+ lzma_ret ret = lzma_code(strm, action);
147
+
148
+ if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
149
+ size_t write_size = sizeof(outbuf) - strm->avail_out;
150
+
151
+ if (fwrite(outbuf, 1, write_size, outfile)
152
+ != write_size) {
153
+ fprintf(stderr, "Write error: %s\n",
154
+ strerror(errno));
155
+ return false;
156
+ }
157
+
158
+ strm->next_out = outbuf;
159
+ strm->avail_out = sizeof(outbuf);
160
+ }
161
+
162
+ if (ret != LZMA_OK) {
163
+ // Once everything has been decoded successfully, the
164
+ // return value of lzma_code() will be LZMA_STREAM_END.
165
+ //
166
+ // It is important to check for LZMA_STREAM_END. Do not
167
+ // assume that getting ret != LZMA_OK would mean that
168
+ // everything has gone well or that when you aren't
169
+ // getting more output it must have successfully
170
+ // decoded everything.
171
+ if (ret == LZMA_STREAM_END)
172
+ return true;
173
+
174
+ // It's not LZMA_OK nor LZMA_STREAM_END,
175
+ // so it must be an error code. See lzma/base.h
176
+ // (src/liblzma/api/lzma/base.h in the source package
177
+ // or e.g. /usr/include/lzma/base.h depending on the
178
+ // install prefix) for the list and documentation of
179
+ // possible values. Many values listen in lzma_ret
180
+ // enumeration aren't possible in this example, but
181
+ // can be made possible by enabling memory usage limit
182
+ // or adding flags to the decoder initialization.
183
+ const char *msg;
184
+ switch (ret) {
185
+ case LZMA_MEM_ERROR:
186
+ msg = "Memory allocation failed";
187
+ break;
188
+
189
+ case LZMA_FORMAT_ERROR:
190
+ // .xz magic bytes weren't found.
191
+ msg = "The input is not in the .xz format";
192
+ break;
193
+
194
+ case LZMA_OPTIONS_ERROR:
195
+ // For example, the headers specify a filter
196
+ // that isn't supported by this liblzma
197
+ // version (or it hasn't been enabled when
198
+ // building liblzma, but no-one sane does
199
+ // that unless building liblzma for an
200
+ // embedded system). Upgrading to a newer
201
+ // liblzma might help.
202
+ //
203
+ // Note that it is unlikely that the file has
204
+ // accidentally became corrupt if you get this
205
+ // error. The integrity of the .xz headers is
206
+ // always verified with a CRC32, so
207
+ // unintentionally corrupt files can be
208
+ // distinguished from unsupported files.
209
+ msg = "Unsupported compression options";
210
+ break;
211
+
212
+ case LZMA_DATA_ERROR:
213
+ msg = "Compressed file is corrupt";
214
+ break;
215
+
216
+ case LZMA_BUF_ERROR:
217
+ // Typically this error means that a valid
218
+ // file has got truncated, but it might also
219
+ // be a damaged part in the file that makes
220
+ // the decoder think the file is truncated.
221
+ // If you prefer, you can use the same error
222
+ // message for this as for LZMA_DATA_ERROR.
223
+ msg = "Compressed file is truncated or "
224
+ "otherwise corrupt";
225
+ break;
226
+
227
+ default:
228
+ // This is most likely LZMA_PROG_ERROR.
229
+ msg = "Unknown error, possibly a bug";
230
+ break;
231
+ }
232
+
233
+ fprintf(stderr, "%s: Decoder error: "
234
+ "%s (error code %u)\n",
235
+ inname, msg, ret);
236
+ return false;
237
+ }
238
+ }
239
+ }
240
+
241
+
242
+ extern int
243
+ main(int argc, char **argv)
244
+ {
245
+ if (argc <= 1) {
246
+ fprintf(stderr, "Usage: %s FILES...\n", argv[0]);
247
+ return EXIT_FAILURE;
248
+ }
249
+
250
+ lzma_stream strm = LZMA_STREAM_INIT;
251
+
252
+ bool success = true;
253
+
254
+ // Try to decompress all files.
255
+ for (int i = 1; i < argc; ++i) {
256
+ if (!init_decoder(&strm)) {
257
+ // Decoder initialization failed. There's no point
258
+ // to retry it so we need to exit.
259
+ success = false;
260
+ break;
261
+ }
262
+
263
+ FILE *infile = fopen(argv[i], "rb");
264
+
265
+ if (infile == NULL) {
266
+ fprintf(stderr, "%s: Error opening the "
267
+ "input file: %s\n",
268
+ argv[i], strerror(errno));
269
+ success = false;
270
+ } else {
271
+ success &= decompress(&strm, argv[i], infile, stdout);
272
+ fclose(infile);
273
+ }
274
+ }
275
+
276
+ // Free the memory allocated for the decoder. This only needs to be
277
+ // done after the last file.
278
+ lzma_end(&strm);
279
+
280
+ if (fclose(stdout)) {
281
+ fprintf(stderr, "Write error: %s\n", strerror(errno));
282
+ success = false;
283
+ }
284
+
285
+ return success ? EXIT_SUCCESS : EXIT_FAILURE;
286
+ }
llava_next/share/doc/xz/examples/03_compress_custom.c ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: 0BSD
2
+
3
+ ///////////////////////////////////////////////////////////////////////////////
4
+ //
5
+ /// \file 03_compress_custom.c
6
+ /// \brief Compress in multi-call mode using x86 BCJ and LZMA2
7
+ ///
8
+ /// Usage: ./03_compress_custom < INFILE > OUTFILE
9
+ ///
10
+ /// Example: ./03_compress_custom < foo > foo.xz
11
+ //
12
+ // Author: Lasse Collin
13
+ //
14
+ ///////////////////////////////////////////////////////////////////////////////
15
+
16
+ #include <stdbool.h>
17
+ #include <stdlib.h>
18
+ #include <stdio.h>
19
+ #include <string.h>
20
+ #include <errno.h>
21
+ #include <lzma.h>
22
+
23
+
24
+ static bool
25
+ init_encoder(lzma_stream *strm)
26
+ {
27
+ // Use the default preset (6) for LZMA2.
28
+ //
29
+ // The lzma_options_lzma structure and the lzma_lzma_preset() function
30
+ // are declared in lzma/lzma12.h (src/liblzma/api/lzma/lzma12.h in the
31
+ // source package or e.g. /usr/include/lzma/lzma12.h depending on
32
+ // the install prefix).
33
+ lzma_options_lzma opt_lzma2;
34
+ if (lzma_lzma_preset(&opt_lzma2, LZMA_PRESET_DEFAULT)) {
35
+ // It should never fail because the default preset
36
+ // (and presets 0-9 optionally with LZMA_PRESET_EXTREME)
37
+ // are supported by all stable liblzma versions.
38
+ //
39
+ // (The encoder initialization later in this function may
40
+ // still fail due to unsupported preset *if* the features
41
+ // required by the preset have been disabled at build time,
42
+ // but no-one does such things except on embedded systems.)
43
+ fprintf(stderr, "Unsupported preset, possibly a bug\n");
44
+ return false;
45
+ }
46
+
47
+ // Now we could customize the LZMA2 options if we wanted. For example,
48
+ // we could set the dictionary size (opt_lzma2.dict_size) to
49
+ // something else than the default (8 MiB) of the default preset.
50
+ // See lzma/lzma12.h for details of all LZMA2 options.
51
+ //
52
+ // The x86 BCJ filter will try to modify the x86 instruction stream so
53
+ // that LZMA2 can compress it better. The x86 BCJ filter doesn't need
54
+ // any options so it will be set to NULL below.
55
+ //
56
+ // Construct the filter chain. The uncompressed data goes first to
57
+ // the first filter in the array, in this case the x86 BCJ filter.
58
+ // The array is always terminated by setting .id = LZMA_VLI_UNKNOWN.
59
+ //
60
+ // See lzma/filter.h for more information about the lzma_filter
61
+ // structure.
62
+ lzma_filter filters[] = {
63
+ { .id = LZMA_FILTER_X86, .options = NULL },
64
+ { .id = LZMA_FILTER_LZMA2, .options = &opt_lzma2 },
65
+ { .id = LZMA_VLI_UNKNOWN, .options = NULL },
66
+ };
67
+
68
+ // Initialize the encoder using the custom filter chain.
69
+ lzma_ret ret = lzma_stream_encoder(strm, filters, LZMA_CHECK_CRC64);
70
+
71
+ if (ret == LZMA_OK)
72
+ return true;
73
+
74
+ const char *msg;
75
+ switch (ret) {
76
+ case LZMA_MEM_ERROR:
77
+ msg = "Memory allocation failed";
78
+ break;
79
+
80
+ case LZMA_OPTIONS_ERROR:
81
+ // We are no longer using a plain preset so this error
82
+ // message has been edited accordingly compared to
83
+ // 01_compress_easy.c.
84
+ msg = "Specified filter chain is not supported";
85
+ break;
86
+
87
+ case LZMA_UNSUPPORTED_CHECK:
88
+ msg = "Specified integrity check is not supported";
89
+ break;
90
+
91
+ default:
92
+ msg = "Unknown error, possibly a bug";
93
+ break;
94
+ }
95
+
96
+ fprintf(stderr, "Error initializing the encoder: %s (error code %u)\n",
97
+ msg, ret);
98
+ return false;
99
+ }
100
+
101
+
102
+ // This function is identical to the one in 01_compress_easy.c.
103
+ static bool
104
+ compress(lzma_stream *strm, FILE *infile, FILE *outfile)
105
+ {
106
+ lzma_action action = LZMA_RUN;
107
+
108
+ uint8_t inbuf[BUFSIZ];
109
+ uint8_t outbuf[BUFSIZ];
110
+
111
+ strm->next_in = NULL;
112
+ strm->avail_in = 0;
113
+ strm->next_out = outbuf;
114
+ strm->avail_out = sizeof(outbuf);
115
+
116
+ while (true) {
117
+ if (strm->avail_in == 0 && !feof(infile)) {
118
+ strm->next_in = inbuf;
119
+ strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
120
+ infile);
121
+
122
+ if (ferror(infile)) {
123
+ fprintf(stderr, "Read error: %s\n",
124
+ strerror(errno));
125
+ return false;
126
+ }
127
+
128
+ if (feof(infile))
129
+ action = LZMA_FINISH;
130
+ }
131
+
132
+ lzma_ret ret = lzma_code(strm, action);
133
+
134
+ if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
135
+ size_t write_size = sizeof(outbuf) - strm->avail_out;
136
+
137
+ if (fwrite(outbuf, 1, write_size, outfile)
138
+ != write_size) {
139
+ fprintf(stderr, "Write error: %s\n",
140
+ strerror(errno));
141
+ return false;
142
+ }
143
+
144
+ strm->next_out = outbuf;
145
+ strm->avail_out = sizeof(outbuf);
146
+ }
147
+
148
+ if (ret != LZMA_OK) {
149
+ if (ret == LZMA_STREAM_END)
150
+ return true;
151
+
152
+ const char *msg;
153
+ switch (ret) {
154
+ case LZMA_MEM_ERROR:
155
+ msg = "Memory allocation failed";
156
+ break;
157
+
158
+ case LZMA_DATA_ERROR:
159
+ msg = "File size limits exceeded";
160
+ break;
161
+
162
+ default:
163
+ msg = "Unknown error, possibly a bug";
164
+ break;
165
+ }
166
+
167
+ fprintf(stderr, "Encoder error: %s (error code %u)\n",
168
+ msg, ret);
169
+ return false;
170
+ }
171
+ }
172
+ }
173
+
174
+
175
+ extern int
176
+ main(void)
177
+ {
178
+ lzma_stream strm = LZMA_STREAM_INIT;
179
+
180
+ bool success = init_encoder(&strm);
181
+ if (success)
182
+ success = compress(&strm, stdin, stdout);
183
+
184
+ lzma_end(&strm);
185
+
186
+ if (fclose(stdout)) {
187
+ fprintf(stderr, "Write error: %s\n", strerror(errno));
188
+ success = false;
189
+ }
190
+
191
+ return success ? EXIT_SUCCESS : EXIT_FAILURE;
192
+ }
llava_next/share/doc/xz/examples/04_compress_easy_mt.c ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: 0BSD
2
+
3
+ ///////////////////////////////////////////////////////////////////////////////
4
+ //
5
+ /// \file 04_compress_easy_mt.c
6
+ /// \brief Compress in multi-call mode using LZMA2 in multi-threaded mode
7
+ ///
8
+ /// Usage: ./04_compress_easy_mt < INFILE > OUTFILE
9
+ ///
10
+ /// Example: ./04_compress_easy_mt < foo > foo.xz
11
+ //
12
+ // Author: Lasse Collin
13
+ //
14
+ ///////////////////////////////////////////////////////////////////////////////
15
+
16
+ #include <stdbool.h>
17
+ #include <stdlib.h>
18
+ #include <stdio.h>
19
+ #include <string.h>
20
+ #include <errno.h>
21
+ #include <lzma.h>
22
+
23
+
24
+ static bool
25
+ init_encoder(lzma_stream *strm)
26
+ {
27
+ // The threaded encoder takes the options as pointer to
28
+ // a lzma_mt structure.
29
+ lzma_mt mt = {
30
+ // No flags are needed.
31
+ .flags = 0,
32
+
33
+ // Let liblzma determine a sane block size.
34
+ .block_size = 0,
35
+
36
+ // Use no timeout for lzma_code() calls by setting timeout
37
+ // to zero. That is, sometimes lzma_code() might block for
38
+ // a long time (from several seconds to even minutes).
39
+ // If this is not OK, for example due to progress indicator
40
+ // needing updates, specify a timeout in milliseconds here.
41
+ // See the documentation of lzma_mt in lzma/container.h for
42
+ // information how to choose a reasonable timeout.
43
+ .timeout = 0,
44
+
45
+ // Use the default preset (6) for LZMA2.
46
+ // To use a preset, filters must be set to NULL.
47
+ .preset = LZMA_PRESET_DEFAULT,
48
+ .filters = NULL,
49
+
50
+ // Use CRC64 for integrity checking. See also
51
+ // 01_compress_easy.c about choosing the integrity check.
52
+ .check = LZMA_CHECK_CRC64,
53
+ };
54
+
55
+ // Detect how many threads the CPU supports.
56
+ mt.threads = lzma_cputhreads();
57
+
58
+ // If the number of CPU cores/threads cannot be detected,
59
+ // use one thread. Note that this isn't the same as the normal
60
+ // single-threaded mode as this will still split the data into
61
+ // blocks and use more RAM than the normal single-threaded mode.
62
+ // You may want to consider using lzma_easy_encoder() or
63
+ // lzma_stream_encoder() instead of lzma_stream_encoder_mt() if
64
+ // lzma_cputhreads() returns 0 or 1.
65
+ if (mt.threads == 0)
66
+ mt.threads = 1;
67
+
68
+ // If the number of CPU cores/threads exceeds threads_max,
69
+ // limit the number of threads to keep memory usage lower.
70
+ // The number 8 is arbitrarily chosen and may be too low or
71
+ // high depending on the compression preset and the computer
72
+ // being used.
73
+ //
74
+ // FIXME: A better way could be to check the amount of RAM
75
+ // (or available RAM) and use lzma_stream_encoder_mt_memusage()
76
+ // to determine if the number of threads should be reduced.
77
+ const uint32_t threads_max = 8;
78
+ if (mt.threads > threads_max)
79
+ mt.threads = threads_max;
80
+
81
+ // Initialize the threaded encoder.
82
+ lzma_ret ret = lzma_stream_encoder_mt(strm, &mt);
83
+
84
+ if (ret == LZMA_OK)
85
+ return true;
86
+
87
+ const char *msg;
88
+ switch (ret) {
89
+ case LZMA_MEM_ERROR:
90
+ msg = "Memory allocation failed";
91
+ break;
92
+
93
+ case LZMA_OPTIONS_ERROR:
94
+ // We are no longer using a plain preset so this error
95
+ // message has been edited accordingly compared to
96
+ // 01_compress_easy.c.
97
+ msg = "Specified filter chain is not supported";
98
+ break;
99
+
100
+ case LZMA_UNSUPPORTED_CHECK:
101
+ msg = "Specified integrity check is not supported";
102
+ break;
103
+
104
+ default:
105
+ msg = "Unknown error, possibly a bug";
106
+ break;
107
+ }
108
+
109
+ fprintf(stderr, "Error initializing the encoder: %s (error code %u)\n",
110
+ msg, ret);
111
+ return false;
112
+ }
113
+
114
+
115
+ // This function is identical to the one in 01_compress_easy.c.
116
+ static bool
117
+ compress(lzma_stream *strm, FILE *infile, FILE *outfile)
118
+ {
119
+ lzma_action action = LZMA_RUN;
120
+
121
+ uint8_t inbuf[BUFSIZ];
122
+ uint8_t outbuf[BUFSIZ];
123
+
124
+ strm->next_in = NULL;
125
+ strm->avail_in = 0;
126
+ strm->next_out = outbuf;
127
+ strm->avail_out = sizeof(outbuf);
128
+
129
+ while (true) {
130
+ if (strm->avail_in == 0 && !feof(infile)) {
131
+ strm->next_in = inbuf;
132
+ strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
133
+ infile);
134
+
135
+ if (ferror(infile)) {
136
+ fprintf(stderr, "Read error: %s\n",
137
+ strerror(errno));
138
+ return false;
139
+ }
140
+
141
+ if (feof(infile))
142
+ action = LZMA_FINISH;
143
+ }
144
+
145
+ lzma_ret ret = lzma_code(strm, action);
146
+
147
+ if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
148
+ size_t write_size = sizeof(outbuf) - strm->avail_out;
149
+
150
+ if (fwrite(outbuf, 1, write_size, outfile)
151
+ != write_size) {
152
+ fprintf(stderr, "Write error: %s\n",
153
+ strerror(errno));
154
+ return false;
155
+ }
156
+
157
+ strm->next_out = outbuf;
158
+ strm->avail_out = sizeof(outbuf);
159
+ }
160
+
161
+ if (ret != LZMA_OK) {
162
+ if (ret == LZMA_STREAM_END)
163
+ return true;
164
+
165
+ const char *msg;
166
+ switch (ret) {
167
+ case LZMA_MEM_ERROR:
168
+ msg = "Memory allocation failed";
169
+ break;
170
+
171
+ case LZMA_DATA_ERROR:
172
+ msg = "File size limits exceeded";
173
+ break;
174
+
175
+ default:
176
+ msg = "Unknown error, possibly a bug";
177
+ break;
178
+ }
179
+
180
+ fprintf(stderr, "Encoder error: %s (error code %u)\n",
181
+ msg, ret);
182
+ return false;
183
+ }
184
+ }
185
+ }
186
+
187
+
188
+ extern int
189
+ main(void)
190
+ {
191
+ lzma_stream strm = LZMA_STREAM_INIT;
192
+
193
+ bool success = init_encoder(&strm);
194
+ if (success)
195
+ success = compress(&strm, stdin, stdout);
196
+
197
+ lzma_end(&strm);
198
+
199
+ if (fclose(stdout)) {
200
+ fprintf(stderr, "Write error: %s\n", strerror(errno));
201
+ success = false;
202
+ }
203
+
204
+ return success ? EXIT_SUCCESS : EXIT_FAILURE;
205
+ }
llava_next/share/doc/xz/examples/11_file_info.c ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // SPDX-License-Identifier: 0BSD
2
+
3
+ ///////////////////////////////////////////////////////////////////////////////
4
+ //
5
+ /// \file 11_file_info.c
6
+ /// \brief Get uncompressed size of .xz file(s)
7
+ ///
8
+ /// Usage: ./11_file_info INFILE1.xz [INFILEn.xz]...
9
+ ///
10
+ /// Example: ./11_file_info foo.xz
11
+ //
12
+ // Author: Lasse Collin
13
+ //
14
+ ///////////////////////////////////////////////////////////////////////////////
15
+
16
+ #include <stdbool.h>
17
+ #include <inttypes.h>
18
+ #include <stdlib.h>
19
+ #include <stdio.h>
20
+ #include <string.h>
21
+ #include <errno.h>
22
+ #include <lzma.h>
23
+
24
+
25
+ static bool
26
+ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
27
+ {
28
+ // Get the file size. In standard C it can be done by seeking to
29
+ // the end of the file and then getting the file position.
30
+ // In POSIX one can use fstat() and then st_size from struct stat.
31
+ // Also note that fseek() and ftell() use long and thus don't support
32
+ // large files on 32-bit systems (POSIX versions fseeko() and
33
+ // ftello() can support large files).
34
+ if (fseek(infile, 0, SEEK_END)) {
35
+ fprintf(stderr, "Error seeking the file '%s': %s\n",
36
+ filename, strerror(errno));
37
+ return false;
38
+ }
39
+
40
+ const long file_size = ftell(infile);
41
+
42
+ // The decoder wants to start from the beginning of the .xz file.
43
+ rewind(infile);
44
+
45
+ // Initialize the decoder.
46
+ lzma_index *i;
47
+ lzma_ret ret = lzma_file_info_decoder(strm, &i, UINT64_MAX,
48
+ (uint64_t)file_size);
49
+ switch (ret) {
50
+ case LZMA_OK:
51
+ // Initialization succeeded.
52
+ break;
53
+
54
+ case LZMA_MEM_ERROR:
55
+ fprintf(stderr, "Out of memory when initializing "
56
+ "the .xz file info decoder\n");
57
+ return false;
58
+
59
+ case LZMA_PROG_ERROR:
60
+ default:
61
+ fprintf(stderr, "Unknown error, possibly a bug\n");
62
+ return false;
63
+ }
64
+
65
+ // This example program reuses the same lzma_stream structure
66
+ // for multiple files, so we need to reset this when starting
67
+ // a new file.
68
+ strm->avail_in = 0;
69
+
70
+ // Buffer for input data.
71
+ uint8_t inbuf[BUFSIZ];
72
+
73
+ // Pass data to the decoder and seek when needed.
74
+ while (true) {
75
+ if (strm->avail_in == 0) {
76
+ strm->next_in = inbuf;
77
+ strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
78
+ infile);
79
+
80
+ if (ferror(infile)) {
81
+ fprintf(stderr,
82
+ "Error reading from '%s': %s\n",
83
+ filename, strerror(errno));
84
+ return false;
85
+ }
86
+
87
+ // We don't need to care about hitting the end of
88
+ // the file so no need to check for feof().
89
+ }
90
+
91
+ ret = lzma_code(strm, LZMA_RUN);
92
+
93
+ switch (ret) {
94
+ case LZMA_OK:
95
+ break;
96
+
97
+ case LZMA_SEEK_NEEDED:
98
+ // The cast is safe because liblzma won't ask us to
99
+ // seek past the known size of the input file which
100
+ // did fit into a long.
101
+ //
102
+ // NOTE: Remember to change these to off_t if you
103
+ // switch fseeko() or lseek().
104
+ if (fseek(infile, (long)(strm->seek_pos), SEEK_SET)) {
105
+ fprintf(stderr, "Error seeking the "
106
+ "file '%s': %s\n",
107
+ filename, strerror(errno));
108
+ return false;
109
+ }
110
+
111
+ // The old data in the inbuf is useless now. Set
112
+ // avail_in to zero so that we will read new input
113
+ // from the new file position on the next iteration
114
+ // of this loop.
115
+ strm->avail_in = 0;
116
+ break;
117
+
118
+ case LZMA_STREAM_END:
119
+ // File information was successfully decoded.
120
+ // See <lzma/index.h> for functions that can be
121
+ // used on it. In this example we just print
122
+ // the uncompressed size (in bytes) of
123
+ // the .xz file followed by its file name.
124
+ printf("%10" PRIu64 " %s\n",
125
+ lzma_index_uncompressed_size(i),
126
+ filename);
127
+
128
+ // Free the memory of the lzma_index structure.
129
+ lzma_index_end(i, NULL);
130
+
131
+ return true;
132
+
133
+ case LZMA_FORMAT_ERROR:
134
+ // .xz magic bytes weren't found.
135
+ fprintf(stderr, "The file '%s' is not "
136
+ "in the .xz format\n", filename);
137
+ return false;
138
+
139
+ case LZMA_OPTIONS_ERROR:
140
+ fprintf(stderr, "The file '%s' has .xz headers that "
141
+ "are not supported by this liblzma "
142
+ "version\n", filename);
143
+ return false;
144
+
145
+ case LZMA_DATA_ERROR:
146
+ fprintf(stderr, "The file '%s' is corrupt\n",
147
+ filename);
148
+ return false;
149
+
150
+ case LZMA_MEM_ERROR:
151
+ fprintf(stderr, "Memory allocation failed when "
152
+ "decoding the file '%s'\n", filename);
153
+ return false;
154
+
155
+ // LZMA_MEMLIMIT_ERROR shouldn't happen because we used
156
+ // UINT64_MAX as the limit.
157
+ //
158
+ // LZMA_BUF_ERROR shouldn't happen because we always provide
159
+ // new input when the input buffer is empty. The decoder
160
+ // knows the input file size and thus won't try to read past
161
+ // the end of the file.
162
+ case LZMA_MEMLIMIT_ERROR:
163
+ case LZMA_BUF_ERROR:
164
+ case LZMA_PROG_ERROR:
165
+ default:
166
+ fprintf(stderr, "Unknown error, possibly a bug\n");
167
+ return false;
168
+ }
169
+ }
170
+
171
+ // This line is never reached.
172
+ }
173
+
174
+
175
+ extern int
176
+ main(int argc, char **argv)
177
+ {
178
+ bool success = true;
179
+ lzma_stream strm = LZMA_STREAM_INIT;
180
+
181
+ for (int i = 1; i < argc; ++i) {
182
+ FILE *infile = fopen(argv[i], "rb");
183
+
184
+ if (infile == NULL) {
185
+ fprintf(stderr, "Cannot open the file '%s': %s\n",
186
+ argv[i], strerror(errno));
187
+ success = false;
188
+ }
189
+
190
+ success &= print_file_size(&strm, infile, argv[i]);
191
+
192
+ (void)fclose(infile);
193
+ }
194
+
195
+ lzma_end(&strm);
196
+
197
+ // Close stdout to catch possible write errors that can occur
198
+ // when pending data is flushed from the stdio buffers.
199
+ if (fclose(stdout)) {
200
+ fprintf(stderr, "Write error: %s\n", strerror(errno));
201
+ success = false;
202
+ }
203
+
204
+ return success ? EXIT_SUCCESS : EXIT_FAILURE;
205
+ }
llava_next/share/doc/xz/examples/Makefile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: 0BSD
2
+ # Author: Lasse Collin
3
+
4
+ CC = c99
5
+ CFLAGS = -g
6
+ LDFLAGS = -llzma
7
+
8
+ PROGS = \
9
+ 01_compress_easy \
10
+ 02_decompress \
11
+ 03_compress_custom \
12
+ 04_compress_easy_mt \
13
+ 11_file_info
14
+
15
+ all: $(PROGS)
16
+
17
+ .c:
18
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
19
+
20
+ clean:
21
+ -rm -f $(PROGS)
llava_next/share/doc/xz/faq.txt ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ XZ Utils FAQ
3
+ ============
4
+
5
+ Q: What do the letters XZ mean?
6
+
7
+ A: Nothing. They are just two letters, which come from the file format
8
+ suffix .xz. The .xz suffix was selected, because it seemed to be
9
+ pretty much unused. It has no deeper meaning.
10
+
11
+
12
+ Q: What are LZMA and LZMA2?
13
+
14
+ A: LZMA stands for Lempel-Ziv-Markov chain-Algorithm. It is the name
15
+ of the compression algorithm designed by Igor Pavlov for 7-Zip.
16
+ LZMA is based on LZ77 and range encoding.
17
+
18
+ LZMA2 is an updated version of the original LZMA to fix a couple of
19
+ practical issues. In context of XZ Utils, LZMA is called LZMA1 to
20
+ emphasize that LZMA is not the same thing as LZMA2. LZMA2 is the
21
+ primary compression algorithm in the .xz file format.
22
+
23
+
24
+ Q: There are many LZMA related projects. How does XZ Utils relate to them?
25
+
26
+ A: 7-Zip and LZMA SDK are the original projects. LZMA SDK is roughly
27
+ a subset of the 7-Zip source tree.
28
+
29
+ p7zip is 7-Zip's command-line tools ported to POSIX-like systems.
30
+
31
+ LZMA Utils provide a gzip-like lzma tool for POSIX-like systems.
32
+ LZMA Utils are based on LZMA SDK. XZ Utils are the successor to
33
+ LZMA Utils.
34
+
35
+ There are several other projects using LZMA. Most are more or less
36
+ based on LZMA SDK. See <https://7-zip.org/links.html>.
37
+
38
+
39
+ Q: Why is liblzma named liblzma if its primary file format is .xz?
40
+ Shouldn't it be e.g. libxz?
41
+
42
+ A: When the designing of the .xz format began, the idea was to replace
43
+ the .lzma format and use the same .lzma suffix. It would have been
44
+ quite OK to reuse the suffix when there were very few .lzma files
45
+ around. However, the old .lzma format became popular before the
46
+ new format was finished. The new format was renamed to .xz but the
47
+ name of liblzma wasn't changed.
48
+
49
+
50
+ Q: Do XZ Utils support the .7z format?
51
+
52
+ A: No. Use 7-Zip (Windows) or p7zip (POSIX-like systems) to handle .7z
53
+ files.
54
+
55
+
56
+ Q: I have many .tar.7z files. Can I convert them to .tar.xz without
57
+ spending hours recompressing the data?
58
+
59
+ A: In the "extra" directory, there is a script named 7z2lzma.bash which
60
+ is able to convert some .7z files to the .lzma format (not .xz). It
61
+ needs the 7za (or 7z) command from p7zip. The script may silently
62
+ produce corrupt output if certain assumptions are not met, so
63
+ decompress the resulting .lzma file and compare it against the
64
+ original before deleting the original file!
65
+
66
+
67
+ Q: I have many .lzma files. Can I quickly convert them to the .xz format?
68
+
69
+ A: For now, no. Since XZ Utils supports the .lzma format, it's usually
70
+ not too bad to keep the old files in the old format. If you want to
71
+ do the conversion anyway, you need to decompress the .lzma files and
72
+ then recompress to the .xz format.
73
+
74
+ Technically, there is a way to make the conversion relatively fast
75
+ (roughly twice the time that normal decompression takes). Writing
76
+ such a tool would take quite a bit of time though, and would probably
77
+ be useful to only a few people. If you really want such a conversion
78
+ tool, contact Lasse Collin and offer some money.
79
+
80
+
81
+ Q: I have installed xz, but my tar doesn't recognize .tar.xz files.
82
+ How can I extract .tar.xz files?
83
+
84
+ A: xz -dc foo.tar.xz | tar xf -
85
+
86
+
87
+ Q: Can I recover parts of a broken .xz file (e.g. a corrupted CD-R)?
88
+
89
+ A: It may be possible if the file consists of multiple blocks, which
90
+ typically is not the case if the file was created in single-threaded
91
+ mode. There is no recovery program yet.
92
+
93
+
94
+ Q: Is (some part of) XZ Utils patented?
95
+
96
+ A: Lasse Collin is not aware of any patents that could affect XZ Utils.
97
+ However, due to the nature of software patents, it's not possible to
98
+ guarantee that XZ Utils isn't affected by any third party patent(s).
99
+
100
+
101
+ Q: Where can I find documentation about the file format and algorithms?
102
+
103
+ A: The .xz format is documented in xz-file-format.txt. It is a container
104
+ format only, and doesn't include descriptions of any non-trivial
105
+ filters.
106
+
107
+ Documenting LZMA and LZMA2 is planned, but for now, there is no other
108
+ documentation than the source code. Before you begin, you should know
109
+ the basics of LZ77 and range-coding algorithms. LZMA is based on LZ77,
110
+ but LZMA is a lot more complex. Range coding is used to compress
111
+ the final bitstream like Huffman coding is used in Deflate.
112
+
113
+
114
+ Q: I cannot find BCJ and BCJ2 filters. Don't they exist in liblzma?
115
+
116
+ A: BCJ filter is called "x86" in liblzma. BCJ2 is not included,
117
+ because it requires using more than one encoded output stream.
118
+
119
+
120
+ Q: I need to use a script that runs "xz -9". On a system with 256 MiB
121
+ of RAM, xz says that it cannot allocate memory. Can I make the
122
+ script work without modifying it?
123
+
124
+ A: Set a default memory usage limit for compression. You can do it e.g.
125
+ in a shell initialization script such as ~/.bashrc or /etc/profile:
126
+
127
+ XZ_DEFAULTS=--memlimit-compress=150MiB
128
+ export XZ_DEFAULTS
129
+
130
+ xz will then scale the compression settings down so that the given
131
+ memory usage limit is not reached. This way xz shouldn't run out
132
+ of memory.
133
+
134
+ Check also that memory-related resource limits are high enough.
135
+ On most systems, "ulimit -a" will show the current resource limits.
136
+
137
+
138
+ Q: How do I create files that can be decompressed with XZ Embedded?
139
+
140
+ A: See the documentation in XZ Embedded. In short, something like
141
+ this is a good start:
142
+
143
+ xz --check=crc32 --lzma2=preset=6e,dict=64KiB
144
+
145
+ Or if a BCJ filter is needed too, e.g. if compressing
146
+ a kernel image for PowerPC:
147
+
148
+ xz --check=crc32 --powerpc --lzma2=preset=6e,dict=64KiB
149
+
150
+ Adjust the dictionary size to get a good compromise between
151
+ compression ratio and decompressor memory usage. Note that
152
+ in single-call decompression mode of XZ Embedded, a big
153
+ dictionary doesn't increase memory usage.
154
+
155
+
156
+ Q: How is multi-threaded compression implemented in XZ Utils?
157
+
158
+ A: The simplest method is splitting the uncompressed data into blocks
159
+ and compressing them in parallel independent from each other.
160
+ This is currently the only threading method supported in XZ Utils.
161
+ Since the blocks are compressed independently, they can also be
162
+ decompressed independently. Together with the index feature in .xz,
163
+ this allows using threads to create .xz files for random-access
164
+ reading. This also makes threaded decompression possible.
165
+
166
+ The independent blocks method has a couple of disadvantages too. It
167
+ will compress worse than a single-block method. Often the difference
168
+ is not too big (maybe 1-2 %) but sometimes it can be too big. Also,
169
+ the memory usage of the compressor increases linearly when adding
170
+ threads.
171
+
172
+ At least two other threading methods are possible but these haven't
173
+ been implemented in XZ Utils:
174
+
175
+ Match finder parallelization has been in 7-Zip for ages. It doesn't
176
+ affect compression ratio or memory usage significantly. Among the
177
+ three threading methods, only this is useful when compressing small
178
+ files (files that are not significantly bigger than the dictionary).
179
+ Unfortunately this method scales only to about two CPU cores.
180
+
181
+ The third method is pigz-style threading (I use that name, because
182
+ pigz <https://www.zlib.net/pigz/> uses that method). It doesn't
183
+ affect compression ratio significantly and scales to many cores.
184
+ The memory usage scales linearly when threads are added. This isn't
185
+ significant with pigz, because Deflate uses only a 32 KiB dictionary,
186
+ but with LZMA2 the memory usage will increase dramatically just like
187
+ with the independent-blocks method. There is also a constant
188
+ computational overhead, which may make pigz-method a bit dull on
189
+ dual-core compared to the parallel match finder method, but with more
190
+ cores the overhead is not a big deal anymore.
191
+
192
+ Combining the threading methods will be possible and also useful.
193
+ For example, combining match finder parallelization with pigz-style
194
+ threading or independent-blocks-threading can cut the memory usage
195
+ by 50 %.
196
+
197
+
198
+ Q: I told xz to use many threads but it is using only one or two
199
+ processor cores. What is wrong?
200
+
201
+ A: Since multi-threaded compression is done by splitting the data into
202
+ blocks that are compressed individually, if the input file is too
203
+ small for the block size, then many threads cannot be used. The
204
+ default block size increases when the compression level is
205
+ increased. For example, xz -6 uses 8 MiB LZMA2 dictionary and
206
+ 24 MiB blocks, and xz -9 uses 64 MiB LZMA dictionary and 192 MiB
207
+ blocks. If the input file is 100 MiB, xz -6 can use five threads
208
+ of which one will finish quickly as it has only 4 MiB to compress.
209
+ However, for the same file, xz -9 can only use one thread.
210
+
211
+ One can adjust block size with --block-size=SIZE but making the
212
+ block size smaller than LZMA2 dictionary is waste of RAM: using
213
+ xz -9 with 6 MiB blocks isn't any better than using xz -6 with
214
+ 6 MiB blocks. The default settings use a block size bigger than
215
+ the LZMA2 dictionary size because this was seen as a reasonable
216
+ compromise between RAM usage and compression ratio.
217
+
218
+ When decompressing, the ability to use threads depends on how the
219
+ file was created. If it was created in multi-threaded mode then
220
+ it can be decompressed in multi-threaded mode too if there are
221
+ multiple blocks in the file.
222
+
223
+
224
+ Q: How do I build a program that needs liblzmadec (lzmadec.h)?
225
+
226
+ A: liblzmadec is part of LZMA Utils. XZ Utils has liblzma, but no
227
+ liblzmadec. The code using liblzmadec should be ported to use
228
+ liblzma instead. If you cannot or don't want to do that, download
229
+ LZMA Utils from <https://tukaani.org/lzma/>.
230
+
231
+
232
+ Q: The default build of liblzma is too big. How can I make it smaller?
233
+
234
+ A: Give --enable-small to the configure script. Use also appropriate
235
+ --enable or --disable options to include only those filter encoders
236
+ and decoders and integrity checks that you actually need. Use
237
+ CFLAGS=-Os (with GCC) or equivalent to tell your compiler to optimize
238
+ for size. See INSTALL for information about configure options.
239
+
240
+ If the result is still too big, take a look at XZ Embedded. It is
241
+ a separate project, which provides a limited but significantly
242
+ smaller XZ decoder implementation than XZ Utils. You can find it
243
+ at <https://tukaani.org/xz/embedded.html>.
244
+
llava_next/share/doc/xz/history.txt ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ History of LZMA Utils and XZ Utils
3
+ ==================================
4
+
5
+ Tukaani distribution
6
+
7
+ In 2005, there was a small group working on the Tukaani distribution,
8
+ which was a Slackware fork. One of the project's goals was to fit the
9
+ distro on a single 700 MiB ISO-9660 image. Using LZMA instead of gzip
10
+ helped a lot. Roughly speaking, one could fit data that took 1000 MiB
11
+ in gzipped form into 700 MiB with LZMA. Naturally, the compression
12
+ ratio varied across packages, but this was what we got on average.
13
+
14
+ Slackware packages have traditionally had .tgz as the filename suffix,
15
+ which is an abbreviation of .tar.gz. A logical naming for LZMA
16
+ compressed packages was .tlz, being an abbreviation of .tar.lzma.
17
+
18
+ At the end of the year 2007, there was no distribution under the
19
+ Tukaani project anymore, but development of LZMA Utils was kept going.
20
+ Still, there were .tlz packages around, because at least Vector Linux
21
+ (a Slackware based distribution) used LZMA for its packages.
22
+
23
+ First versions of the modified pkgtools used the LZMA_Alone tool from
24
+ Igor Pavlov's LZMA SDK as is. It was fine, because users wouldn't need
25
+ to interact with LZMA_Alone directly. But people soon wanted to use
26
+ LZMA for other files too, and the interface of LZMA_Alone wasn't
27
+ comfortable for those used to gzip and bzip2.
28
+
29
+
30
+ First steps of LZMA Utils
31
+
32
+ The first version of LZMA Utils (4.22.0) included a shell script called
33
+ lzmash. It was a wrapper that had a gzip-like command-line interface. It
34
+ used the LZMA_Alone tool from LZMA SDK to do all the real work. zgrep,
35
+ zdiff, and related scripts from gzip were adapted to work with LZMA and
36
+ were part of the first LZMA Utils release too.
37
+
38
+ LZMA Utils 4.22.0 included also lzmadec, which was a small (less than
39
+ 10 KiB) decoder-only command-line tool. It was written on top of the
40
+ decoder-only C code found from the LZMA SDK. lzmadec was convenient in
41
+ situations where LZMA_Alone (a few hundred KiB) would be too big.
42
+
43
+ lzmash and lzmadec were written by Lasse Collin.
44
+
45
+
46
+ Second generation
47
+
48
+ The lzmash script was an ugly and not very secure hack. The last
49
+ version of LZMA Utils to use lzmash was 4.27.1.
50
+
51
+ LZMA Utils 4.32.0beta1 introduced a new lzma command-line tool written
52
+ by Ville Koskinen. It was written in C++, and used the encoder and
53
+ decoder from C++ LZMA SDK with some little modifications. This tool
54
+ replaced both the lzmash script and the LZMA_Alone command-line tool
55
+ in LZMA Utils.
56
+
57
+ Introducing this new tool caused some temporary incompatibilities,
58
+ because the LZMA_Alone executable was simply named lzma like the new
59
+ command-line tool, but they had a completely different command-line
60
+ interface. The file format was still the same.
61
+
62
+ Lasse wrote liblzmadec, which was a small decoder-only library based
63
+ on the C code found from LZMA SDK. liblzmadec had an API similar to
64
+ zlib, although there were some significant differences, which made it
65
+ non-trivial to use it in some applications designed for zlib and
66
+ libbzip2.
67
+
68
+ The lzmadec command-line tool was converted to use liblzmadec.
69
+
70
+ Alexandre Sauvé helped converting the build system to use GNU
71
+ Autotools. This made it easier to test for certain less portable
72
+ features needed by the new command-line tool.
73
+
74
+ Since the new command-line tool never got completely finished (for
75
+ example, it didn't support the LZMA_OPT environment variable), the
76
+ intent was to not call 4.32.x stable. Similarly, liblzmadec wasn't
77
+ polished, but appeared to work well enough, so some people started
78
+ using it too.
79
+
80
+ Because the development of the third generation of LZMA Utils was
81
+ delayed considerably (3-4 years), the 4.32.x branch had to be kept
82
+ maintained. It got some bug fixes now and then, and finally it was
83
+ decided to call it stable, although most of the missing features were
84
+ never added.
85
+
86
+
87
+ File format problems
88
+
89
+ The file format used by LZMA_Alone was primitive. It was designed with
90
+ embedded systems in mind, and thus provided only a minimal set of
91
+ features. The two biggest problems for non-embedded use were the lack
92
+ of magic bytes and an integrity check.
93
+
94
+ Igor and Lasse started developing a new file format with some help
95
+ from Ville Koskinen. Also Mark Adler, Mikko Pouru, H. Peter Anvin,
96
+ and Lars Wirzenius helped with some minor things at some point of the
97
+ development. Designing the new format took quite a long time (actually,
98
+ too long a time would be a more appropriate expression). It was mostly
99
+ because Lasse was quite slow at getting things done due to personal
100
+ reasons.
101
+
102
+ Originally the new format was supposed to use the same .lzma suffix
103
+ that was already used by the old file format. Switching to the new
104
+ format wouldn't have caused much trouble when the old format wasn't
105
+ used by many people. But since the development of the new format took
106
+ such a long time, the old format got quite popular, and it was decided
107
+ that the new file format must use a different suffix.
108
+
109
+ It was decided to use .xz as the suffix of the new file format. The
110
+ first stable .xz file format specification was finally released in
111
+ December 2008. In addition to fixing the most obvious problems of
112
+ the old .lzma format, the .xz format added some new features like
113
+ support for multiple filters (compression algorithms), filter chaining
114
+ (like piping on the command line), and limited random-access reading.
115
+
116
+ Currently the primary compression algorithm used in .xz is LZMA2.
117
+ It is an extension on top of the original LZMA to fix some practical
118
+ problems: LZMA2 adds support for flushing the encoder, uncompressed
119
+ chunks, eases stateful decoder implementations, and improves support
120
+ for multithreading. Since LZMA2 is better than the original LZMA, the
121
+ original LZMA is not supported in .xz.
122
+
123
+
124
+ Transition to XZ Utils
125
+
126
+ The early versions of XZ Utils were called LZMA Utils. The first
127
+ releases were 4.42.0alphas. They dropped the rest of the C++ LZMA SDK.
128
+ The code was still directly based on LZMA SDK but ported to C and
129
+ converted from a callback API to a stateful API. Later, Igor Pavlov
130
+ made a C version of the LZMA encoder too; these ports from C++ to C
131
+ were independent in LZMA SDK and LZMA Utils.
132
+
133
+ The core of the new LZMA Utils was liblzma, a compression library with
134
+ a zlib-like API. liblzma supported both the old and new file format.
135
+ The gzip-like lzma command-line tool was rewritten to use liblzma.
136
+
137
+ The new LZMA Utils code base was renamed to XZ Utils when the name
138
+ of the new file format had been decided. The liblzma compression
139
+ library retained its name though, because changing it would have
140
+ caused unnecessary breakage in applications already using the early
141
+ liblzma snapshots.
142
+
143
+ The xz command-line tool can emulate the gzip-like lzma tool by
144
+ creating appropriate symlinks (e.g. lzma -> xz). Thus, practically
145
+ all scripts using the lzma tool from LZMA Utils will work as is with
146
+ XZ Utils (and will keep using the old .lzma format). Still, the .lzma
147
+ format is more or less deprecated. XZ Utils will keep supporting it,
148
+ but new applications should use the .xz format, and migrating old
149
+ applications to .xz is often a good idea too.
150
+
llava_next/share/doc/xz/lzma-file-format.txt ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ The .lzma File Format
3
+ =====================
4
+
5
+ 0. Preface
6
+ 0.1. Notices and Acknowledgements
7
+ 0.2. Changes
8
+ 1. File Format
9
+ 1.1. Header
10
+ 1.1.1. Properties
11
+ 1.1.2. Dictionary Size
12
+ 1.1.3. Uncompressed Size
13
+ 1.2. LZMA Compressed Data
14
+ 2. References
15
+
16
+
17
+ 0. Preface
18
+
19
+ This document describes the .lzma file format, which is
20
+ sometimes also called LZMA_Alone format. It is a legacy file
21
+ format, which is being or has been replaced by the .xz format.
22
+ The MIME type of the .lzma format is `application/x-lzma'.
23
+
24
+ The most commonly used software to handle .lzma files are
25
+ LZMA SDK, LZMA Utils, 7-Zip, and XZ Utils. This document
26
+ describes some of the differences between these implementations
27
+ and gives hints what subset of the .lzma format is the most
28
+ portable.
29
+
30
+
31
+ 0.1. Notices and Acknowledgements
32
+
33
+ This file format was designed by Igor Pavlov for use in
34
+ LZMA SDK. This document was written by Lasse Collin
35
+ <lasse.collin@tukaani.org> using the documentation found
36
+ from the LZMA SDK.
37
+
38
+ This document has been put into the public domain.
39
+
40
+
41
+ 0.2. Changes
42
+
43
+ Last modified: 2024-04-08 17:35+0300
44
+
45
+ From version 2011-04-12 11:55+0300 to 2022-07-13 21:00+0300:
46
+ The section 1.1.3 was modified to allow End of Payload Marker
47
+ with a known Uncompressed Size.
48
+
49
+
50
+ 1. File Format
51
+
52
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+==========================+
53
+ | Header | LZMA Compressed Data |
54
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+==========================+
55
+
56
+ The .lzma format file consist of 13-byte Header followed by
57
+ the LZMA Compressed Data.
58
+
59
+ Unlike the .gz, .bz2, and .xz formats, it is not possible to
60
+ concatenate multiple .lzma files as is and expect the
61
+ decompression tool to decode the resulting file as if it were
62
+ a single .lzma file.
63
+
64
+ For example, the command line tools from LZMA Utils and
65
+ LZMA SDK silently ignore all the data after the first .lzma
66
+ stream. In contrast, the command line tool from XZ Utils
67
+ considers the .lzma file to be corrupt if there is data after
68
+ the first .lzma stream.
69
+
70
+
71
+ 1.1. Header
72
+
73
+ +------------+----+----+----+----+--+--+--+--+--+--+--+--+
74
+ | Properties | Dictionary Size | Uncompressed Size |
75
+ +------------+----+----+----+----+--+--+--+--+--+--+--+--+
76
+
77
+
78
+ 1.1.1. Properties
79
+
80
+ The Properties field contains three properties. An abbreviation
81
+ is given in parentheses, followed by the value range of the
82
+ property. The field consists of
83
+
84
+ 1) the number of literal context bits (lc, [0, 8]);
85
+ 2) the number of literal position bits (lp, [0, 4]); and
86
+ 3) the number of position bits (pb, [0, 4]).
87
+
88
+ The properties are encoded using the following formula:
89
+
90
+ Properties = (pb * 5 + lp) * 9 + lc
91
+
92
+ The following C code illustrates a straightforward way to
93
+ decode the Properties field:
94
+
95
+ uint8_t lc, lp, pb;
96
+ uint8_t prop = get_lzma_properties();
97
+ if (prop > (4 * 5 + 4) * 9 + 8)
98
+ return LZMA_PROPERTIES_ERROR;
99
+
100
+ pb = prop / (9 * 5);
101
+ prop -= pb * 9 * 5;
102
+ lp = prop / 9;
103
+ lc = prop - lp * 9;
104
+
105
+ XZ Utils has an additional requirement: lc + lp <= 4. Files
106
+ which don't follow this requirement cannot be decompressed
107
+ with XZ Utils. Usually this isn't a problem since the most
108
+ common lc/lp/pb values are 3/0/2. It is the only lc/lp/pb
109
+ combination that the files created by LZMA Utils can have,
110
+ but LZMA Utils can decompress files with any lc/lp/pb.
111
+
112
+
113
+ 1.1.2. Dictionary Size
114
+
115
+ Dictionary Size is stored as an unsigned 32-bit little endian
116
+ integer. Any 32-bit value is possible, but for maximum
117
+ portability, only sizes of 2^n and 2^n + 2^(n-1) should be
118
+ used.
119
+
120
+ LZMA Utils creates only files with dictionary size 2^n,
121
+ 16 <= n <= 25. LZMA Utils can decompress files with any
122
+ dictionary size.
123
+
124
+ XZ Utils creates and decompresses .lzma files only with
125
+ dictionary sizes 2^n and 2^n + 2^(n-1). If some other
126
+ dictionary size is specified when compressing, the value
127
+ stored in the Dictionary Size field is a rounded up, but the
128
+ specified value is still used in the actual compression code.
129
+
130
+
131
+ 1.1.3. Uncompressed Size
132
+
133
+ Uncompressed Size is stored as unsigned 64-bit little endian
134
+ integer. A special value of 0xFFFF_FFFF_FFFF_FFFF indicates
135
+ that Uncompressed Size is unknown. End of Payload Marker (*)
136
+ is used if Uncompressed Size is unknown. End of Payload Marker
137
+ is allowed but rarely used if Uncompressed Size is known.
138
+ XZ Utils 5.2.5 and older don't support .lzma files that have
139
+ End of Payload Marker together with a known Uncompressed Size.
140
+
141
+ XZ Utils rejects files whose Uncompressed Size field specifies
142
+ a known size that is 256 GiB or more. This is to reject false
143
+ positives when trying to guess if the input file is in the
144
+ .lzma format. When Uncompressed Size is unknown, there is no
145
+ limit for the uncompressed size of the file.
146
+
147
+ (*) Some tools use the term End of Stream (EOS) marker
148
+ instead of End of Payload Marker.
149
+
150
+
151
+ 1.2. LZMA Compressed Data
152
+
153
+ Detailed description of the format of this field is out of
154
+ scope of this document.
155
+
156
+
157
+ 2. References
158
+
159
+ LZMA SDK - The original LZMA implementation
160
+ https://7-zip.org/sdk.html
161
+
162
+ 7-Zip
163
+ https://7-zip.org/
164
+
165
+ LZMA Utils - LZMA adapted to POSIX-like systems
166
+ https://tukaani.org/lzma/
167
+
168
+ XZ Utils - The next generation of LZMA Utils
169
+ https://tukaani.org/xz/
170
+
171
+ The .xz file format - The successor of the .lzma format
172
+ https://tukaani.org/xz/xz-file-format.txt
173
+
llava_next/share/doc/xz/xz-file-format.txt ADDED
@@ -0,0 +1,1174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ The .xz File Format
3
+ ===================
4
+
5
+ Version 1.2.1 (2024-04-08)
6
+
7
+
8
+ 0. Preface
9
+ 0.1. Notices and Acknowledgements
10
+ 0.2. Getting the Latest Version
11
+ 0.3. Version History
12
+ 1. Conventions
13
+ 1.1. Byte and Its Representation
14
+ 1.2. Multibyte Integers
15
+ 2. Overall Structure of .xz File
16
+ 2.1. Stream
17
+ 2.1.1. Stream Header
18
+ 2.1.1.1. Header Magic Bytes
19
+ 2.1.1.2. Stream Flags
20
+ 2.1.1.3. CRC32
21
+ 2.1.2. Stream Footer
22
+ 2.1.2.1. CRC32
23
+ 2.1.2.2. Backward Size
24
+ 2.1.2.3. Stream Flags
25
+ 2.1.2.4. Footer Magic Bytes
26
+ 2.2. Stream Padding
27
+ 3. Block
28
+ 3.1. Block Header
29
+ 3.1.1. Block Header Size
30
+ 3.1.2. Block Flags
31
+ 3.1.3. Compressed Size
32
+ 3.1.4. Uncompressed Size
33
+ 3.1.5. List of Filter Flags
34
+ 3.1.6. Header Padding
35
+ 3.1.7. CRC32
36
+ 3.2. Compressed Data
37
+ 3.3. Block Padding
38
+ 3.4. Check
39
+ 4. Index
40
+ 4.1. Index Indicator
41
+ 4.2. Number of Records
42
+ 4.3. List of Records
43
+ 4.3.1. Unpadded Size
44
+ 4.3.2. Uncompressed Size
45
+ 4.4. Index Padding
46
+ 4.5. CRC32
47
+ 5. Filter Chains
48
+ 5.1. Alignment
49
+ 5.2. Security
50
+ 5.3. Filters
51
+ 5.3.1. LZMA2
52
+ 5.3.2. Branch/Call/Jump Filters for Executables
53
+ 5.3.3. Delta
54
+ 5.3.3.1. Format of the Encoded Output
55
+ 5.4. Custom Filter IDs
56
+ 5.4.1. Reserved Custom Filter ID Ranges
57
+ 6. Cyclic Redundancy Checks
58
+ 7. References
59
+
60
+
61
+ 0. Preface
62
+
63
+ This document describes the .xz file format (filename suffix
64
+ ".xz", MIME type "application/x-xz"). It is intended that this
65
+ this format replace the old .lzma format used by LZMA SDK and
66
+ LZMA Utils.
67
+
68
+
69
+ 0.1. Notices and Acknowledgements
70
+
71
+ This file format was designed by Lasse Collin
72
+ <lasse.collin@tukaani.org> and Igor Pavlov.
73
+
74
+ Special thanks for helping with this document goes to
75
+ Ville Koskinen. Thanks for helping with this document goes to
76
+ Mark Adler, H. Peter Anvin, Mikko Pouru, and Lars Wirzenius.
77
+
78
+ This document has been put into the public domain.
79
+
80
+
81
+ 0.2. Getting the Latest Version
82
+
83
+ The latest official version of this document can be downloaded
84
+ from <https://tukaani.org/xz/xz-file-format.txt>.
85
+
86
+ Specific versions of this document have a filename
87
+ xz-file-format-X.Y.Z.txt where X.Y.Z is the version number.
88
+ For example, the version 1.0.0 of this document is available
89
+ at <https://tukaani.org/xz/xz-file-format-1.0.0.txt>.
90
+
91
+
92
+ 0.3. Version History
93
+
94
+ Version Date Description
95
+
96
+ 1.2.1 2024-04-08 The URLs of this specification and
97
+ XZ Utils were changed back to the
98
+ original ones in Sections 0.2 and 7.
99
+
100
+ 1.2.0 2024-01-19 Added RISC-V filter and updated URLs in
101
+ Sections 0.2 and 7. The URL of this
102
+ specification was changed.
103
+
104
+ 1.1.0 2022-12-11 Added ARM64 filter and clarified 32-bit
105
+ ARM endianness in Section 5.3.2,
106
+ language improvements in Section 5.4
107
+
108
+ 1.0.4 2009-08-27 Language improvements in Sections 1.2,
109
+ 2.1.1.2, 3.1.1, 3.1.2, and 5.3.1
110
+
111
+ 1.0.3 2009-06-05 Spelling fixes in Sections 5.1 and 5.4
112
+
113
+ 1.0.2 2009-06-04 Typo fixes in Sections 4 and 5.3.1
114
+
115
+ 1.0.1 2009-06-01 Typo fix in Section 0.3 and minor
116
+ clarifications to Sections 2, 2.2,
117
+ 3.3, 4.4, and 5.3.2
118
+
119
+ 1.0.0 2009-01-14 The first official version
120
+
121
+
122
+ 1. Conventions
123
+
124
+ The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD",
125
+ "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
126
+ document are to be interpreted as described in [RFC-2119].
127
+
128
+ Indicating a warning means displaying a message, returning
129
+ appropriate exit status, or doing something else to let the
130
+ user know that something worth warning occurred. The operation
131
+ SHOULD still finish if a warning is indicated.
132
+
133
+ Indicating an error means displaying a message, returning
134
+ appropriate exit status, or doing something else to let the
135
+ user know that something prevented successfully finishing the
136
+ operation. The operation MUST be aborted once an error has
137
+ been indicated.
138
+
139
+
140
+ 1.1. Byte and Its Representation
141
+
142
+ In this document, byte is always 8 bits.
143
+
144
+ A "null byte" has all bits unset. That is, the value of a null
145
+ byte is 0x00.
146
+
147
+ To represent byte blocks, this document uses notation that
148
+ is similar to the notation used in [RFC-1952]:
149
+
150
+ +-------+
151
+ | Foo | One byte.
152
+ +-------+
153
+
154
+ +---+---+
155
+ | Foo | Two bytes; that is, some of the vertical bars
156
+ +---+---+ can be missing.
157
+
158
+ +=======+
159
+ | Foo | Zero or more bytes.
160
+ +=======+
161
+
162
+ In this document, a boxed byte or a byte sequence declared
163
+ using this notation is called "a field". The example field
164
+ above would be called "the Foo field" or plain "Foo".
165
+
166
+ If there are many fields, they may be split to multiple lines.
167
+ This is indicated with an arrow ("--->"):
168
+
169
+ +=====+
170
+ | Foo |
171
+ +=====+
172
+
173
+ +=====+
174
+ ---> | Bar |
175
+ +=====+
176
+
177
+ The above is equivalent to this:
178
+
179
+ +=====+=====+
180
+ | Foo | Bar |
181
+ +=====+=====+
182
+
183
+
184
+ 1.2. Multibyte Integers
185
+
186
+ Multibyte integers of static length, such as CRC values,
187
+ are stored in little endian byte order (least significant
188
+ byte first).
189
+
190
+ When smaller values are more likely than bigger values (for
191
+ example file sizes), multibyte integers are encoded in a
192
+ variable-length representation:
193
+ - Numbers in the range [0, 127] are copied as is, and take
194
+ one byte of space.
195
+ - Bigger numbers will occupy two or more bytes. All but the
196
+ last byte of the multibyte representation have the highest
197
+ (eighth) bit set.
198
+
199
+ For now, the value of the variable-length integers is limited
200
+ to 63 bits, which limits the encoded size of the integer to
201
+ nine bytes. These limits may be increased in the future if
202
+ needed.
203
+
204
+ The following C code illustrates encoding and decoding of
205
+ variable-length integers. The functions return the number of
206
+ bytes occupied by the integer (1-9), or zero on error.
207
+
208
+ #include <stddef.h>
209
+ #include <inttypes.h>
210
+
211
+ size_t
212
+ encode(uint8_t buf[static 9], uint64_t num)
213
+ {
214
+ if (num > UINT64_MAX / 2)
215
+ return 0;
216
+
217
+ size_t i = 0;
218
+
219
+ while (num >= 0x80) {
220
+ buf[i++] = (uint8_t)(num) | 0x80;
221
+ num >>= 7;
222
+ }
223
+
224
+ buf[i++] = (uint8_t)(num);
225
+
226
+ return i;
227
+ }
228
+
229
+ size_t
230
+ decode(const uint8_t buf[], size_t size_max, uint64_t *num)
231
+ {
232
+ if (size_max == 0)
233
+ return 0;
234
+
235
+ if (size_max > 9)
236
+ size_max = 9;
237
+
238
+ *num = buf[0] & 0x7F;
239
+ size_t i = 0;
240
+
241
+ while (buf[i++] & 0x80) {
242
+ if (i >= size_max || buf[i] == 0x00)
243
+ return 0;
244
+
245
+ *num |= (uint64_t)(buf[i] & 0x7F) << (i * 7);
246
+ }
247
+
248
+ return i;
249
+ }
250
+
251
+
252
+ 2. Overall Structure of .xz File
253
+
254
+ A standalone .xz files consist of one or more Streams which may
255
+ have Stream Padding between or after them:
256
+
257
+ +========+================+========+================+
258
+ | Stream | Stream Padding | Stream | Stream Padding | ...
259
+ +========+================+========+================+
260
+
261
+ The sizes of Stream and Stream Padding are always multiples
262
+ of four bytes, thus the size of every valid .xz file MUST be
263
+ a multiple of four bytes.
264
+
265
+ While a typical file contains only one Stream and no Stream
266
+ Padding, a decoder handling standalone .xz files SHOULD support
267
+ files that have more than one Stream or Stream Padding.
268
+
269
+ In contrast to standalone .xz files, when the .xz file format
270
+ is used as an internal part of some other file format or
271
+ communication protocol, it usually is expected that the decoder
272
+ stops after the first Stream, and doesn't look for Stream
273
+ Padding or possibly other Streams.
274
+
275
+
276
+ 2.1. Stream
277
+
278
+ +-+-+-+-+-+-+-+-+-+-+-+-+=======+=======+ +=======+
279
+ | Stream Header | Block | Block | ... | Block |
280
+ +-+-+-+-+-+-+-+-+-+-+-+-+=======+=======+ +=======+
281
+
282
+ +=======+-+-+-+-+-+-+-+-+-+-+-+-+
283
+ ---> | Index | Stream Footer |
284
+ +=======+-+-+-+-+-+-+-+-+-+-+-+-+
285
+
286
+ All the above fields have a size that is a multiple of four. If
287
+ Stream is used as an internal part of another file format, it
288
+ is RECOMMENDED to make the Stream start at an offset that is
289
+ a multiple of four bytes.
290
+
291
+ Stream Header, Index, and Stream Footer are always present in
292
+ a Stream. The maximum size of the Index field is 16 GiB (2^34).
293
+
294
+ There are zero or more Blocks. The maximum number of Blocks is
295
+ limited only by the maximum size of the Index field.
296
+
297
+ Total size of a Stream MUST be less than 8 EiB (2^63 bytes).
298
+ The same limit applies to the total amount of uncompressed
299
+ data stored in a Stream.
300
+
301
+ If an implementation supports handling .xz files with multiple
302
+ concatenated Streams, it MAY apply the above limits to the file
303
+ as a whole instead of limiting per Stream basis.
304
+
305
+
306
+ 2.1.1. Stream Header
307
+
308
+ +---+---+---+---+---+---+-------+------+--+--+--+--+
309
+ | Header Magic Bytes | Stream Flags | CRC32 |
310
+ +---+---+---+---+---+---+-------+------+--+--+--+--+
311
+
312
+
313
+ 2.1.1.1. Header Magic Bytes
314
+
315
+ The first six (6) bytes of the Stream are so called Header
316
+ Magic Bytes. They can be used to identify the file type.
317
+
318
+ Using a C array and ASCII:
319
+ const uint8_t HEADER_MAGIC[6]
320
+ = { 0xFD, '7', 'z', 'X', 'Z', 0x00 };
321
+
322
+ In plain hexadecimal:
323
+ FD 37 7A 58 5A 00
324
+
325
+ Notes:
326
+ - The first byte (0xFD) was chosen so that the files cannot
327
+ be erroneously detected as being in .lzma format, in which
328
+ the first byte is in the range [0x00, 0xE0].
329
+ - The sixth byte (0x00) was chosen to prevent applications
330
+ from misdetecting the file as a text file.
331
+
332
+ If the Header Magic Bytes don't match, the decoder MUST
333
+ indicate an error.
334
+
335
+
336
+ 2.1.1.2. Stream Flags
337
+
338
+ The first byte of Stream Flags is always a null byte. In the
339
+ future, this byte may be used to indicate a new Stream version
340
+ or other Stream properties.
341
+
342
+ The second byte of Stream Flags is a bit field:
343
+
344
+ Bit(s) Mask Description
345
+ 0-3 0x0F Type of Check (see Section 3.4):
346
+ ID Size Check name
347
+ 0x00 0 bytes None
348
+ 0x01 4 bytes CRC32
349
+ 0x02 4 bytes (Reserved)
350
+ 0x03 4 bytes (Reserved)
351
+ 0x04 8 bytes CRC64
352
+ 0x05 8 bytes (Reserved)
353
+ 0x06 8 bytes (Reserved)
354
+ 0x07 16 bytes (Reserved)
355
+ 0x08 16 bytes (Reserved)
356
+ 0x09 16 bytes (Reserved)
357
+ 0x0A 32 bytes SHA-256
358
+ 0x0B 32 bytes (Reserved)
359
+ 0x0C 32 bytes (Reserved)
360
+ 0x0D 64 bytes (Reserved)
361
+ 0x0E 64 bytes (Reserved)
362
+ 0x0F 64 bytes (Reserved)
363
+ 4-7 0xF0 Reserved for future use; MUST be zero for now.
364
+
365
+ Implementations SHOULD support at least the Check IDs 0x00
366
+ (None) and 0x01 (CRC32). Supporting other Check IDs is
367
+ OPTIONAL. If an unsupported Check is used, the decoder SHOULD
368
+ indicate a warning or error.
369
+
370
+ If any reserved bit is set, the decoder MUST indicate an error.
371
+ It is possible that there is a new field present which the
372
+ decoder is not aware of, and can thus parse the Stream Header
373
+ incorrectly.
374
+
375
+
376
+ 2.1.1.3. CRC32
377
+
378
+ The CRC32 is calculated from the Stream Flags field. It is
379
+ stored as an unsigned 32-bit little endian integer. If the
380
+ calculated value does not match the stored one, the decoder
381
+ MUST indicate an error.
382
+
383
+ The idea is that Stream Flags would always be two bytes, even
384
+ if new features are needed. This way old decoders will be able
385
+ to verify the CRC32 calculated from Stream Flags, and thus
386
+ distinguish between corrupt files (CRC32 doesn't match) and
387
+ files that the decoder doesn't support (CRC32 matches but
388
+ Stream Flags has reserved bits set).
389
+
390
+
391
+ 2.1.2. Stream Footer
392
+
393
+ +-+-+-+-+---+---+---+---+-------+------+----------+---------+
394
+ | CRC32 | Backward Size | Stream Flags | Footer Magic Bytes |
395
+ +-+-+-+-+---+---+---+---+-------+------+----------+---------+
396
+
397
+
398
+ 2.1.2.1. CRC32
399
+
400
+ The CRC32 is calculated from the Backward Size and Stream Flags
401
+ fields. It is stored as an unsigned 32-bit little endian
402
+ integer. If the calculated value does not match the stored one,
403
+ the decoder MUST indicate an error.
404
+
405
+ The reason to have the CRC32 field before the Backward Size and
406
+ Stream Flags fields is to keep the four-byte fields aligned to
407
+ a multiple of four bytes.
408
+
409
+
410
+ 2.1.2.2. Backward Size
411
+
412
+ Backward Size is stored as a 32-bit little endian integer,
413
+ which indicates the size of the Index field as multiple of
414
+ four bytes, minimum value being four bytes:
415
+
416
+ real_backward_size = (stored_backward_size + 1) * 4;
417
+
418
+ If the stored value does not match the real size of the Index
419
+ field, the decoder MUST indicate an error.
420
+
421
+ Using a fixed-size integer to store Backward Size makes
422
+ it slightly simpler to parse the Stream Footer when the
423
+ application needs to parse the Stream backwards.
424
+
425
+
426
+ 2.1.2.3. Stream Flags
427
+
428
+ This is a copy of the Stream Flags field from the Stream
429
+ Header. The information stored to Stream Flags is needed
430
+ when parsing the Stream backwards. The decoder MUST compare
431
+ the Stream Flags fields in both Stream Header and Stream
432
+ Footer, and indicate an error if they are not identical.
433
+
434
+
435
+ 2.1.2.4. Footer Magic Bytes
436
+
437
+ As the last step of the decoding process, the decoder MUST
438
+ verify the existence of Footer Magic Bytes. If they don't
439
+ match, an error MUST be indicated.
440
+
441
+ Using a C array and ASCII:
442
+ const uint8_t FOOTER_MAGIC[2] = { 'Y', 'Z' };
443
+
444
+ In hexadecimal:
445
+ 59 5A
446
+
447
+ The primary reason to have Footer Magic Bytes is to make
448
+ it easier to detect incomplete files quickly, without
449
+ uncompressing. If the file does not end with Footer Magic Bytes
450
+ (excluding Stream Padding described in Section 2.2), it cannot
451
+ be undamaged, unless someone has intentionally appended garbage
452
+ after the end of the Stream.
453
+
454
+
455
+ 2.2. Stream Padding
456
+
457
+ Only the decoders that support decoding of concatenated Streams
458
+ MUST support Stream Padding.
459
+
460
+ Stream Padding MUST contain only null bytes. To preserve the
461
+ four-byte alignment of consecutive Streams, the size of Stream
462
+ Padding MUST be a multiple of four bytes. Empty Stream Padding
463
+ is allowed. If these requirements are not met, the decoder MUST
464
+ indicate an error.
465
+
466
+ Note that non-empty Stream Padding is allowed at the end of the
467
+ file; there doesn't need to be a new Stream after non-empty
468
+ Stream Padding. This can be convenient in certain situations
469
+ [GNU-tar].
470
+
471
+ The possibility of Stream Padding MUST be taken into account
472
+ when designing an application that parses Streams backwards,
473
+ and the application supports concatenated Streams.
474
+
475
+
476
+ 3. Block
477
+
478
+ +==============+=================+===============+=======+
479
+ | Block Header | Compressed Data | Block Padding | Check |
480
+ +==============+=================+===============+=======+
481
+
482
+
483
+ 3.1. Block Header
484
+
485
+ +-------------------+-------------+=================+
486
+ | Block Header Size | Block Flags | Compressed Size |
487
+ +-------------------+-------------+=================+
488
+
489
+ +===================+======================+
490
+ ---> | Uncompressed Size | List of Filter Flags |
491
+ +===================+======================+
492
+
493
+ +================+--+--+--+--+
494
+ ---> | Header Padding | CRC32 |
495
+ +================+--+--+--+--+
496
+
497
+
498
+ 3.1.1. Block Header Size
499
+
500
+ This field overlaps with the Index Indicator field (see
501
+ Section 4.1).
502
+
503
+ This field contains the size of the Block Header field,
504
+ including the Block Header Size field itself. Valid values are
505
+ in the range [0x01, 0xFF], which indicate the size of the Block
506
+ Header as multiples of four bytes, minimum size being eight
507
+ bytes:
508
+
509
+ real_header_size = (encoded_header_size + 1) * 4;
510
+
511
+ If a Block Header bigger than 1024 bytes is needed in the
512
+ future, a new field can be added between the Block Header and
513
+ Compressed Data fields. The presence of this new field would
514
+ be indicated in the Block Header field.
515
+
516
+
517
+ 3.1.2. Block Flags
518
+
519
+ The Block Flags field is a bit field:
520
+
521
+ Bit(s) Mask Description
522
+ 0-1 0x03 Number of filters (1-4)
523
+ 2-5 0x3C Reserved for future use; MUST be zero for now.
524
+ 6 0x40 The Compressed Size field is present.
525
+ 7 0x80 The Uncompressed Size field is present.
526
+
527
+ If any reserved bit is set, the decoder MUST indicate an error.
528
+ It is possible that there is a new field present which the
529
+ decoder is not aware of, and can thus parse the Block Header
530
+ incorrectly.
531
+
532
+
533
+ 3.1.3. Compressed Size
534
+
535
+ This field is present only if the appropriate bit is set in
536
+ the Block Flags field (see Section 3.1.2).
537
+
538
+ The Compressed Size field contains the size of the Compressed
539
+ Data field, which MUST be non-zero. Compressed Size is stored
540
+ using the encoding described in Section 1.2. If the Compressed
541
+ Size doesn't match the size of the Compressed Data field, the
542
+ decoder MUST indicate an error.
543
+
544
+
545
+ 3.1.4. Uncompressed Size
546
+
547
+ This field is present only if the appropriate bit is set in
548
+ the Block Flags field (see Section 3.1.2).
549
+
550
+ The Uncompressed Size field contains the size of the Block
551
+ after uncompressing. Uncompressed Size is stored using the
552
+ encoding described in Section 1.2. If the Uncompressed Size
553
+ does not match the real uncompressed size, the decoder MUST
554
+ indicate an error.
555
+
556
+ Storing the Compressed Size and Uncompressed Size fields serves
557
+ several purposes:
558
+ - The decoder knows how much memory it needs to allocate
559
+ for a temporary buffer in multithreaded mode.
560
+ - Simple error detection: wrong size indicates a broken file.
561
+ - Seeking forwards to a specific location in streamed mode.
562
+
563
+ It should be noted that the only reliable way to determine
564
+ the real uncompressed size is to uncompress the Block,
565
+ because the Block Header and Index fields may contain
566
+ (intentionally or unintentionally) invalid information.
567
+
568
+
569
+ 3.1.5. List of Filter Flags
570
+
571
+ +================+================+ +================+
572
+ | Filter 0 Flags | Filter 1 Flags | ... | Filter n Flags |
573
+ +================+================+ +================+
574
+
575
+ The number of Filter Flags fields is stored in the Block Flags
576
+ field (see Section 3.1.2).
577
+
578
+ The format of each Filter Flags field is as follows:
579
+
580
+ +===========+====================+===================+
581
+ | Filter ID | Size of Properties | Filter Properties |
582
+ +===========+====================+===================+
583
+
584
+ Both Filter ID and Size of Properties are stored using the
585
+ encoding described in Section 1.2. Size of Properties indicates
586
+ the size of the Filter Properties field as bytes. The list of
587
+ officially defined Filter IDs and the formats of their Filter
588
+ Properties are described in Section 5.3.
589
+
590
+ Filter IDs greater than or equal to 0x4000_0000_0000_0000
591
+ (2^62) are reserved for implementation-specific internal use.
592
+ These Filter IDs MUST never be used in List of Filter Flags.
593
+
594
+
595
+ 3.1.6. Header Padding
596
+
597
+ This field contains as many null byte as it is needed to make
598
+ the Block Header have the size specified in Block Header Size.
599
+ If any of the bytes are not null bytes, the decoder MUST
600
+ indicate an error. It is possible that there is a new field
601
+ present which the decoder is not aware of, and can thus parse
602
+ the Block Header incorrectly.
603
+
604
+
605
+ 3.1.7. CRC32
606
+
607
+ The CRC32 is calculated over everything in the Block Header
608
+ field except the CRC32 field itself. It is stored as an
609
+ unsigned 32-bit little endian integer. If the calculated
610
+ value does not match the stored one, the decoder MUST indicate
611
+ an error.
612
+
613
+ By verifying the CRC32 of the Block Header before parsing the
614
+ actual contents allows the decoder to distinguish between
615
+ corrupt and unsupported files.
616
+
617
+
618
+ 3.2. Compressed Data
619
+
620
+ The format of Compressed Data depends on Block Flags and List
621
+ of Filter Flags. Excluding the descriptions of the simplest
622
+ filters in Section 5.3, the format of the filter-specific
623
+ encoded data is out of scope of this document.
624
+
625
+
626
+ 3.3. Block Padding
627
+
628
+ Block Padding MUST contain 0-3 null bytes to make the size of
629
+ the Block a multiple of four bytes. This can be needed when
630
+ the size of Compressed Data is not a multiple of four. If any
631
+ of the bytes in Block Padding are not null bytes, the decoder
632
+ MUST indicate an error.
633
+
634
+
635
+ 3.4. Check
636
+
637
+ The type and size of the Check field depends on which bits
638
+ are set in the Stream Flags field (see Section 2.1.1.2).
639
+
640
+ The Check, when used, is calculated from the original
641
+ uncompressed data. If the calculated Check does not match the
642
+ stored one, the decoder MUST indicate an error. If the selected
643
+ type of Check is not supported by the decoder, it SHOULD
644
+ indicate a warning or error.
645
+
646
+
647
+ 4. Index
648
+
649
+ +-----------------+===================+
650
+ | Index Indicator | Number of Records |
651
+ +-----------------+===================+
652
+
653
+ +=================+===============+-+-+-+-+
654
+ ---> | List of Records | Index Padding | CRC32 |
655
+ +=================+===============+-+-+-+-+
656
+
657
+ Index serves several purposes. Using it, one can
658
+ - verify that all Blocks in a Stream have been processed;
659
+ - find out the uncompressed size of a Stream; and
660
+ - quickly access the beginning of any Block (random access).
661
+
662
+
663
+ 4.1. Index Indicator
664
+
665
+ This field overlaps with the Block Header Size field (see
666
+ Section 3.1.1). The value of Index Indicator is always 0x00.
667
+
668
+
669
+ 4.2. Number of Records
670
+
671
+ This field indicates how many Records there are in the List
672
+ of Records field, and thus how many Blocks there are in the
673
+ Stream. The value is stored using the encoding described in
674
+ Section 1.2. If the decoder has decoded all the Blocks of the
675
+ Stream, and then notices that the Number of Records doesn't
676
+ match the real number of Blocks, the decoder MUST indicate an
677
+ error.
678
+
679
+
680
+ 4.3. List of Records
681
+
682
+ List of Records consists of as many Records as indicated by the
683
+ Number of Records field:
684
+
685
+ +========+========+
686
+ | Record | Record | ...
687
+ +========+========+
688
+
689
+ Each Record contains information about one Block:
690
+
691
+ +===============+===================+
692
+ | Unpadded Size | Uncompressed Size |
693
+ +===============+===================+
694
+
695
+ If the decoder has decoded all the Blocks of the Stream, it
696
+ MUST verify that the contents of the Records match the real
697
+ Unpadded Size and Uncompressed Size of the respective Blocks.
698
+
699
+ Implementation hint: It is possible to verify the Index with
700
+ constant memory usage by calculating for example SHA-256 of
701
+ both the real size values and the List of Records, then
702
+ comparing the hash values. Implementing this using
703
+ non-cryptographic hash like CRC32 SHOULD be avoided unless
704
+ small code size is important.
705
+
706
+ If the decoder supports random-access reading, it MUST verify
707
+ that Unpadded Size and Uncompressed Size of every completely
708
+ decoded Block match the sizes stored in the Index. If only
709
+ partial Block is decoded, the decoder MUST verify that the
710
+ processed sizes don't exceed the sizes stored in the Index.
711
+
712
+
713
+ 4.3.1. Unpadded Size
714
+
715
+ This field indicates the size of the Block excluding the Block
716
+ Padding field. That is, Unpadded Size is the size of the Block
717
+ Header, Compressed Data, and Check fields. Unpadded Size is
718
+ stored using the encoding described in Section 1.2. The value
719
+ MUST never be zero; with the current structure of Blocks, the
720
+ actual minimum value for Unpadded Size is five.
721
+
722
+ Implementation note: Because the size of the Block Padding
723
+ field is not included in Unpadded Size, calculating the total
724
+ size of a Stream or doing random-access reading requires
725
+ calculating the actual size of the Blocks by rounding Unpadded
726
+ Sizes up to the next multiple of four.
727
+
728
+ The reason to exclude Block Padding from Unpadded Size is to
729
+ ease making a raw copy of Compressed Data without Block
730
+ Padding. This can be useful, for example, if someone wants
731
+ to convert Streams to some other file format quickly.
732
+
733
+
734
+ 4.3.2. Uncompressed Size
735
+
736
+ This field indicates the Uncompressed Size of the respective
737
+ Block as bytes. The value is stored using the encoding
738
+ described in Section 1.2.
739
+
740
+
741
+ 4.4. Index Padding
742
+
743
+ This field MUST contain 0-3 null bytes to pad the Index to
744
+ a multiple of four bytes. If any of the bytes are not null
745
+ bytes, the decoder MUST indicate an error.
746
+
747
+
748
+ 4.5. CRC32
749
+
750
+ The CRC32 is calculated over everything in the Index field
751
+ except the CRC32 field itself. The CRC32 is stored as an
752
+ unsigned 32-bit little endian integer. If the calculated
753
+ value does not match the stored one, the decoder MUST indicate
754
+ an error.
755
+
756
+
757
+ 5. Filter Chains
758
+
759
+ The Block Flags field defines how many filters are used. When
760
+ more than one filter is used, the filters are chained; that is,
761
+ the output of one filter is the input of another filter. The
762
+ following figure illustrates the direction of data flow.
763
+
764
+ v Uncompressed Data ^
765
+ | Filter 0 |
766
+ Encoder | Filter 1 | Decoder
767
+ | Filter n |
768
+ v Compressed Data ^
769
+
770
+
771
+ 5.1. Alignment
772
+
773
+ Alignment of uncompressed input data is usually the job of
774
+ the application producing the data. For example, to get the
775
+ best results, an archiver tool should make sure that all
776
+ PowerPC executable files in the archive stream start at
777
+ offsets that are multiples of four bytes.
778
+
779
+ Some filters, for example LZMA2, can be configured to take
780
+ advantage of specified alignment of input data. Note that
781
+ taking advantage of aligned input can be beneficial also when
782
+ a filter is not the first filter in the chain. For example,
783
+ if you compress PowerPC executables, you may want to use the
784
+ PowerPC filter and chain that with the LZMA2 filter. Because
785
+ not only the input but also the output alignment of the PowerPC
786
+ filter is four bytes, it is now beneficial to set LZMA2
787
+ settings so that the LZMA2 encoder can take advantage of its
788
+ four-byte-aligned input data.
789
+
790
+ The output of the last filter in the chain is stored to the
791
+ Compressed Data field, which is is guaranteed to be aligned
792
+ to a multiple of four bytes relative to the beginning of the
793
+ Stream. This can increase
794
+ - speed, if the filtered data is handled multiple bytes at
795
+ a time by the filter-specific encoder and decoder,
796
+ because accessing aligned data in computer memory is
797
+ usually faster; and
798
+ - compression ratio, if the output data is later compressed
799
+ with an external compression tool.
800
+
801
+
802
+ 5.2. Security
803
+
804
+ If filters would be allowed to be chained freely, it would be
805
+ possible to create malicious files, that would be very slow to
806
+ decode. Such files could be used to create denial of service
807
+ attacks.
808
+
809
+ Slow files could occur when multiple filters are chained:
810
+
811
+ v Compressed input data
812
+ | Filter 1 decoder (last filter)
813
+ | Filter 0 decoder (non-last filter)
814
+ v Uncompressed output data
815
+
816
+ The decoder of the last filter in the chain produces a lot of
817
+ output from little input. Another filter in the chain takes the
818
+ output of the last filter, and produces very little output
819
+ while consuming a lot of input. As a result, a lot of data is
820
+ moved inside the filter chain, but the filter chain as a whole
821
+ gets very little work done.
822
+
823
+ To prevent this kind of slow files, there are restrictions on
824
+ how the filters can be chained. These restrictions MUST be
825
+ taken into account when designing new filters.
826
+
827
+ The maximum number of filters in the chain has been limited to
828
+ four, thus there can be at maximum of three non-last filters.
829
+ Of these three non-last filters, only two are allowed to change
830
+ the size of the data.
831
+
832
+ The non-last filters, that change the size of the data, MUST
833
+ have a limit how much the decoder can compress the data: the
834
+ decoder SHOULD produce at least n bytes of output when the
835
+ filter is given 2n bytes of input. This limit is not
836
+ absolute, but significant deviations MUST be avoided.
837
+
838
+ The above limitations guarantee that if the last filter in the
839
+ chain produces 4n bytes of output, the chain as a whole will
840
+ produce at least n bytes of output.
841
+
842
+
843
+ 5.3. Filters
844
+
845
+ 5.3.1. LZMA2
846
+
847
+ LZMA (Lempel-Ziv-Markov chain-Algorithm) is a general-purpose
848
+ compression algorithm with high compression ratio and fast
849
+ decompression. LZMA is based on LZ77 and range coding
850
+ algorithms.
851
+
852
+ LZMA2 is an extension on top of the original LZMA. LZMA2 uses
853
+ LZMA internally, but adds support for flushing the encoder,
854
+ uncompressed chunks, eases stateful decoder implementations,
855
+ and improves support for multithreading. Thus, the plain LZMA
856
+ will not be supported in this file format.
857
+
858
+ Filter ID: 0x21
859
+ Size of Filter Properties: 1 byte
860
+ Changes size of data: Yes
861
+ Allow as a non-last filter: No
862
+ Allow as the last filter: Yes
863
+
864
+ Preferred alignment:
865
+ Input data: Adjustable to 1/2/4/8/16 byte(s)
866
+ Output data: 1 byte
867
+
868
+ The format of the one-byte Filter Properties field is as
869
+ follows:
870
+
871
+ Bits Mask Description
872
+ 0-5 0x3F Dictionary Size
873
+ 6-7 0xC0 Reserved for future use; MUST be zero for now.
874
+
875
+ Dictionary Size is encoded with one-bit mantissa and five-bit
876
+ exponent. The smallest dictionary size is 4 KiB and the biggest
877
+ is 4 GiB.
878
+
879
+ Raw value Mantissa Exponent Dictionary size
880
+ 0 2 11 4 KiB
881
+ 1 3 11 6 KiB
882
+ 2 2 12 8 KiB
883
+ 3 3 12 12 KiB
884
+ 4 2 13 16 KiB
885
+ 5 3 13 24 KiB
886
+ 6 2 14 32 KiB
887
+ ... ... ... ...
888
+ 35 3 27 768 MiB
889
+ 36 2 28 1024 MiB
890
+ 37 3 29 1536 MiB
891
+ 38 2 30 2048 MiB
892
+ 39 3 30 3072 MiB
893
+ 40 2 31 4096 MiB - 1 B
894
+
895
+ Instead of having a table in the decoder, the dictionary size
896
+ can be decoded using the following C code:
897
+
898
+ const uint8_t bits = get_dictionary_flags() & 0x3F;
899
+ if (bits > 40)
900
+ return DICTIONARY_TOO_BIG; // Bigger than 4 GiB
901
+
902
+ uint32_t dictionary_size;
903
+ if (bits == 40) {
904
+ dictionary_size = UINT32_MAX;
905
+ } else {
906
+ dictionary_size = 2 | (bits & 1);
907
+ dictionary_size <<= bits / 2 + 11;
908
+ }
909
+
910
+
911
+ 5.3.2. Branch/Call/Jump Filters for Executables
912
+
913
+ These filters convert relative branch, call, and jump
914
+ instructions to their absolute counterparts in executable
915
+ files. This conversion increases redundancy and thus
916
+ compression ratio.
917
+
918
+ Size of Filter Properties: 0 or 4 bytes
919
+ Changes size of data: No
920
+ Allow as a non-last filter: Yes
921
+ Allow as the last filter: No
922
+
923
+ Below is the list of filters in this category. The alignment
924
+ is the same for both input and output data.
925
+
926
+ Filter ID Alignment Description
927
+ 0x04 1 byte x86 filter (BCJ)
928
+ 0x05 4 bytes PowerPC (big endian) filter
929
+ 0x06 16 bytes IA64 filter
930
+ 0x07 4 bytes ARM filter [1]
931
+ 0x08 2 bytes ARM Thumb filter [1]
932
+ 0x09 4 bytes SPARC filter
933
+ 0x0A 4 bytes ARM64 filter [2]
934
+ 0x0B 2 bytes RISC-V filter
935
+
936
+ [1] These are for little endian instruction encoding.
937
+ This must not be confused with data endianness.
938
+ A processor configured for big endian data access
939
+ may still use little endian instruction encoding.
940
+ The filters don't care about the data endianness.
941
+
942
+ [2] 4096-byte alignment gives the best results
943
+ because the address in the ADRP instruction
944
+ is a multiple of 4096 bytes.
945
+
946
+ If the size of Filter Properties is four bytes, the Filter
947
+ Properties field contains the start offset used for address
948
+ conversions. It is stored as an unsigned 32-bit little endian
949
+ integer. The start offset MUST be a multiple of the alignment
950
+ of the filter as listed in the table above; if it isn't, the
951
+ decoder MUST indicate an error. If the size of Filter
952
+ Properties is zero, the start offset is zero.
953
+
954
+ Setting the start offset may be useful if an executable has
955
+ multiple sections, and there are many cross-section calls.
956
+ Taking advantage of this feature usually requires usage of
957
+ the Subblock filter, whose design is not complete yet.
958
+
959
+
960
+ 5.3.3. Delta
961
+
962
+ The Delta filter may increase compression ratio when the value
963
+ of the next byte correlates with the value of an earlier byte
964
+ at specified distance.
965
+
966
+ Filter ID: 0x03
967
+ Size of Filter Properties: 1 byte
968
+ Changes size of data: No
969
+ Allow as a non-last filter: Yes
970
+ Allow as the last filter: No
971
+
972
+ Preferred alignment:
973
+ Input data: 1 byte
974
+ Output data: Same as the original input data
975
+
976
+ The Properties byte indicates the delta distance, which can be
977
+ 1-256 bytes backwards from the current byte: 0x00 indicates
978
+ distance of 1 byte and 0xFF distance of 256 bytes.
979
+
980
+
981
+ 5.3.3.1. Format of the Encoded Output
982
+
983
+ The code below illustrates both encoding and decoding with
984
+ the Delta filter.
985
+
986
+ // Distance is in the range [1, 256].
987
+ const unsigned int distance = get_properties_byte() + 1;
988
+ uint8_t pos = 0;
989
+ uint8_t delta[256];
990
+
991
+ memset(delta, 0, sizeof(delta));
992
+
993
+ while (1) {
994
+ const int byte = read_byte();
995
+ if (byte == EOF)
996
+ break;
997
+
998
+ uint8_t tmp = delta[(uint8_t)(distance + pos)];
999
+ if (is_encoder) {
1000
+ tmp = (uint8_t)(byte) - tmp;
1001
+ delta[pos] = (uint8_t)(byte);
1002
+ } else {
1003
+ tmp = (uint8_t)(byte) + tmp;
1004
+ delta[pos] = tmp;
1005
+ }
1006
+
1007
+ write_byte(tmp);
1008
+ --pos;
1009
+ }
1010
+
1011
+
1012
+ 5.4. Custom Filter IDs
1013
+
1014
+ If a developer wants to use custom Filter IDs, there are two
1015
+ choices. The first choice is to contact Lasse Collin and ask
1016
+ him to allocate a range of IDs for the developer.
1017
+
1018
+ The second choice is to generate a 40-bit random integer
1019
+ which the developer can use as a personal Developer ID.
1020
+ To minimize the risk of collisions, Developer ID has to be
1021
+ a randomly generated integer, not manually selected "hex word".
1022
+ The following command, which works on many free operating
1023
+ systems, can be used to generate Developer ID:
1024
+
1025
+ dd if=/dev/urandom bs=5 count=1 | hexdump
1026
+
1027
+ The developer can then use the Developer ID to create unique
1028
+ (well, hopefully unique) Filter IDs.
1029
+
1030
+ Bits Mask Description
1031
+ 0-15 0x0000_0000_0000_FFFF Filter ID
1032
+ 16-55 0x00FF_FFFF_FFFF_0000 Developer ID
1033
+ 56-62 0x3F00_0000_0000_0000 Static prefix: 0x3F
1034
+
1035
+ The resulting 63-bit integer will use 9 bytes of space when
1036
+ stored using the encoding described in Section 1.2. To get
1037
+ a shorter ID, see the beginning of this Section how to
1038
+ request a custom ID range.
1039
+
1040
+
1041
+ 5.4.1. Reserved Custom Filter ID Ranges
1042
+
1043
+ Range Description
1044
+ 0x0000_0300 - 0x0000_04FF Reserved to ease .7z compatibility
1045
+ 0x0002_0000 - 0x0007_FFFF Reserved to ease .7z compatibility
1046
+ 0x0200_0000 - 0x07FF_FFFF Reserved to ease .7z compatibility
1047
+
1048
+
1049
+ 6. Cyclic Redundancy Checks
1050
+
1051
+ There are several incompatible variations to calculate CRC32
1052
+ and CRC64. For simplicity and clarity, complete examples are
1053
+ provided to calculate the checks as they are used in this file
1054
+ format. Implementations MAY use different code as long as it
1055
+ gives identical results.
1056
+
1057
+ The program below reads data from standard input, calculates
1058
+ the CRC32 and CRC64 values, and prints the calculated values
1059
+ as big endian hexadecimal strings to standard output.
1060
+
1061
+ #include <stddef.h>
1062
+ #include <inttypes.h>
1063
+ #include <stdio.h>
1064
+
1065
+ uint32_t crc32_table[256];
1066
+ uint64_t crc64_table[256];
1067
+
1068
+ void
1069
+ init(void)
1070
+ {
1071
+ static const uint32_t poly32 = UINT32_C(0xEDB88320);
1072
+ static const uint64_t poly64
1073
+ = UINT64_C(0xC96C5795D7870F42);
1074
+
1075
+ for (size_t i = 0; i < 256; ++i) {
1076
+ uint32_t crc32 = i;
1077
+ uint64_t crc64 = i;
1078
+
1079
+ for (size_t j = 0; j < 8; ++j) {
1080
+ if (crc32 & 1)
1081
+ crc32 = (crc32 >> 1) ^ poly32;
1082
+ else
1083
+ crc32 >>= 1;
1084
+
1085
+ if (crc64 & 1)
1086
+ crc64 = (crc64 >> 1) ^ poly64;
1087
+ else
1088
+ crc64 >>= 1;
1089
+ }
1090
+
1091
+ crc32_table[i] = crc32;
1092
+ crc64_table[i] = crc64;
1093
+ }
1094
+ }
1095
+
1096
+ uint32_t
1097
+ crc32(const uint8_t *buf, size_t size, uint32_t crc)
1098
+ {
1099
+ crc = ~crc;
1100
+ for (size_t i = 0; i < size; ++i)
1101
+ crc = crc32_table[buf[i] ^ (crc & 0xFF)]
1102
+ ^ (crc >> 8);
1103
+ return ~crc;
1104
+ }
1105
+
1106
+ uint64_t
1107
+ crc64(const uint8_t *buf, size_t size, uint64_t crc)
1108
+ {
1109
+ crc = ~crc;
1110
+ for (size_t i = 0; i < size; ++i)
1111
+ crc = crc64_table[buf[i] ^ (crc & 0xFF)]
1112
+ ^ (crc >> 8);
1113
+ return ~crc;
1114
+ }
1115
+
1116
+ int
1117
+ main()
1118
+ {
1119
+ init();
1120
+
1121
+ uint32_t value32 = 0;
1122
+ uint64_t value64 = 0;
1123
+ uint64_t total_size = 0;
1124
+ uint8_t buf[8192];
1125
+
1126
+ while (1) {
1127
+ const size_t buf_size
1128
+ = fread(buf, 1, sizeof(buf), stdin);
1129
+ if (buf_size == 0)
1130
+ break;
1131
+
1132
+ total_size += buf_size;
1133
+ value32 = crc32(buf, buf_size, value32);
1134
+ value64 = crc64(buf, buf_size, value64);
1135
+ }
1136
+
1137
+ printf("Bytes: %" PRIu64 "\n", total_size);
1138
+ printf("CRC-32: 0x%08" PRIX32 "\n", value32);
1139
+ printf("CRC-64: 0x%016" PRIX64 "\n", value64);
1140
+
1141
+ return 0;
1142
+ }
1143
+
1144
+
1145
+ 7. References
1146
+
1147
+ LZMA SDK - The original LZMA implementation
1148
+ https://7-zip.org/sdk.html
1149
+
1150
+ LZMA Utils - LZMA adapted to POSIX-like systems
1151
+ https://tukaani.org/lzma/
1152
+
1153
+ XZ Utils - The next generation of LZMA Utils
1154
+ https://tukaani.org/xz/
1155
+
1156
+ [RFC-1952]
1157
+ GZIP file format specification version 4.3
1158
+ https://www.ietf.org/rfc/rfc1952.txt
1159
+ - Notation of byte boxes in section "2.1. Overall conventions"
1160
+
1161
+ [RFC-2119]
1162
+ Key words for use in RFCs to Indicate Requirement Levels
1163
+ https://www.ietf.org/rfc/rfc2119.txt
1164
+
1165
+ [GNU-tar]
1166
+ GNU tar 1.35 manual
1167
+ https://www.gnu.org/software/tar/manual/html_node/Blocking-Factor.html
1168
+ - Node 9.4.2 "Blocking Factor", paragraph that begins
1169
+ "gzip will complain about trailing garbage"
1170
+ - Note that this URL points to the latest version of the
1171
+ manual, and may some day not contain the note which is in
1172
+ 1.35. For the exact version of the manual, download GNU
1173
+ tar 1.35: ftp://ftp.gnu.org/pub/gnu/tar/tar-1.35.tar.gz
1174
+
llava_next/share/info/libffi.info ADDED
@@ -0,0 +1,1060 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is libffi.info, produced by makeinfo version 6.8 from libffi.texi.
2
+
3
+ This manual is for libffi, a portable foreign function interface
4
+ library.
5
+
6
+ Copyright (C) 2008-2019, 2021, 2022 Anthony Green and Red Hat, Inc.
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining
9
+ a copy of this software and associated documentation files (the
10
+ "Software"), to deal in the Software without restriction, including
11
+ without limitation the rights to use, copy, modify, merge, publish,
12
+ distribute, sublicense, and/or sell copies of the Software, and to
13
+ permit persons to whom the Software is furnished to do so, subject to
14
+ the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be
17
+ included in all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
+
27
+ INFO-DIR-SECTION Development
28
+ START-INFO-DIR-ENTRY
29
+ * libffi: (libffi). Portable foreign function interface library.
30
+ END-INFO-DIR-ENTRY
31
+
32
+ 
33
+ File: libffi.info, Node: Top, Next: Introduction, Up: (dir)
34
+
35
+ libffi
36
+ ******
37
+
38
+ This manual is for libffi, a portable foreign function interface
39
+ library.
40
+
41
+ Copyright (C) 2008-2019, 2021, 2022 Anthony Green and Red Hat, Inc.
42
+
43
+ Permission is hereby granted, free of charge, to any person obtaining
44
+ a copy of this software and associated documentation files (the
45
+ "Software"), to deal in the Software without restriction, including
46
+ without limitation the rights to use, copy, modify, merge, publish,
47
+ distribute, sublicense, and/or sell copies of the Software, and to
48
+ permit persons to whom the Software is furnished to do so, subject to
49
+ the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be
52
+ included in all copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
55
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
57
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
58
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
59
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
60
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
61
+
62
+ * Menu:
63
+
64
+ * Introduction:: What is libffi?
65
+ * Using libffi:: How to use libffi.
66
+ * Memory Usage:: Where memory for closures comes from.
67
+ * Missing Features:: Things libffi can't do.
68
+ * Index:: Index.
69
+
70
+ 
71
+ File: libffi.info, Node: Introduction, Next: Using libffi, Prev: Top, Up: Top
72
+
73
+ 1 What is libffi?
74
+ *****************
75
+
76
+ Compilers for high level languages generate code that follow certain
77
+ conventions. These conventions are necessary, in part, for separate
78
+ compilation to work. One such convention is the "calling convention".
79
+ The calling convention is a set of assumptions made by the compiler
80
+ about where function arguments will be found on entry to a function. A
81
+ calling convention also specifies where the return value for a function
82
+ is found. The calling convention is also sometimes called the "ABI" or
83
+ "Application Binary Interface".
84
+
85
+ Some programs may not know at the time of compilation what arguments
86
+ are to be passed to a function. For instance, an interpreter may be
87
+ told at run-time about the number and types of arguments used to call a
88
+ given function. 'libffi' can be used in such programs to provide a
89
+ bridge from the interpreter program to compiled code.
90
+
91
+ The 'libffi' library provides a portable, high level programming
92
+ interface to various calling conventions. This allows a programmer to
93
+ call any function specified by a call interface description at run time.
94
+
95
+ FFI stands for Foreign Function Interface. A foreign function
96
+ interface is the popular name for the interface that allows code written
97
+ in one language to call code written in another language. The 'libffi'
98
+ library really only provides the lowest, machine dependent layer of a
99
+ fully featured foreign function interface. A layer must exist above
100
+ 'libffi' that handles type conversions for values passed between the two
101
+ languages.
102
+
103
+ 
104
+ File: libffi.info, Node: Using libffi, Next: Memory Usage, Prev: Introduction, Up: Top
105
+
106
+ 2 Using libffi
107
+ **************
108
+
109
+ * Menu:
110
+
111
+ * The Basics:: The basic libffi API.
112
+ * Simple Example:: A simple example.
113
+ * Types:: libffi type descriptions.
114
+ * Multiple ABIs:: Different passing styles on one platform.
115
+ * The Closure API:: Writing a generic function.
116
+ * Closure Example:: A closure example.
117
+ * Thread Safety:: Thread safety.
118
+
119
+ 
120
+ File: libffi.info, Node: The Basics, Next: Simple Example, Up: Using libffi
121
+
122
+ 2.1 The Basics
123
+ ==============
124
+
125
+ 'libffi' assumes that you have a pointer to the function you wish to
126
+ call and that you know the number and types of arguments to pass it, as
127
+ well as the return type of the function.
128
+
129
+ The first thing you must do is create an 'ffi_cif' object that
130
+ matches the signature of the function you wish to call. This is a
131
+ separate step because it is common to make multiple calls using a single
132
+ 'ffi_cif'. The "cif" in 'ffi_cif' stands for Call InterFace. To
133
+ prepare a call interface object, use the function 'ffi_prep_cif'.
134
+
135
+ -- Function: ffi_status ffi_prep_cif (ffi_cif *CIF, ffi_abi ABI,
136
+ unsigned int NARGS, ffi_type *RTYPE, ffi_type **ARGTYPES)
137
+ This initializes CIF according to the given parameters.
138
+
139
+ ABI is the ABI to use; normally 'FFI_DEFAULT_ABI' is what you want.
140
+ *note Multiple ABIs:: for more information.
141
+
142
+ NARGS is the number of arguments that this function accepts.
143
+
144
+ RTYPE is a pointer to an 'ffi_type' structure that describes the
145
+ return type of the function. *Note Types::.
146
+
147
+ ARGTYPES is a vector of 'ffi_type' pointers. ARGTYPES must have
148
+ NARGS elements. If NARGS is 0, this argument is ignored.
149
+
150
+ 'ffi_prep_cif' returns a 'libffi' status code, of type
151
+ 'ffi_status'. This will be either 'FFI_OK' if everything worked
152
+ properly; 'FFI_BAD_TYPEDEF' if one of the 'ffi_type' objects is
153
+ incorrect; or 'FFI_BAD_ABI' if the ABI parameter is invalid.
154
+
155
+ If the function being called is variadic (varargs) then
156
+ 'ffi_prep_cif_var' must be used instead of 'ffi_prep_cif'.
157
+
158
+ -- Function: ffi_status ffi_prep_cif_var (ffi_cif *CIF, ffi_abi ABI,
159
+ unsigned int NFIXEDARGS, unsigned int NTOTALARGS, ffi_type
160
+ *RTYPE, ffi_type **ARGTYPES)
161
+ This initializes CIF according to the given parameters for a call
162
+ to a variadic function. In general its operation is the same as
163
+ for 'ffi_prep_cif' except that:
164
+
165
+ NFIXEDARGS is the number of fixed arguments, prior to any variadic
166
+ arguments. It must be greater than zero.
167
+
168
+ NTOTALARGS the total number of arguments, including variadic and
169
+ fixed arguments. ARGTYPES must have this many elements.
170
+
171
+ 'ffi_prep_cif_var' will return 'FFI_BAD_ARGTYPE' if any of the
172
+ variable argument types are 'ffi_type_float' (promote to
173
+ 'ffi_type_double' first), or any integer type small than an int
174
+ (promote to an int-sized type first).
175
+
176
+ Note that, different cif's must be prepped for calls to the same
177
+ function when different numbers of arguments are passed.
178
+
179
+ Also note that a call to 'ffi_prep_cif_var' with
180
+ NFIXEDARGS=NOTOTALARGS is NOT equivalent to a call to
181
+ 'ffi_prep_cif'.
182
+
183
+ Note that the resulting 'ffi_cif' holds pointers to all the
184
+ 'ffi_type' objects that were used during initialization. You must
185
+ ensure that these type objects have a lifetime at least as long as that
186
+ of the 'ffi_cif'.
187
+
188
+ To call a function using an initialized 'ffi_cif', use the 'ffi_call'
189
+ function:
190
+
191
+ -- Function: void ffi_call (ffi_cif *CIF, void *FN, void *RVALUE, void
192
+ **AVALUES)
193
+ This calls the function FN according to the description given in
194
+ CIF. CIF must have already been prepared using 'ffi_prep_cif'.
195
+
196
+ RVALUE is a pointer to a chunk of memory that will hold the result
197
+ of the function call. This must be large enough to hold the
198
+ result, no smaller than the system register size (generally 32 or
199
+ 64 bits), and must be suitably aligned; it is the caller's
200
+ responsibility to ensure this. If CIF declares that the function
201
+ returns 'void' (using 'ffi_type_void'), then RVALUE is ignored.
202
+
203
+ In most situations, 'libffi' will handle promotion according to the
204
+ ABI. However, for historical reasons, there is a special case with
205
+ return values that must be handled by your code. In particular,
206
+ for integral (not 'struct') types that are narrower than the system
207
+ register size, the return value will be widened by 'libffi'.
208
+ 'libffi' provides a type, 'ffi_arg', that can be used as the return
209
+ type. For example, if the CIF was defined with a return type of
210
+ 'char', 'libffi' will try to store a full 'ffi_arg' into the return
211
+ value.
212
+
213
+ AVALUES is a vector of 'void *' pointers that point to the memory
214
+ locations holding the argument values for a call. If CIF declares
215
+ that the function has no arguments (i.e., NARGS was 0), then
216
+ AVALUES is ignored.
217
+
218
+ Note that while the return value must be register-sized, arguments
219
+ should exactly match their declared type. For example, if an
220
+ argument is a 'short', then the entry in AVALUES should point to an
221
+ object declared as 'short'; but if the return type is 'short', then
222
+ RVALUE should point to an object declared as a larger type -
223
+ usually 'ffi_arg'.
224
+
225
+ 
226
+ File: libffi.info, Node: Simple Example, Next: Types, Prev: The Basics, Up: Using libffi
227
+
228
+ 2.2 Simple Example
229
+ ==================
230
+
231
+ Here is a trivial example that calls 'puts' a few times.
232
+
233
+ #include <stdio.h>
234
+ #include <ffi.h>
235
+
236
+ int main()
237
+ {
238
+ ffi_cif cif;
239
+ ffi_type *args[1];
240
+ void *values[1];
241
+ char *s;
242
+ ffi_arg rc;
243
+
244
+ /* Initialize the argument info vectors */
245
+ args[0] = &ffi_type_pointer;
246
+ values[0] = &s;
247
+
248
+ /* Initialize the cif */
249
+ if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
250
+ &ffi_type_sint, args) == FFI_OK)
251
+ {
252
+ s = "Hello World!";
253
+ ffi_call(&cif, puts, &rc, values);
254
+ /* rc now holds the result of the call to puts */
255
+
256
+ /* values holds a pointer to the function's arg, so to
257
+ call puts() again all we need to do is change the
258
+ value of s */
259
+ s = "This is cool!";
260
+ ffi_call(&cif, puts, &rc, values);
261
+ }
262
+
263
+ return 0;
264
+ }
265
+
266
+ 
267
+ File: libffi.info, Node: Types, Next: Multiple ABIs, Prev: Simple Example, Up: Using libffi
268
+
269
+ 2.3 Types
270
+ =========
271
+
272
+ * Menu:
273
+
274
+ * Primitive Types:: Built-in types.
275
+ * Structures:: Structure types.
276
+ * Size and Alignment:: Size and alignment of types.
277
+ * Arrays Unions Enums:: Arrays, unions, and enumerations.
278
+ * Type Example:: Structure type example.
279
+ * Complex:: Complex types.
280
+ * Complex Type Example:: Complex type example.
281
+
282
+ 
283
+ File: libffi.info, Node: Primitive Types, Next: Structures, Up: Types
284
+
285
+ 2.3.1 Primitive Types
286
+ ---------------------
287
+
288
+ 'Libffi' provides a number of built-in type descriptors that can be used
289
+ to describe argument and return types:
290
+
291
+ 'ffi_type_void'
292
+ The type 'void'. This cannot be used for argument types, only for
293
+ return values.
294
+
295
+ 'ffi_type_uint8'
296
+ An unsigned, 8-bit integer type.
297
+
298
+ 'ffi_type_sint8'
299
+ A signed, 8-bit integer type.
300
+
301
+ 'ffi_type_uint16'
302
+ An unsigned, 16-bit integer type.
303
+
304
+ 'ffi_type_sint16'
305
+ A signed, 16-bit integer type.
306
+
307
+ 'ffi_type_uint32'
308
+ An unsigned, 32-bit integer type.
309
+
310
+ 'ffi_type_sint32'
311
+ A signed, 32-bit integer type.
312
+
313
+ 'ffi_type_uint64'
314
+ An unsigned, 64-bit integer type.
315
+
316
+ 'ffi_type_sint64'
317
+ A signed, 64-bit integer type.
318
+
319
+ 'ffi_type_float'
320
+ The C 'float' type.
321
+
322
+ 'ffi_type_double'
323
+ The C 'double' type.
324
+
325
+ 'ffi_type_uchar'
326
+ The C 'unsigned char' type.
327
+
328
+ 'ffi_type_schar'
329
+ The C 'signed char' type. (Note that there is not an exact
330
+ equivalent to the C 'char' type in 'libffi'; ordinarily you should
331
+ either use 'ffi_type_schar' or 'ffi_type_uchar' depending on
332
+ whether 'char' is signed.)
333
+
334
+ 'ffi_type_ushort'
335
+ The C 'unsigned short' type.
336
+
337
+ 'ffi_type_sshort'
338
+ The C 'short' type.
339
+
340
+ 'ffi_type_uint'
341
+ The C 'unsigned int' type.
342
+
343
+ 'ffi_type_sint'
344
+ The C 'int' type.
345
+
346
+ 'ffi_type_ulong'
347
+ The C 'unsigned long' type.
348
+
349
+ 'ffi_type_slong'
350
+ The C 'long' type.
351
+
352
+ 'ffi_type_longdouble'
353
+ On platforms that have a C 'long double' type, this is defined. On
354
+ other platforms, it is not.
355
+
356
+ 'ffi_type_pointer'
357
+ A generic 'void *' pointer. You should use this for all pointers,
358
+ regardless of their real type.
359
+
360
+ 'ffi_type_complex_float'
361
+ The C '_Complex float' type.
362
+
363
+ 'ffi_type_complex_double'
364
+ The C '_Complex double' type.
365
+
366
+ 'ffi_type_complex_longdouble'
367
+ The C '_Complex long double' type. On platforms that have a C
368
+ 'long double' type, this is defined. On other platforms, it is
369
+ not.
370
+
371
+ Each of these is of type 'ffi_type', so you must take the address
372
+ when passing to 'ffi_prep_cif'.
373
+
374
+ 
375
+ File: libffi.info, Node: Structures, Next: Size and Alignment, Prev: Primitive Types, Up: Types
376
+
377
+ 2.3.2 Structures
378
+ ----------------
379
+
380
+ 'libffi' is perfectly happy passing structures back and forth. You must
381
+ first describe the structure to 'libffi' by creating a new 'ffi_type'
382
+ object for it.
383
+
384
+ -- Data type: ffi_type
385
+ The 'ffi_type' has the following members:
386
+ 'size_t size'
387
+ This is set by 'libffi'; you should initialize it to zero.
388
+
389
+ 'unsigned short alignment'
390
+ This is set by 'libffi'; you should initialize it to zero.
391
+
392
+ 'unsigned short type'
393
+ For a structure, this should be set to 'FFI_TYPE_STRUCT'.
394
+
395
+ 'ffi_type **elements'
396
+ This is a 'NULL'-terminated array of pointers to 'ffi_type'
397
+ objects. There is one element per field of the struct.
398
+
399
+ Note that 'libffi' has no special support for bit-fields. You
400
+ must manage these manually.
401
+
402
+ The 'size' and 'alignment' fields will be filled in by 'ffi_prep_cif'
403
+ or 'ffi_prep_cif_var', as needed.
404
+
405
+ 
406
+ File: libffi.info, Node: Size and Alignment, Next: Arrays Unions Enums, Prev: Structures, Up: Types
407
+
408
+ 2.3.3 Size and Alignment
409
+ ------------------------
410
+
411
+ 'libffi' will set the 'size' and 'alignment' fields of an 'ffi_type'
412
+ object for you. It does so using its knowledge of the ABI.
413
+
414
+ You might expect that you can simply read these fields for a type
415
+ that has been laid out by 'libffi'. However, there are some caveats.
416
+
417
+ * The size or alignment of some of the built-in types may vary
418
+ depending on the chosen ABI.
419
+
420
+ * The size and alignment of a new structure type will not be set by
421
+ 'libffi' until it has been passed to 'ffi_prep_cif' or
422
+ 'ffi_get_struct_offsets'.
423
+
424
+ * A structure type cannot be shared across ABIs. Instead each ABI
425
+ needs its own copy of the structure type.
426
+
427
+ So, before examining these fields, it is safest to pass the
428
+ 'ffi_type' object to 'ffi_prep_cif' or 'ffi_get_struct_offsets' first.
429
+ This function will do all the needed setup.
430
+
431
+ ffi_type *desired_type;
432
+ ffi_abi desired_abi;
433
+ ...
434
+ ffi_cif cif;
435
+ if (ffi_prep_cif (&cif, desired_abi, 0, desired_type, NULL) == FFI_OK)
436
+ {
437
+ size_t size = desired_type->size;
438
+ unsigned short alignment = desired_type->alignment;
439
+ }
440
+
441
+ 'libffi' also provides a way to get the offsets of the members of a
442
+ structure.
443
+
444
+ -- Function: ffi_status ffi_get_struct_offsets (ffi_abi abi, ffi_type
445
+ *struct_type, size_t *offsets)
446
+ Compute the offset of each element of the given structure type.
447
+ ABI is the ABI to use; this is needed because in some cases the
448
+ layout depends on the ABI.
449
+
450
+ OFFSETS is an out parameter. The caller is responsible for
451
+ providing enough space for all the results to be written - one
452
+ element per element type in STRUCT_TYPE. If OFFSETS is 'NULL',
453
+ then the type will be laid out but not otherwise modified. This
454
+ can be useful for accessing the type's size or layout, as mentioned
455
+ above.
456
+
457
+ This function returns 'FFI_OK' on success; 'FFI_BAD_ABI' if ABI is
458
+ invalid; or 'FFI_BAD_TYPEDEF' if STRUCT_TYPE is invalid in some
459
+ way. Note that only 'FFI_STRUCT' types are valid here.
460
+
461
+ 
462
+ File: libffi.info, Node: Arrays Unions Enums, Next: Type Example, Prev: Size and Alignment, Up: Types
463
+
464
+ 2.3.4 Arrays, Unions, and Enumerations
465
+ --------------------------------------
466
+
467
+ 2.3.4.1 Arrays
468
+ ..............
469
+
470
+ 'libffi' does not have direct support for arrays or unions. However,
471
+ they can be emulated using structures.
472
+
473
+ To emulate an array, simply create an 'ffi_type' using
474
+ 'FFI_TYPE_STRUCT' with as many members as there are elements in the
475
+ array.
476
+
477
+ ffi_type array_type;
478
+ ffi_type **elements
479
+ int i;
480
+
481
+ elements = malloc ((n + 1) * sizeof (ffi_type *));
482
+ for (i = 0; i < n; ++i)
483
+ elements[i] = array_element_type;
484
+ elements[n] = NULL;
485
+
486
+ array_type.size = array_type.alignment = 0;
487
+ array_type.type = FFI_TYPE_STRUCT;
488
+ array_type.elements = elements;
489
+
490
+ Note that arrays cannot be passed or returned by value in C -
491
+ structure types created like this should only be used to refer to
492
+ members of real 'FFI_TYPE_STRUCT' objects.
493
+
494
+ However, a phony array type like this will not cause any errors from
495
+ 'libffi' if you use it as an argument or return type. This may be
496
+ confusing.
497
+
498
+ 2.3.4.2 Unions
499
+ ..............
500
+
501
+ A union can also be emulated using 'FFI_TYPE_STRUCT'. In this case,
502
+ however, you must make sure that the size and alignment match the real
503
+ requirements of the union.
504
+
505
+ One simple way to do this is to ensue that each element type is laid
506
+ out. Then, give the new structure type a single element; the size of
507
+ the largest element; and the largest alignment seen as well.
508
+
509
+ This example uses the 'ffi_prep_cif' trick to ensure that each
510
+ element type is laid out.
511
+
512
+ ffi_abi desired_abi;
513
+ ffi_type union_type;
514
+ ffi_type **union_elements;
515
+
516
+ int i;
517
+ ffi_type element_types[2];
518
+
519
+ element_types[1] = NULL;
520
+
521
+ union_type.size = union_type.alignment = 0;
522
+ union_type.type = FFI_TYPE_STRUCT;
523
+ union_type.elements = element_types;
524
+
525
+ for (i = 0; union_elements[i]; ++i)
526
+ {
527
+ ffi_cif cif;
528
+ if (ffi_prep_cif (&cif, desired_abi, 0, union_elements[i], NULL) == FFI_OK)
529
+ {
530
+ if (union_elements[i]->size > union_type.size)
531
+ {
532
+ union_type.size = union_elements[i];
533
+ size = union_elements[i]->size;
534
+ }
535
+ if (union_elements[i]->alignment > union_type.alignment)
536
+ union_type.alignment = union_elements[i]->alignment;
537
+ }
538
+ }
539
+
540
+ 2.3.4.3 Enumerations
541
+ ....................
542
+
543
+ 'libffi' does not have any special support for C 'enum's. Although any
544
+ given 'enum' is implemented using a specific underlying integral type,
545
+ exactly which type will be used cannot be determined by 'libffi' - it
546
+ may depend on the values in the enumeration or on compiler flags such as
547
+ '-fshort-enums'. *Note (gcc)Structures unions enumerations and
548
+ bit-fields implementation::, for more information about how GCC handles
549
+ enumerations.
550
+
551
+ 
552
+ File: libffi.info, Node: Type Example, Next: Complex, Prev: Arrays Unions Enums, Up: Types
553
+
554
+ 2.3.5 Type Example
555
+ ------------------
556
+
557
+ The following example initializes a 'ffi_type' object representing the
558
+ 'tm' struct from Linux's 'time.h'.
559
+
560
+ Here is how the struct is defined:
561
+
562
+ struct tm {
563
+ int tm_sec;
564
+ int tm_min;
565
+ int tm_hour;
566
+ int tm_mday;
567
+ int tm_mon;
568
+ int tm_year;
569
+ int tm_wday;
570
+ int tm_yday;
571
+ int tm_isdst;
572
+ /* Those are for future use. */
573
+ long int __tm_gmtoff__;
574
+ __const char *__tm_zone__;
575
+ };
576
+
577
+ Here is the corresponding code to describe this struct to 'libffi':
578
+
579
+ {
580
+ ffi_type tm_type;
581
+ ffi_type *tm_type_elements[12];
582
+ int i;
583
+
584
+ tm_type.size = tm_type.alignment = 0;
585
+ tm_type.type = FFI_TYPE_STRUCT;
586
+ tm_type.elements = &tm_type_elements;
587
+
588
+ for (i = 0; i < 9; i++)
589
+ tm_type_elements[i] = &ffi_type_sint;
590
+
591
+ tm_type_elements[9] = &ffi_type_slong;
592
+ tm_type_elements[10] = &ffi_type_pointer;
593
+ tm_type_elements[11] = NULL;
594
+
595
+ /* tm_type can now be used to represent tm argument types and
596
+ return types for ffi_prep_cif() */
597
+ }
598
+
599
+ 
600
+ File: libffi.info, Node: Complex, Next: Complex Type Example, Prev: Type Example, Up: Types
601
+
602
+ 2.3.6 Complex Types
603
+ -------------------
604
+
605
+ 'libffi' supports the complex types defined by the C99 standard
606
+ ('_Complex float', '_Complex double' and '_Complex long double' with the
607
+ built-in type descriptors 'ffi_type_complex_float',
608
+ 'ffi_type_complex_double' and 'ffi_type_complex_longdouble'.
609
+
610
+ Custom complex types like '_Complex int' can also be used. An
611
+ 'ffi_type' object has to be defined to describe the complex type to
612
+ 'libffi'.
613
+
614
+ -- Data type: ffi_type
615
+ 'size_t size'
616
+ This must be manually set to the size of the complex type.
617
+
618
+ 'unsigned short alignment'
619
+ This must be manually set to the alignment of the complex
620
+ type.
621
+
622
+ 'unsigned short type'
623
+ For a complex type, this must be set to 'FFI_TYPE_COMPLEX'.
624
+
625
+ 'ffi_type **elements'
626
+
627
+ This is a 'NULL'-terminated array of pointers to 'ffi_type'
628
+ objects. The first element is set to the 'ffi_type' of the
629
+ complex's base type. The second element must be set to
630
+ 'NULL'.
631
+
632
+ The section *note Complex Type Example:: shows a way to determine the
633
+ 'size' and 'alignment' members in a platform independent way.
634
+
635
+ For platforms that have no complex support in 'libffi' yet, the
636
+ functions 'ffi_prep_cif' and 'ffi_prep_args' abort the program if they
637
+ encounter a complex type.
638
+
639
+ 
640
+ File: libffi.info, Node: Complex Type Example, Prev: Complex, Up: Types
641
+
642
+ 2.3.7 Complex Type Example
643
+ --------------------------
644
+
645
+ This example demonstrates how to use complex types:
646
+
647
+ #include <stdio.h>
648
+ #include <ffi.h>
649
+ #include <complex.h>
650
+
651
+ void complex_fn(_Complex float cf,
652
+ _Complex double cd,
653
+ _Complex long double cld)
654
+ {
655
+ printf("cf=%f+%fi\ncd=%f+%fi\ncld=%f+%fi\n",
656
+ (float)creal (cf), (float)cimag (cf),
657
+ (float)creal (cd), (float)cimag (cd),
658
+ (float)creal (cld), (float)cimag (cld));
659
+ }
660
+
661
+ int main()
662
+ {
663
+ ffi_cif cif;
664
+ ffi_type *args[3];
665
+ void *values[3];
666
+ _Complex float cf;
667
+ _Complex double cd;
668
+ _Complex long double cld;
669
+
670
+ /* Initialize the argument info vectors */
671
+ args[0] = &ffi_type_complex_float;
672
+ args[1] = &ffi_type_complex_double;
673
+ args[2] = &ffi_type_complex_longdouble;
674
+ values[0] = &cf;
675
+ values[1] = &cd;
676
+ values[2] = &cld;
677
+
678
+ /* Initialize the cif */
679
+ if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3,
680
+ &ffi_type_void, args) == FFI_OK)
681
+ {
682
+ cf = 1.0 + 20.0 * I;
683
+ cd = 300.0 + 4000.0 * I;
684
+ cld = 50000.0 + 600000.0 * I;
685
+ /* Call the function */
686
+ ffi_call(&cif, (void (*)(void))complex_fn, 0, values);
687
+ }
688
+
689
+ return 0;
690
+ }
691
+
692
+ This is an example for defining a custom complex type descriptor for
693
+ compilers that support them:
694
+
695
+ /*
696
+ * This macro can be used to define new complex type descriptors
697
+ * in a platform independent way.
698
+ *
699
+ * name: Name of the new descriptor is ffi_type_complex_<name>.
700
+ * type: The C base type of the complex type.
701
+ */
702
+ #define FFI_COMPLEX_TYPEDEF(name, type, ffitype) \
703
+ static ffi_type *ffi_elements_complex_##name [2] = { \
704
+ (ffi_type *)(&ffitype), NULL \
705
+ }; \
706
+ struct struct_align_complex_##name { \
707
+ char c; \
708
+ _Complex type x; \
709
+ }; \
710
+ ffi_type ffi_type_complex_##name = { \
711
+ sizeof(_Complex type), \
712
+ offsetof(struct struct_align_complex_##name, x), \
713
+ FFI_TYPE_COMPLEX, \
714
+ (ffi_type **)ffi_elements_complex_##name \
715
+ }
716
+
717
+ /* Define new complex type descriptors using the macro: */
718
+ /* ffi_type_complex_sint */
719
+ FFI_COMPLEX_TYPEDEF(sint, int, ffi_type_sint);
720
+ /* ffi_type_complex_uchar */
721
+ FFI_COMPLEX_TYPEDEF(uchar, unsigned char, ffi_type_uint8);
722
+
723
+ The new type descriptors can then be used like one of the built-in
724
+ type descriptors in the previous example.
725
+
726
+ 
727
+ File: libffi.info, Node: Multiple ABIs, Next: The Closure API, Prev: Types, Up: Using libffi
728
+
729
+ 2.4 Multiple ABIs
730
+ =================
731
+
732
+ A given platform may provide multiple different ABIs at once. For
733
+ instance, the x86 platform has both 'stdcall' and 'fastcall' functions.
734
+
735
+ 'libffi' provides some support for this. However, this is
736
+ necessarily platform-specific.
737
+
738
+ 
739
+ File: libffi.info, Node: The Closure API, Next: Closure Example, Prev: Multiple ABIs, Up: Using libffi
740
+
741
+ 2.5 The Closure API
742
+ ===================
743
+
744
+ 'libffi' also provides a way to write a generic function - a function
745
+ that can accept and decode any combination of arguments. This can be
746
+ useful when writing an interpreter, or to provide wrappers for arbitrary
747
+ functions.
748
+
749
+ This facility is called the "closure API". Closures are not supported
750
+ on all platforms; you can check the 'FFI_CLOSURES' define to determine
751
+ whether they are supported on the current platform.
752
+
753
+ Because closures work by assembling a tiny function at runtime, they
754
+ require special allocation on platforms that have a non-executable heap.
755
+ Memory management for closures is handled by a pair of functions:
756
+
757
+ -- Function: void *ffi_closure_alloc (size_t SIZE, void **CODE)
758
+ Allocate a chunk of memory holding SIZE bytes. This returns a
759
+ pointer to the writable address, and sets *CODE to the
760
+ corresponding executable address.
761
+
762
+ SIZE should be sufficient to hold a 'ffi_closure' object.
763
+
764
+ -- Function: void ffi_closure_free (void *WRITABLE)
765
+ Free memory allocated using 'ffi_closure_alloc'. The argument is
766
+ the writable address that was returned.
767
+
768
+ Once you have allocated the memory for a closure, you must construct
769
+ a 'ffi_cif' describing the function call. Finally you can prepare the
770
+ closure function:
771
+
772
+ -- Function: ffi_status ffi_prep_closure_loc (ffi_closure *CLOSURE,
773
+ ffi_cif *CIF, void (*FUN) (ffi_cif *CIF, void *RET, void
774
+ **ARGS, void *USER_DATA), void *USER_DATA, void *CODELOC)
775
+ Prepare a closure function. The arguments to
776
+ 'ffi_prep_closure_loc' are:
777
+
778
+ CLOSURE
779
+ The address of a 'ffi_closure' object; this is the writable
780
+ address returned by 'ffi_closure_alloc'.
781
+
782
+ CIF
783
+ The 'ffi_cif' describing the function parameters. Note that
784
+ this object, and the types to which it refers, must be kept
785
+ alive until the closure itself is freed.
786
+
787
+ USER_DATA
788
+ An arbitrary datum that is passed, uninterpreted, to your
789
+ closure function.
790
+
791
+ CODELOC
792
+ The executable address returned by 'ffi_closure_alloc'.
793
+
794
+ FUN
795
+ The function which will be called when the closure is invoked.
796
+ It is called with the arguments:
797
+
798
+ CIF
799
+ The 'ffi_cif' passed to 'ffi_prep_closure_loc'.
800
+
801
+ RET
802
+ A pointer to the memory used for the function's return
803
+ value.
804
+
805
+ If the function is declared as returning 'void', then
806
+ this value is garbage and should not be used.
807
+
808
+ Otherwise, FUN must fill the object to which this points,
809
+ following the same special promotion behavior as
810
+ 'ffi_call'. That is, in most cases, RET points to an
811
+ object of exactly the size of the type specified when CIF
812
+ was constructed. However, integral types narrower than
813
+ the system register size are widened. In these cases
814
+ your program may assume that RET points to an 'ffi_arg'
815
+ object.
816
+
817
+ ARGS
818
+ A vector of pointers to memory holding the arguments to
819
+ the function.
820
+
821
+ USER_DATA
822
+ The same USER_DATA that was passed to
823
+ 'ffi_prep_closure_loc'.
824
+
825
+ 'ffi_prep_closure_loc' will return 'FFI_OK' if everything went ok,
826
+ and one of the other 'ffi_status' values on error.
827
+
828
+ After calling 'ffi_prep_closure_loc', you can cast CODELOC to the
829
+ appropriate pointer-to-function type.
830
+
831
+ You may see old code referring to 'ffi_prep_closure'. This function
832
+ is deprecated, as it cannot handle the need for separate writable and
833
+ executable addresses.
834
+
835
+ 
836
+ File: libffi.info, Node: Closure Example, Next: Thread Safety, Prev: The Closure API, Up: Using libffi
837
+
838
+ 2.6 Closure Example
839
+ ===================
840
+
841
+ A trivial example that creates a new 'puts' by binding 'fputs' with
842
+ 'stdout'.
843
+
844
+ #include <stdio.h>
845
+ #include <ffi.h>
846
+
847
+ /* Acts like puts with the file given at time of enclosure. */
848
+ void puts_binding(ffi_cif *cif, void *ret, void* args[],
849
+ void *stream)
850
+ {
851
+ *(ffi_arg *)ret = fputs(*(char **)args[0], (FILE *)stream);
852
+ }
853
+
854
+ typedef int (*puts_t)(char *);
855
+
856
+ int main()
857
+ {
858
+ ffi_cif cif;
859
+ ffi_type *args[1];
860
+ ffi_closure *closure;
861
+
862
+ void *bound_puts;
863
+ int rc;
864
+
865
+ /* Allocate closure and bound_puts */
866
+ closure = ffi_closure_alloc(sizeof(ffi_closure), &bound_puts);
867
+
868
+ if (closure)
869
+ {
870
+ /* Initialize the argument info vectors */
871
+ args[0] = &ffi_type_pointer;
872
+
873
+ /* Initialize the cif */
874
+ if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
875
+ &ffi_type_sint, args) == FFI_OK)
876
+ {
877
+ /* Initialize the closure, setting stream to stdout */
878
+ if (ffi_prep_closure_loc(closure, &cif, puts_binding,
879
+ stdout, bound_puts) == FFI_OK)
880
+ {
881
+ rc = ((puts_t)bound_puts)("Hello World!");
882
+ /* rc now holds the result of the call to fputs */
883
+ }
884
+ }
885
+ }
886
+
887
+ /* Deallocate both closure, and bound_puts */
888
+ ffi_closure_free(closure);
889
+
890
+ return 0;
891
+ }
892
+
893
+
894
+ 
895
+ File: libffi.info, Node: Thread Safety, Prev: Closure Example, Up: Using libffi
896
+
897
+ 2.7 Thread Safety
898
+ =================
899
+
900
+ 'libffi' is not completely thread-safe. However, many parts are, and if
901
+ you follow some simple rules, you can use it safely in a multi-threaded
902
+ program.
903
+
904
+ * 'ffi_prep_cif' may modify the 'ffi_type' objects passed to it. It
905
+ is best to ensure that only a single thread prepares a given
906
+ 'ffi_cif' at a time.
907
+
908
+ * On some platforms, 'ffi_prep_cif' may modify the size and alignment
909
+ of some types, depending on the chosen ABI. On these platforms, if
910
+ you switch between ABIs, you must ensure that there is only one
911
+ call to 'ffi_prep_cif' at a time.
912
+
913
+ Currently the only affected platform is PowerPC and the only
914
+ affected type is 'long double'.
915
+
916
+ 
917
+ File: libffi.info, Node: Memory Usage, Next: Missing Features, Prev: Using libffi, Up: Top
918
+
919
+ 3 Memory Usage
920
+ **************
921
+
922
+ Note that memory allocated by 'ffi_closure_alloc' and freed by
923
+ 'ffi_closure_free' does not come from the same general pool of memory
924
+ that 'malloc' and 'free' use. To accomodate security settings, 'libffi'
925
+ may aquire memory, for example, by mapping temporary files into multiple
926
+ places in the address space (once to write out the closure, a second to
927
+ execute it). The search follows this list, using the first that works:
928
+
929
+ * A anonymous mapping (i.e. not file-backed)
930
+
931
+ * 'memfd_create()', if the kernel supports it.
932
+
933
+ * A file created in the directory referenced by the environment
934
+ variable 'LIBFFI_TMPDIR'.
935
+
936
+ * Likewise for the environment variable 'TMPDIR'.
937
+
938
+ * A file created in '/tmp'.
939
+
940
+ * A file created in '/var/tmp'.
941
+
942
+ * A file created in '/dev/shm'.
943
+
944
+ * A file created in the user's home directory ('$HOME').
945
+
946
+ * A file created in any directory listed in '/etc/mtab'.
947
+
948
+ * A file created in any directory listed in '/proc/mounts'.
949
+
950
+ If security settings prohibit using any of these for closures,
951
+ 'ffi_closure_alloc' will fail.
952
+
953
+ 
954
+ File: libffi.info, Node: Missing Features, Next: Index, Prev: Memory Usage, Up: Top
955
+
956
+ 4 Missing Features
957
+ ******************
958
+
959
+ 'libffi' is missing a few features. We welcome patches to add support
960
+ for these.
961
+
962
+ * Variadic closures.
963
+
964
+ * There is no support for bit fields in structures.
965
+
966
+ * The "raw" API is undocumented.
967
+
968
+ * The Go API is undocumented.
969
+
970
+ 
971
+ File: libffi.info, Node: Index, Prev: Missing Features, Up: Top
972
+
973
+ Index
974
+ *****
975
+
976
+ [index]
977
+ * Menu:
978
+
979
+ * ABI: Introduction. (line 13)
980
+ * Application Binary Interface: Introduction. (line 13)
981
+ * calling convention: Introduction. (line 13)
982
+ * cif: The Basics. (line 14)
983
+ * closure API: The Closure API. (line 13)
984
+ * closures: The Closure API. (line 13)
985
+ * FFI: Introduction. (line 31)
986
+ * ffi_call: The Basics. (line 72)
987
+ * FFI_CLOSURES: The Closure API. (line 13)
988
+ * ffi_closure_alloc: The Closure API. (line 19)
989
+ * ffi_closure_free: The Closure API. (line 26)
990
+ * ffi_get_struct_offsets: Size and Alignment. (line 39)
991
+ * ffi_prep_cif: The Basics. (line 16)
992
+ * ffi_prep_cif_var: The Basics. (line 39)
993
+ * ffi_prep_closure_loc: The Closure API. (line 34)
994
+ * ffi_status: The Basics. (line 16)
995
+ * ffi_status <1>: The Basics. (line 39)
996
+ * ffi_status <2>: Size and Alignment. (line 39)
997
+ * ffi_status <3>: The Closure API. (line 34)
998
+ * ffi_type: Structures. (line 10)
999
+ * ffi_type <1>: Structures. (line 10)
1000
+ * ffi_type <2>: Complex. (line 15)
1001
+ * ffi_type <3>: Complex. (line 15)
1002
+ * ffi_type_complex_double: Primitive Types. (line 82)
1003
+ * ffi_type_complex_float: Primitive Types. (line 79)
1004
+ * ffi_type_complex_longdouble: Primitive Types. (line 85)
1005
+ * ffi_type_double: Primitive Types. (line 41)
1006
+ * ffi_type_float: Primitive Types. (line 38)
1007
+ * ffi_type_longdouble: Primitive Types. (line 71)
1008
+ * ffi_type_pointer: Primitive Types. (line 75)
1009
+ * ffi_type_schar: Primitive Types. (line 47)
1010
+ * ffi_type_sint: Primitive Types. (line 62)
1011
+ * ffi_type_sint16: Primitive Types. (line 23)
1012
+ * ffi_type_sint32: Primitive Types. (line 29)
1013
+ * ffi_type_sint64: Primitive Types. (line 35)
1014
+ * ffi_type_sint8: Primitive Types. (line 17)
1015
+ * ffi_type_slong: Primitive Types. (line 68)
1016
+ * ffi_type_sshort: Primitive Types. (line 56)
1017
+ * ffi_type_uchar: Primitive Types. (line 44)
1018
+ * ffi_type_uint: Primitive Types. (line 59)
1019
+ * ffi_type_uint16: Primitive Types. (line 20)
1020
+ * ffi_type_uint32: Primitive Types. (line 26)
1021
+ * ffi_type_uint64: Primitive Types. (line 32)
1022
+ * ffi_type_uint8: Primitive Types. (line 14)
1023
+ * ffi_type_ulong: Primitive Types. (line 65)
1024
+ * ffi_type_ushort: Primitive Types. (line 53)
1025
+ * ffi_type_void: Primitive Types. (line 10)
1026
+ * Foreign Function Interface: Introduction. (line 31)
1027
+ * void: The Basics. (line 72)
1028
+ * void <1>: The Closure API. (line 19)
1029
+ * void <2>: The Closure API. (line 26)
1030
+
1031
+
1032
+ 
1033
+ Tag Table:
1034
+ Node: Top1400
1035
+ Node: Introduction2935
1036
+ Node: Using libffi4567
1037
+ Node: The Basics5096
1038
+ Node: Simple Example10024
1039
+ Node: Types11055
1040
+ Node: Primitive Types11566
1041
+ Node: Structures13687
1042
+ Node: Size and Alignment14726
1043
+ Node: Arrays Unions Enums16923
1044
+ Node: Type Example19852
1045
+ Node: Complex21143
1046
+ Node: Complex Type Example22561
1047
+ Node: Multiple ABIs25613
1048
+ Node: The Closure API25984
1049
+ Node: Closure Example29810
1050
+ Node: Thread Safety31442
1051
+ Node: Memory Usage32243
1052
+ Node: Missing Features33438
1053
+ Node: Index33803
1054
+ 
1055
+ End Tag Table
1056
+
1057
+ 
1058
+ Local Variables:
1059
+ coding: utf-8
1060
+ End:
llava_next/share/info/libquadmath.info ADDED
@@ -0,0 +1,816 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is libquadmath.info, produced by makeinfo version 6.8 from
2
+ libquadmath.texi.
3
+
4
+ Copyright (C) 2010-2021 Free Software Foundation, Inc.
5
+
6
+ Permission is granted to copy, distribute and/or modify this
7
+ document under the terms of the GNU Free Documentation License,
8
+ Version 1.2 or any later version published by the Free Software
9
+ Foundation; with no Invariant Sections, with the Front-Cover Texts
10
+ being "A GNU Manual," and with the Back-Cover Texts as in (a)
11
+ below. A copy of the license is included in the section entitled
12
+ "GNU Free Documentation License."
13
+
14
+ (a) The FSF's Back-Cover Text is: "You have the freedom to copy and
15
+ modify this GNU manual.
16
+ INFO-DIR-SECTION GNU Libraries
17
+ START-INFO-DIR-ENTRY
18
+ * libquadmath: (libquadmath). GCC Quad-Precision Math Library
19
+ END-INFO-DIR-ENTRY
20
+
21
+ This manual documents the GCC Quad-Precision Math Library API.
22
+
23
+ Published by the Free Software Foundation 51 Franklin Street, Fifth
24
+ Floor Boston, MA 02110-1301 USA
25
+
26
+ Copyright (C) 2010-2021 Free Software Foundation, Inc.
27
+
28
+ Permission is granted to copy, distribute and/or modify this
29
+ document under the terms of the GNU Free Documentation License,
30
+ Version 1.2 or any later version published by the Free Software
31
+ Foundation; with no Invariant Sections, with the Front-Cover Texts
32
+ being "A GNU Manual," and with the Back-Cover Texts as in (a)
33
+ below. A copy of the license is included in the section entitled
34
+ "GNU Free Documentation License."
35
+
36
+ (a) The FSF's Back-Cover Text is: "You have the freedom to copy and
37
+ modify this GNU manual.
38
+
39
+ 
40
+ File: libquadmath.info, Node: Top, Next: Typedef and constants, Up: (dir)
41
+
42
+ Introduction
43
+ ************
44
+
45
+ This manual documents the usage of libquadmath, the GCC Quad-Precision
46
+ Math Library Application Programming Interface (API).
47
+
48
+ * Menu:
49
+
50
+ * Typedef and constants:: Defined data types and constants
51
+ * Math Library Routines:: The Libquadmath math runtime application
52
+ programming interface.
53
+ * I/O Library Routines:: The Libquadmath I/O runtime application
54
+ programming interface.
55
+ * GNU Free Documentation License::
56
+ How you can copy and share this manual.
57
+ * Reporting Bugs:: How to report bugs in GCC Libquadmath.
58
+
59
+ 
60
+ File: libquadmath.info, Node: Typedef and constants, Next: Math Library Routines, Prev: Top, Up: Top
61
+
62
+ 1 Typedef and constants
63
+ ***********************
64
+
65
+ The following data type has been defined via 'typedef'.
66
+
67
+ '__complex128': '__float128'-based complex number
68
+
69
+ The following macros are defined, which give the numeric limits of
70
+ the '__float128' data type.
71
+
72
+ 'FLT128_MAX': largest finite number
73
+ 'FLT128_MIN': smallest positive number with full precision
74
+ 'FLT128_EPSILON': difference between 1 and the next larger
75
+ representable number
76
+ 'FLT128_DENORM_MIN': smallest positive denormalized number
77
+ 'FLT128_MANT_DIG': number of digits in the mantissa (bit precision)
78
+ 'FLT128_MIN_EXP': maximal negative exponent
79
+ 'FLT128_MAX_EXP': maximal positive exponent
80
+ 'FLT128_DIG': number of decimal digits in the mantissa
81
+ 'FLT128_MIN_10_EXP': maximal negative decimal exponent
82
+ 'FLT128_MAX_10_EXP': maximal positive decimal exponent
83
+
84
+ The following mathematical constants of type '__float128' are
85
+ defined.
86
+
87
+ 'M_Eq': the constant e (Euler's number)
88
+ 'M_LOG2Eq': binary logarithm of 2
89
+ 'M_LOG10Eq': common, decimal logarithm of 2
90
+ 'M_LN2q': natural logarithm of 2
91
+ 'M_LN10q': natural logarithm of 10
92
+ 'M_PIq': pi
93
+ 'M_PI_2q': pi divided by two
94
+ 'M_PI_4q': pi divided by four
95
+ 'M_1_PIq': one over pi
96
+ 'M_2_PIq': one over two pi
97
+ 'M_2_SQRTPIq': two over square root of pi
98
+ 'M_SQRT2q': square root of 2
99
+ 'M_SQRT1_2q': one over square root of 2
100
+
101
+ 
102
+ File: libquadmath.info, Node: Math Library Routines, Next: I/O Library Routines, Prev: Typedef and constants, Up: Top
103
+
104
+ 2 Math Library Routines
105
+ ***********************
106
+
107
+ The following mathematical functions are available:
108
+
109
+ 'acosq': arc cosine function
110
+ 'acoshq': inverse hyperbolic cosine function
111
+ 'asinq': arc sine function
112
+ 'asinhq': inverse hyperbolic sine function
113
+ 'atanq': arc tangent function
114
+ 'atanhq': inverse hyperbolic tangent function
115
+ 'atan2q': arc tangent function
116
+ 'cbrtq': cube root function
117
+ 'ceilq': ceiling value function
118
+ 'copysignq': copy sign of a number
119
+ 'coshq': hyperbolic cosine function
120
+ 'cosq': cosine function
121
+ 'erfq': error function
122
+ 'erfcq': complementary error function
123
+ 'exp2q': base 2 exponential function
124
+ 'expq': exponential function
125
+ 'expm1q': exponential minus 1 function
126
+ 'fabsq': absolute value function
127
+ 'fdimq': positive difference function
128
+ 'finiteq': check finiteness of value
129
+ 'floorq': floor value function
130
+ 'fmaq': fused multiply and add
131
+ 'fmaxq': determine maximum of two values
132
+ 'fminq': determine minimum of two values
133
+ 'fmodq': remainder value function
134
+ 'frexpq': extract mantissa and exponent
135
+ 'hypotq': Eucledian distance function
136
+ 'ilogbq': get exponent of the value
137
+ 'isinfq': check for infinity
138
+ 'isnanq': check for not a number
139
+ 'issignalingq': check for signaling not a number
140
+ 'j0q': Bessel function of the first kind, first order
141
+ 'j1q': Bessel function of the first kind, second order
142
+ 'jnq': Bessel function of the first kind, N-th order
143
+ 'ldexpq': load exponent of the value
144
+ 'lgammaq': logarithmic gamma function
145
+ 'llrintq': round to nearest integer value
146
+ 'llroundq': round to nearest integer value away from zero
147
+ 'logbq': get exponent of the value
148
+ 'logq': natural logarithm function
149
+ 'log10q': base 10 logarithm function
150
+ 'log1pq': compute natural logarithm of the value plus one
151
+ 'log2q': base 2 logarithm function
152
+ 'lrintq': round to nearest integer value
153
+ 'lroundq': round to nearest integer value away from zero
154
+ 'modfq': decompose the floating-point number
155
+ 'nanq': return quiet NaN
156
+ 'nearbyintq': round to nearest integer
157
+ 'nextafterq': next representable floating-point number
158
+ 'powq': power function
159
+ 'remainderq': remainder function
160
+ 'remquoq': remainder and part of quotient
161
+ 'rintq': round-to-nearest integral value
162
+ 'roundq': round-to-nearest integral value, return '__float128'
163
+ 'scalblnq': compute exponent using 'FLT_RADIX'
164
+ 'scalbnq': compute exponent using 'FLT_RADIX'
165
+ 'signbitq': return sign bit
166
+ 'sincosq': calculate sine and cosine simultaneously
167
+ 'sinhq': hyperbolic sine function
168
+ 'sinq': sine function
169
+ 'sqrtq': square root function
170
+ 'tanq': tangent function
171
+ 'tanhq': hyperbolic tangent function
172
+ 'tgammaq': true gamma function
173
+ 'truncq': round to integer, towards zero
174
+ 'y0q': Bessel function of the second kind, first order
175
+ 'y1q': Bessel function of the second kind, second order
176
+ 'ynq': Bessel function of the second kind, N-th order
177
+ 'cabsq' complex absolute value function
178
+ 'cargq': calculate the argument
179
+ 'cimagq' imaginary part of complex number
180
+ 'crealq': real part of complex number
181
+ 'cacoshq': complex arc hyperbolic cosine function
182
+ 'cacosq': complex arc cosine function
183
+ 'casinhq': complex arc hyperbolic sine function
184
+ 'casinq': complex arc sine function
185
+ 'catanhq': complex arc hyperbolic tangent function
186
+ 'catanq': complex arc tangent function
187
+ 'ccosq' complex cosine function:
188
+ 'ccoshq': complex hyperbolic cosine function
189
+ 'cexpq': complex exponential function
190
+ 'cexpiq': computes the exponential function of "i" times a
191
+ real value
192
+ 'clogq': complex natural logarithm
193
+ 'clog10q': complex base 10 logarithm
194
+ 'conjq': complex conjugate function
195
+ 'cpowq': complex power function
196
+ 'cprojq': project into Riemann Sphere
197
+ 'csinq': complex sine function
198
+ 'csinhq': complex hyperbolic sine function
199
+ 'csqrtq': complex square root
200
+ 'ctanq': complex tangent function
201
+ 'ctanhq': complex hyperbolic tangent function
202
+
203
+ 
204
+ File: libquadmath.info, Node: I/O Library Routines, Next: GNU Free Documentation License, Prev: Math Library Routines, Up: Top
205
+
206
+ 3 I/O Library Routines
207
+ **********************
208
+
209
+ * Menu:
210
+
211
+ * 'strtoflt128': strtoflt128, Convert from string
212
+ * 'quadmath_snprintf': quadmath_snprintf, Convert to string
213
+
214
+ 
215
+ File: libquadmath.info, Node: strtoflt128, Next: quadmath_snprintf, Up: I/O Library Routines
216
+
217
+ 3.1 'strtoflt128' -- Convert from string
218
+ ========================================
219
+
220
+ The function 'strtoflt128' converts a string into a '__float128' number.
221
+
222
+ Syntax
223
+ '__float128 strtoflt128 (const char *s, char **sp)'
224
+
225
+ _Arguments_:
226
+ S input string
227
+ SP the address of the next character in the string
228
+
229
+ The argument SP contains, if not 'NULL', the address of the next
230
+ character following the parts of the string, which have been read.
231
+
232
+ Example
233
+ #include <quadmath.h>
234
+
235
+ int main ()
236
+ {
237
+ __float128 r;
238
+
239
+ r = strtoflt128 ("1.2345678", NULL);
240
+
241
+ return 0;
242
+ }
243
+
244
+ 
245
+ File: libquadmath.info, Node: quadmath_snprintf, Prev: strtoflt128, Up: I/O Library Routines
246
+
247
+ 3.2 'quadmath_snprintf' -- Convert to string
248
+ ============================================
249
+
250
+ The function 'quadmath_snprintf' converts a '__float128' floating-point
251
+ number into a string. It is a specialized alternative to 'snprintf',
252
+ where the format string is restricted to a single conversion specifier
253
+ with 'Q' modifier and conversion specifier 'e', 'E', 'f', 'F', 'g', 'G',
254
+ 'a' or 'A', with no extra characters before or after the conversion
255
+ specifier. The '%m$' or '*m$' style must not be used in the format.
256
+
257
+ Syntax
258
+ 'int quadmath_snprintf (char *s, size_t size, const char *format,
259
+ ...)'
260
+
261
+ _Arguments_:
262
+ S output string
263
+ SIZE byte size of the string, including tailing NUL
264
+ FORMAT conversion specifier string
265
+
266
+ Note
267
+ On some targets when supported by the C library hooks are installed
268
+ for 'printf' family of functions, so that 'printf ("%Qe", 1.2Q);'
269
+ etc. works too.
270
+
271
+ Example
272
+ #include <quadmath.h>
273
+ #include <stdlib.h>
274
+ #include <stdio.h>
275
+
276
+ int main ()
277
+ {
278
+ __float128 r;
279
+ int prec = 20;
280
+ int width = 46;
281
+ char buf[128];
282
+
283
+ r = 2.0q;
284
+ r = sqrtq (r);
285
+ int n = quadmath_snprintf (buf, sizeof buf, "%+-#*.20Qe", width, r);
286
+ if ((size_t) n < sizeof buf)
287
+ printf ("%s\n", buf);
288
+ /* Prints: +1.41421356237309504880e+00 */
289
+ quadmath_snprintf (buf, sizeof buf, "%Qa", r);
290
+ if ((size_t) n < sizeof buf)
291
+ printf ("%s\n", buf);
292
+ /* Prints: 0x1.6a09e667f3bcc908b2fb1366ea96p+0 */
293
+ n = quadmath_snprintf (NULL, 0, "%+-#46.*Qe", prec, r);
294
+ if (n > -1)
295
+ {
296
+ char *str = malloc (n + 1);
297
+ if (str)
298
+ {
299
+ quadmath_snprintf (str, n + 1, "%+-#46.*Qe", prec, r);
300
+ printf ("%s\n", str);
301
+ /* Prints: +1.41421356237309504880e+00 */
302
+ }
303
+ free (str);
304
+ }
305
+ return 0;
306
+ }
307
+
308
+ 
309
+ File: libquadmath.info, Node: GNU Free Documentation License, Next: Reporting Bugs, Prev: I/O Library Routines, Up: Top
310
+
311
+ GNU Free Documentation License
312
+ ******************************
313
+
314
+ Version 1.3, 3 November 2008
315
+
316
+ Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
317
+ <http://fsf.org/>
318
+
319
+ Everyone is permitted to copy and distribute verbatim copies
320
+ of this license document, but changing it is not allowed.
321
+
322
+ 0. PREAMBLE
323
+
324
+ The purpose of this License is to make a manual, textbook, or other
325
+ functional and useful document "free" in the sense of freedom: to
326
+ assure everyone the effective freedom to copy and redistribute it,
327
+ with or without modifying it, either commercially or
328
+ noncommercially. Secondarily, this License preserves for the
329
+ author and publisher a way to get credit for their work, while not
330
+ being considered responsible for modifications made by others.
331
+
332
+ This License is a kind of "copyleft", which means that derivative
333
+ works of the document must themselves be free in the same sense.
334
+ It complements the GNU General Public License, which is a copyleft
335
+ license designed for free software.
336
+
337
+ We have designed this License in order to use it for manuals for
338
+ free software, because free software needs free documentation: a
339
+ free program should come with manuals providing the same freedoms
340
+ that the software does. But this License is not limited to
341
+ software manuals; it can be used for any textual work, regardless
342
+ of subject matter or whether it is published as a printed book. We
343
+ recommend this License principally for works whose purpose is
344
+ instruction or reference.
345
+
346
+ 1. APPLICABILITY AND DEFINITIONS
347
+
348
+ This License applies to any manual or other work, in any medium,
349
+ that contains a notice placed by the copyright holder saying it can
350
+ be distributed under the terms of this License. Such a notice
351
+ grants a world-wide, royalty-free license, unlimited in duration,
352
+ to use that work under the conditions stated herein. The
353
+ "Document", below, refers to any such manual or work. Any member
354
+ of the public is a licensee, and is addressed as "you". You accept
355
+ the license if you copy, modify or distribute the work in a way
356
+ requiring permission under copyright law.
357
+
358
+ A "Modified Version" of the Document means any work containing the
359
+ Document or a portion of it, either copied verbatim, or with
360
+ modifications and/or translated into another language.
361
+
362
+ A "Secondary Section" is a named appendix or a front-matter section
363
+ of the Document that deals exclusively with the relationship of the
364
+ publishers or authors of the Document to the Document's overall
365
+ subject (or to related matters) and contains nothing that could
366
+ fall directly within that overall subject. (Thus, if the Document
367
+ is in part a textbook of mathematics, a Secondary Section may not
368
+ explain any mathematics.) The relationship could be a matter of
369
+ historical connection with the subject or with related matters, or
370
+ of legal, commercial, philosophical, ethical or political position
371
+ regarding them.
372
+
373
+ The "Invariant Sections" are certain Secondary Sections whose
374
+ titles are designated, as being those of Invariant Sections, in the
375
+ notice that says that the Document is released under this License.
376
+ If a section does not fit the above definition of Secondary then it
377
+ is not allowed to be designated as Invariant. The Document may
378
+ contain zero Invariant Sections. If the Document does not identify
379
+ any Invariant Sections then there are none.
380
+
381
+ The "Cover Texts" are certain short passages of text that are
382
+ listed, as Front-Cover Texts or Back-Cover Texts, in the notice
383
+ that says that the Document is released under this License. A
384
+ Front-Cover Text may be at most 5 words, and a Back-Cover Text may
385
+ be at most 25 words.
386
+
387
+ A "Transparent" copy of the Document means a machine-readable copy,
388
+ represented in a format whose specification is available to the
389
+ general public, that is suitable for revising the document
390
+ straightforwardly with generic text editors or (for images composed
391
+ of pixels) generic paint programs or (for drawings) some widely
392
+ available drawing editor, and that is suitable for input to text
393
+ formatters or for automatic translation to a variety of formats
394
+ suitable for input to text formatters. A copy made in an otherwise
395
+ Transparent file format whose markup, or absence of markup, has
396
+ been arranged to thwart or discourage subsequent modification by
397
+ readers is not Transparent. An image format is not Transparent if
398
+ used for any substantial amount of text. A copy that is not
399
+ "Transparent" is called "Opaque".
400
+
401
+ Examples of suitable formats for Transparent copies include plain
402
+ ASCII without markup, Texinfo input format, LaTeX input format,
403
+ SGML or XML using a publicly available DTD, and standard-conforming
404
+ simple HTML, PostScript or PDF designed for human modification.
405
+ Examples of transparent image formats include PNG, XCF and JPG.
406
+ Opaque formats include proprietary formats that can be read and
407
+ edited only by proprietary word processors, SGML or XML for which
408
+ the DTD and/or processing tools are not generally available, and
409
+ the machine-generated HTML, PostScript or PDF produced by some word
410
+ processors for output purposes only.
411
+
412
+ The "Title Page" means, for a printed book, the title page itself,
413
+ plus such following pages as are needed to hold, legibly, the
414
+ material this License requires to appear in the title page. For
415
+ works in formats which do not have any title page as such, "Title
416
+ Page" means the text near the most prominent appearance of the
417
+ work's title, preceding the beginning of the body of the text.
418
+
419
+ The "publisher" means any person or entity that distributes copies
420
+ of the Document to the public.
421
+
422
+ A section "Entitled XYZ" means a named subunit of the Document
423
+ whose title either is precisely XYZ or contains XYZ in parentheses
424
+ following text that translates XYZ in another language. (Here XYZ
425
+ stands for a specific section name mentioned below, such as
426
+ "Acknowledgements", "Dedications", "Endorsements", or "History".)
427
+ To "Preserve the Title" of such a section when you modify the
428
+ Document means that it remains a section "Entitled XYZ" according
429
+ to this definition.
430
+
431
+ The Document may include Warranty Disclaimers next to the notice
432
+ which states that this License applies to the Document. These
433
+ Warranty Disclaimers are considered to be included by reference in
434
+ this License, but only as regards disclaiming warranties: any other
435
+ implication that these Warranty Disclaimers may have is void and
436
+ has no effect on the meaning of this License.
437
+
438
+ 2. VERBATIM COPYING
439
+
440
+ You may copy and distribute the Document in any medium, either
441
+ commercially or noncommercially, provided that this License, the
442
+ copyright notices, and the license notice saying this License
443
+ applies to the Document are reproduced in all copies, and that you
444
+ add no other conditions whatsoever to those of this License. You
445
+ may not use technical measures to obstruct or control the reading
446
+ or further copying of the copies you make or distribute. However,
447
+ you may accept compensation in exchange for copies. If you
448
+ distribute a large enough number of copies you must also follow the
449
+ conditions in section 3.
450
+
451
+ You may also lend copies, under the same conditions stated above,
452
+ and you may publicly display copies.
453
+
454
+ 3. COPYING IN QUANTITY
455
+
456
+ If you publish printed copies (or copies in media that commonly
457
+ have printed covers) of the Document, numbering more than 100, and
458
+ the Document's license notice requires Cover Texts, you must
459
+ enclose the copies in covers that carry, clearly and legibly, all
460
+ these Cover Texts: Front-Cover Texts on the front cover, and
461
+ Back-Cover Texts on the back cover. Both covers must also clearly
462
+ and legibly identify you as the publisher of these copies. The
463
+ front cover must present the full title with all words of the title
464
+ equally prominent and visible. You may add other material on the
465
+ covers in addition. Copying with changes limited to the covers, as
466
+ long as they preserve the title of the Document and satisfy these
467
+ conditions, can be treated as verbatim copying in other respects.
468
+
469
+ If the required texts for either cover are too voluminous to fit
470
+ legibly, you should put the first ones listed (as many as fit
471
+ reasonably) on the actual cover, and continue the rest onto
472
+ adjacent pages.
473
+
474
+ If you publish or distribute Opaque copies of the Document
475
+ numbering more than 100, you must either include a machine-readable
476
+ Transparent copy along with each Opaque copy, or state in or with
477
+ each Opaque copy a computer-network location from which the general
478
+ network-using public has access to download using public-standard
479
+ network protocols a complete Transparent copy of the Document, free
480
+ of added material. If you use the latter option, you must take
481
+ reasonably prudent steps, when you begin distribution of Opaque
482
+ copies in quantity, to ensure that this Transparent copy will
483
+ remain thus accessible at the stated location until at least one
484
+ year after the last time you distribute an Opaque copy (directly or
485
+ through your agents or retailers) of that edition to the public.
486
+
487
+ It is requested, but not required, that you contact the authors of
488
+ the Document well before redistributing any large number of copies,
489
+ to give them a chance to provide you with an updated version of the
490
+ Document.
491
+
492
+ 4. MODIFICATIONS
493
+
494
+ You may copy and distribute a Modified Version of the Document
495
+ under the conditions of sections 2 and 3 above, provided that you
496
+ release the Modified Version under precisely this License, with the
497
+ Modified Version filling the role of the Document, thus licensing
498
+ distribution and modification of the Modified Version to whoever
499
+ possesses a copy of it. In addition, you must do these things in
500
+ the Modified Version:
501
+
502
+ A. Use in the Title Page (and on the covers, if any) a title
503
+ distinct from that of the Document, and from those of previous
504
+ versions (which should, if there were any, be listed in the
505
+ History section of the Document). You may use the same title
506
+ as a previous version if the original publisher of that
507
+ version gives permission.
508
+
509
+ B. List on the Title Page, as authors, one or more persons or
510
+ entities responsible for authorship of the modifications in
511
+ the Modified Version, together with at least five of the
512
+ principal authors of the Document (all of its principal
513
+ authors, if it has fewer than five), unless they release you
514
+ from this requirement.
515
+
516
+ C. State on the Title page the name of the publisher of the
517
+ Modified Version, as the publisher.
518
+
519
+ D. Preserve all the copyright notices of the Document.
520
+
521
+ E. Add an appropriate copyright notice for your modifications
522
+ adjacent to the other copyright notices.
523
+
524
+ F. Include, immediately after the copyright notices, a license
525
+ notice giving the public permission to use the Modified
526
+ Version under the terms of this License, in the form shown in
527
+ the Addendum below.
528
+
529
+ G. Preserve in that license notice the full lists of Invariant
530
+ Sections and required Cover Texts given in the Document's
531
+ license notice.
532
+
533
+ H. Include an unaltered copy of this License.
534
+
535
+ I. Preserve the section Entitled "History", Preserve its Title,
536
+ and add to it an item stating at least the title, year, new
537
+ authors, and publisher of the Modified Version as given on the
538
+ Title Page. If there is no section Entitled "History" in the
539
+ Document, create one stating the title, year, authors, and
540
+ publisher of the Document as given on its Title Page, then add
541
+ an item describing the Modified Version as stated in the
542
+ previous sentence.
543
+
544
+ J. Preserve the network location, if any, given in the Document
545
+ for public access to a Transparent copy of the Document, and
546
+ likewise the network locations given in the Document for
547
+ previous versions it was based on. These may be placed in the
548
+ "History" section. You may omit a network location for a work
549
+ that was published at least four years before the Document
550
+ itself, or if the original publisher of the version it refers
551
+ to gives permission.
552
+
553
+ K. For any section Entitled "Acknowledgements" or "Dedications",
554
+ Preserve the Title of the section, and preserve in the section
555
+ all the substance and tone of each of the contributor
556
+ acknowledgements and/or dedications given therein.
557
+
558
+ L. Preserve all the Invariant Sections of the Document, unaltered
559
+ in their text and in their titles. Section numbers or the
560
+ equivalent are not considered part of the section titles.
561
+
562
+ M. Delete any section Entitled "Endorsements". Such a section
563
+ may not be included in the Modified Version.
564
+
565
+ N. Do not retitle any existing section to be Entitled
566
+ "Endorsements" or to conflict in title with any Invariant
567
+ Section.
568
+
569
+ O. Preserve any Warranty Disclaimers.
570
+
571
+ If the Modified Version includes new front-matter sections or
572
+ appendices that qualify as Secondary Sections and contain no
573
+ material copied from the Document, you may at your option designate
574
+ some or all of these sections as invariant. To do this, add their
575
+ titles to the list of Invariant Sections in the Modified Version's
576
+ license notice. These titles must be distinct from any other
577
+ section titles.
578
+
579
+ You may add a section Entitled "Endorsements", provided it contains
580
+ nothing but endorsements of your Modified Version by various
581
+ parties--for example, statements of peer review or that the text
582
+ has been approved by an organization as the authoritative
583
+ definition of a standard.
584
+
585
+ You may add a passage of up to five words as a Front-Cover Text,
586
+ and a passage of up to 25 words as a Back-Cover Text, to the end of
587
+ the list of Cover Texts in the Modified Version. Only one passage
588
+ of Front-Cover Text and one of Back-Cover Text may be added by (or
589
+ through arrangements made by) any one entity. If the Document
590
+ already includes a cover text for the same cover, previously added
591
+ by you or by arrangement made by the same entity you are acting on
592
+ behalf of, you may not add another; but you may replace the old
593
+ one, on explicit permission from the previous publisher that added
594
+ the old one.
595
+
596
+ The author(s) and publisher(s) of the Document do not by this
597
+ License give permission to use their names for publicity for or to
598
+ assert or imply endorsement of any Modified Version.
599
+
600
+ 5. COMBINING DOCUMENTS
601
+
602
+ You may combine the Document with other documents released under
603
+ this License, under the terms defined in section 4 above for
604
+ modified versions, provided that you include in the combination all
605
+ of the Invariant Sections of all of the original documents,
606
+ unmodified, and list them all as Invariant Sections of your
607
+ combined work in its license notice, and that you preserve all
608
+ their Warranty Disclaimers.
609
+
610
+ The combined work need only contain one copy of this License, and
611
+ multiple identical Invariant Sections may be replaced with a single
612
+ copy. If there are multiple Invariant Sections with the same name
613
+ but different contents, make the title of each such section unique
614
+ by adding at the end of it, in parentheses, the name of the
615
+ original author or publisher of that section if known, or else a
616
+ unique number. Make the same adjustment to the section titles in
617
+ the list of Invariant Sections in the license notice of the
618
+ combined work.
619
+
620
+ In the combination, you must combine any sections Entitled
621
+ "History" in the various original documents, forming one section
622
+ Entitled "History"; likewise combine any sections Entitled
623
+ "Acknowledgements", and any sections Entitled "Dedications". You
624
+ must delete all sections Entitled "Endorsements."
625
+
626
+ 6. COLLECTIONS OF DOCUMENTS
627
+
628
+ You may make a collection consisting of the Document and other
629
+ documents released under this License, and replace the individual
630
+ copies of this License in the various documents with a single copy
631
+ that is included in the collection, provided that you follow the
632
+ rules of this License for verbatim copying of each of the documents
633
+ in all other respects.
634
+
635
+ You may extract a single document from such a collection, and
636
+ distribute it individually under this License, provided you insert
637
+ a copy of this License into the extracted document, and follow this
638
+ License in all other respects regarding verbatim copying of that
639
+ document.
640
+
641
+ 7. AGGREGATION WITH INDEPENDENT WORKS
642
+
643
+ A compilation of the Document or its derivatives with other
644
+ separate and independent documents or works, in or on a volume of a
645
+ storage or distribution medium, is called an "aggregate" if the
646
+ copyright resulting from the compilation is not used to limit the
647
+ legal rights of the compilation's users beyond what the individual
648
+ works permit. When the Document is included in an aggregate, this
649
+ License does not apply to the other works in the aggregate which
650
+ are not themselves derivative works of the Document.
651
+
652
+ If the Cover Text requirement of section 3 is applicable to these
653
+ copies of the Document, then if the Document is less than one half
654
+ of the entire aggregate, the Document's Cover Texts may be placed
655
+ on covers that bracket the Document within the aggregate, or the
656
+ electronic equivalent of covers if the Document is in electronic
657
+ form. Otherwise they must appear on printed covers that bracket
658
+ the whole aggregate.
659
+
660
+ 8. TRANSLATION
661
+
662
+ Translation is considered a kind of modification, so you may
663
+ distribute translations of the Document under the terms of section
664
+ 4. Replacing Invariant Sections with translations requires special
665
+ permission from their copyright holders, but you may include
666
+ translations of some or all Invariant Sections in addition to the
667
+ original versions of these Invariant Sections. You may include a
668
+ translation of this License, and all the license notices in the
669
+ Document, and any Warranty Disclaimers, provided that you also
670
+ include the original English version of this License and the
671
+ original versions of those notices and disclaimers. In case of a
672
+ disagreement between the translation and the original version of
673
+ this License or a notice or disclaimer, the original version will
674
+ prevail.
675
+
676
+ If a section in the Document is Entitled "Acknowledgements",
677
+ "Dedications", or "History", the requirement (section 4) to
678
+ Preserve its Title (section 1) will typically require changing the
679
+ actual title.
680
+
681
+ 9. TERMINATION
682
+
683
+ You may not copy, modify, sublicense, or distribute the Document
684
+ except as expressly provided under this License. Any attempt
685
+ otherwise to copy, modify, sublicense, or distribute it is void,
686
+ and will automatically terminate your rights under this License.
687
+
688
+ However, if you cease all violation of this License, then your
689
+ license from a particular copyright holder is reinstated (a)
690
+ provisionally, unless and until the copyright holder explicitly and
691
+ finally terminates your license, and (b) permanently, if the
692
+ copyright holder fails to notify you of the violation by some
693
+ reasonable means prior to 60 days after the cessation.
694
+
695
+ Moreover, your license from a particular copyright holder is
696
+ reinstated permanently if the copyright holder notifies you of the
697
+ violation by some reasonable means, this is the first time you have
698
+ received notice of violation of this License (for any work) from
699
+ that copyright holder, and you cure the violation prior to 30 days
700
+ after your receipt of the notice.
701
+
702
+ Termination of your rights under this section does not terminate
703
+ the licenses of parties who have received copies or rights from you
704
+ under this License. If your rights have been terminated and not
705
+ permanently reinstated, receipt of a copy of some or all of the
706
+ same material does not give you any rights to use it.
707
+
708
+ 10. FUTURE REVISIONS OF THIS LICENSE
709
+
710
+ The Free Software Foundation may publish new, revised versions of
711
+ the GNU Free Documentation License from time to time. Such new
712
+ versions will be similar in spirit to the present version, but may
713
+ differ in detail to address new problems or concerns. See
714
+ <http://www.gnu.org/copyleft/>.
715
+
716
+ Each version of the License is given a distinguishing version
717
+ number. If the Document specifies that a particular numbered
718
+ version of this License "or any later version" applies to it, you
719
+ have the option of following the terms and conditions either of
720
+ that specified version or of any later version that has been
721
+ published (not as a draft) by the Free Software Foundation. If the
722
+ Document does not specify a version number of this License, you may
723
+ choose any version ever published (not as a draft) by the Free
724
+ Software Foundation. If the Document specifies that a proxy can
725
+ decide which future versions of this License can be used, that
726
+ proxy's public statement of acceptance of a version permanently
727
+ authorizes you to choose that version for the Document.
728
+
729
+ 11. RELICENSING
730
+
731
+ "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
732
+ World Wide Web server that publishes copyrightable works and also
733
+ provides prominent facilities for anybody to edit those works. A
734
+ public wiki that anybody can edit is an example of such a server.
735
+ A "Massive Multiauthor Collaboration" (or "MMC") contained in the
736
+ site means any set of copyrightable works thus published on the MMC
737
+ site.
738
+
739
+ "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
740
+ license published by Creative Commons Corporation, a not-for-profit
741
+ corporation with a principal place of business in San Francisco,
742
+ California, as well as future copyleft versions of that license
743
+ published by that same organization.
744
+
745
+ "Incorporate" means to publish or republish a Document, in whole or
746
+ in part, as part of another Document.
747
+
748
+ An MMC is "eligible for relicensing" if it is licensed under this
749
+ License, and if all works that were first published under this
750
+ License somewhere other than this MMC, and subsequently
751
+ incorporated in whole or in part into the MMC, (1) had no cover
752
+ texts or invariant sections, and (2) were thus incorporated prior
753
+ to November 1, 2008.
754
+
755
+ The operator of an MMC Site may republish an MMC contained in the
756
+ site under CC-BY-SA on the same site at any time before August 1,
757
+ 2009, provided the MMC is eligible for relicensing.
758
+
759
+ ADDENDUM: How to use this License for your documents
760
+ ====================================================
761
+
762
+ To use this License in a document you have written, include a copy of
763
+ the License in the document and put the following copyright and license
764
+ notices just after the title page:
765
+
766
+ Copyright (C) YEAR YOUR NAME.
767
+ Permission is granted to copy, distribute and/or modify this document
768
+ under the terms of the GNU Free Documentation License, Version 1.3
769
+ or any later version published by the Free Software Foundation;
770
+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
771
+ Texts. A copy of the license is included in the section entitled ``GNU
772
+ Free Documentation License''.
773
+
774
+ If you have Invariant Sections, Front-Cover Texts and Back-Cover
775
+ Texts, replace the "with...Texts." line with this:
776
+
777
+ with the Invariant Sections being LIST THEIR TITLES, with
778
+ the Front-Cover Texts being LIST, and with the Back-Cover Texts
779
+ being LIST.
780
+
781
+ If you have Invariant Sections without Cover Texts, or some other
782
+ combination of the three, merge those two alternatives to suit the
783
+ situation.
784
+
785
+ If your document contains nontrivial examples of program code, we
786
+ recommend releasing these examples in parallel under your choice of free
787
+ software license, such as the GNU General Public License, to permit
788
+ their use in free software.
789
+
790
+ 
791
+ File: libquadmath.info, Node: Reporting Bugs, Prev: GNU Free Documentation License, Up: Top
792
+
793
+ 4 Reporting Bugs
794
+ ****************
795
+
796
+ Bugs in the GCC Quad-Precision Math Library implementation should be
797
+ reported via <https://gcc.gnu.org/bugs/>.
798
+
799
+
800
+ 
801
+ Tag Table:
802
+ Node: Top1633
803
+ Node: Typedef and constants2367
804
+ Node: Math Library Routines3786
805
+ Node: I/O Library Routines7623
806
+ Node: strtoflt1287948
807
+ Node: quadmath_snprintf8708
808
+ Node: GNU Free Documentation License10918
809
+ Node: Reporting Bugs36065
810
+ 
811
+ End Tag Table
812
+
813
+ 
814
+ Local Variables:
815
+ coding: utf-8
816
+ End:
llava_next/share/info/readline.info ADDED
The diff for this file is too large to render. See raw diff
 
llava_next/share/info/rluserman.info ADDED
@@ -0,0 +1,2087 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is rluserman.info, produced by makeinfo version 6.8 from
2
+ rluserman.texi.
3
+
4
+ This manual describes the end user interface of the GNU Readline Library
5
+ (version 8.2, 19 September 2022), a library which aids in the
6
+ consistency of user interface across discrete programs which provide a
7
+ command line interface.
8
+
9
+ Copyright (C) 1988-2022 Free Software Foundation, Inc.
10
+
11
+ Permission is granted to copy, distribute and/or modify this
12
+ document under the terms of the GNU Free Documentation License,
13
+ Version 1.3 or any later version published by the Free Software
14
+ Foundation; with no Invariant Sections, no Front-Cover Texts, and
15
+ no Back-Cover Texts. A copy of the license is included in the
16
+ section entitled "GNU Free Documentation License".
17
+
18
+ INFO-DIR-SECTION Libraries
19
+ START-INFO-DIR-ENTRY
20
+ * RLuserman: (rluserman). The GNU readline library User's Manual.
21
+ END-INFO-DIR-ENTRY
22
+
23
+ 
24
+ File: rluserman.info, Node: Top, Next: Command Line Editing, Up: (dir)
25
+
26
+ GNU Readline Library
27
+ ********************
28
+
29
+ This document describes the end user interface of the GNU Readline
30
+ Library, a utility which aids in the consistency of user interface
31
+ across discrete programs which provide a command line interface. The
32
+ Readline home page is <http://www.gnu.org/software/readline/>.
33
+
34
+ * Menu:
35
+
36
+ * Command Line Editing:: GNU Readline User's Manual.
37
+ * GNU Free Documentation License:: License for copying this manual.
38
+
39
+ 
40
+ File: rluserman.info, Node: Command Line Editing, Next: GNU Free Documentation License, Prev: Top, Up: Top
41
+
42
+ 1 Command Line Editing
43
+ **********************
44
+
45
+ This chapter describes the basic features of the GNU command line
46
+ editing interface.
47
+
48
+ * Menu:
49
+
50
+ * Introduction and Notation:: Notation used in this text.
51
+ * Readline Interaction:: The minimum set of commands for editing a line.
52
+ * Readline Init File:: Customizing Readline from a user's view.
53
+ * Bindable Readline Commands:: A description of most of the Readline commands
54
+ available for binding
55
+ * Readline vi Mode:: A short description of how to make Readline
56
+ behave like the vi editor.
57
+
58
+ 
59
+ File: rluserman.info, Node: Introduction and Notation, Next: Readline Interaction, Up: Command Line Editing
60
+
61
+ 1.1 Introduction to Line Editing
62
+ ================================
63
+
64
+ The following paragraphs describe the notation used to represent
65
+ keystrokes.
66
+
67
+ The text 'C-k' is read as 'Control-K' and describes the character
68
+ produced when the <k> key is pressed while the Control key is depressed.
69
+
70
+ The text 'M-k' is read as 'Meta-K' and describes the character
71
+ produced when the Meta key (if you have one) is depressed, and the <k>
72
+ key is pressed. The Meta key is labeled <ALT> on many keyboards. On
73
+ keyboards with two keys labeled <ALT> (usually to either side of the
74
+ space bar), the <ALT> on the left side is generally set to work as a
75
+ Meta key. The <ALT> key on the right may also be configured to work as
76
+ a Meta key or may be configured as some other modifier, such as a
77
+ Compose key for typing accented characters.
78
+
79
+ If you do not have a Meta or <ALT> key, or another key working as a
80
+ Meta key, the identical keystroke can be generated by typing <ESC>
81
+ _first_, and then typing <k>. Either process is known as "metafying"
82
+ the <k> key.
83
+
84
+ The text 'M-C-k' is read as 'Meta-Control-k' and describes the
85
+ character produced by "metafying" 'C-k'.
86
+
87
+ In addition, several keys have their own names. Specifically, <DEL>,
88
+ <ESC>, <LFD>, <SPC>, <RET>, and <TAB> all stand for themselves when seen
89
+ in this text, or in an init file (*note Readline Init File::). If your
90
+ keyboard lacks a <LFD> key, typing <C-j> will produce the desired
91
+ character. The <RET> key may be labeled <Return> or <Enter> on some
92
+ keyboards.
93
+
94
+ 
95
+ File: rluserman.info, Node: Readline Interaction, Next: Readline Init File, Prev: Introduction and Notation, Up: Command Line Editing
96
+
97
+ 1.2 Readline Interaction
98
+ ========================
99
+
100
+ Often during an interactive session you type in a long line of text,
101
+ only to notice that the first word on the line is misspelled. The
102
+ Readline library gives you a set of commands for manipulating the text
103
+ as you type it in, allowing you to just fix your typo, and not forcing
104
+ you to retype the majority of the line. Using these editing commands,
105
+ you move the cursor to the place that needs correction, and delete or
106
+ insert the text of the corrections. Then, when you are satisfied with
107
+ the line, you simply press <RET>. You do not have to be at the end of
108
+ the line to press <RET>; the entire line is accepted regardless of the
109
+ location of the cursor within the line.
110
+
111
+ * Menu:
112
+
113
+ * Readline Bare Essentials:: The least you need to know about Readline.
114
+ * Readline Movement Commands:: Moving about the input line.
115
+ * Readline Killing Commands:: How to delete text, and how to get it back!
116
+ * Readline Arguments:: Giving numeric arguments to commands.
117
+ * Searching:: Searching through previous lines.
118
+
119
+ 
120
+ File: rluserman.info, Node: Readline Bare Essentials, Next: Readline Movement Commands, Up: Readline Interaction
121
+
122
+ 1.2.1 Readline Bare Essentials
123
+ ------------------------------
124
+
125
+ In order to enter characters into the line, simply type them. The typed
126
+ character appears where the cursor was, and then the cursor moves one
127
+ space to the right. If you mistype a character, you can use your erase
128
+ character to back up and delete the mistyped character.
129
+
130
+ Sometimes you may mistype a character, and not notice the error until
131
+ you have typed several other characters. In that case, you can type
132
+ 'C-b' to move the cursor to the left, and then correct your mistake.
133
+ Afterwards, you can move the cursor to the right with 'C-f'.
134
+
135
+ When you add text in the middle of a line, you will notice that
136
+ characters to the right of the cursor are 'pushed over' to make room for
137
+ the text that you have inserted. Likewise, when you delete text behind
138
+ the cursor, characters to the right of the cursor are 'pulled back' to
139
+ fill in the blank space created by the removal of the text. A list of
140
+ the bare essentials for editing the text of an input line follows.
141
+
142
+ 'C-b'
143
+ Move back one character.
144
+ 'C-f'
145
+ Move forward one character.
146
+ <DEL> or <Backspace>
147
+ Delete the character to the left of the cursor.
148
+ 'C-d'
149
+ Delete the character underneath the cursor.
150
+ Printing characters
151
+ Insert the character into the line at the cursor.
152
+ 'C-_' or 'C-x C-u'
153
+ Undo the last editing command. You can undo all the way back to an
154
+ empty line.
155
+
156
+ (Depending on your configuration, the <Backspace> key might be set to
157
+ delete the character to the left of the cursor and the <DEL> key set to
158
+ delete the character underneath the cursor, like 'C-d', rather than the
159
+ character to the left of the cursor.)
160
+
161
+ 
162
+ File: rluserman.info, Node: Readline Movement Commands, Next: Readline Killing Commands, Prev: Readline Bare Essentials, Up: Readline Interaction
163
+
164
+ 1.2.2 Readline Movement Commands
165
+ --------------------------------
166
+
167
+ The above table describes the most basic keystrokes that you need in
168
+ order to do editing of the input line. For your convenience, many other
169
+ commands have been added in addition to 'C-b', 'C-f', 'C-d', and <DEL>.
170
+ Here are some commands for moving more rapidly about the line.
171
+
172
+ 'C-a'
173
+ Move to the start of the line.
174
+ 'C-e'
175
+ Move to the end of the line.
176
+ 'M-f'
177
+ Move forward a word, where a word is composed of letters and
178
+ digits.
179
+ 'M-b'
180
+ Move backward a word.
181
+ 'C-l'
182
+ Clear the screen, reprinting the current line at the top.
183
+
184
+ Notice how 'C-f' moves forward a character, while 'M-f' moves forward
185
+ a word. It is a loose convention that control keystrokes operate on
186
+ characters while meta keystrokes operate on words.
187
+
188
+ 
189
+ File: rluserman.info, Node: Readline Killing Commands, Next: Readline Arguments, Prev: Readline Movement Commands, Up: Readline Interaction
190
+
191
+ 1.2.3 Readline Killing Commands
192
+ -------------------------------
193
+
194
+ "Killing" text means to delete the text from the line, but to save it
195
+ away for later use, usually by "yanking" (re-inserting) it back into the
196
+ line. ('Cut' and 'paste' are more recent jargon for 'kill' and 'yank'.)
197
+
198
+ If the description for a command says that it 'kills' text, then you
199
+ can be sure that you can get the text back in a different (or the same)
200
+ place later.
201
+
202
+ When you use a kill command, the text is saved in a "kill-ring". Any
203
+ number of consecutive kills save all of the killed text together, so
204
+ that when you yank it back, you get it all. The kill ring is not line
205
+ specific; the text that you killed on a previously typed line is
206
+ available to be yanked back later, when you are typing another line.
207
+
208
+ Here is the list of commands for killing text.
209
+
210
+ 'C-k'
211
+ Kill the text from the current cursor position to the end of the
212
+ line.
213
+
214
+ 'M-d'
215
+ Kill from the cursor to the end of the current word, or, if between
216
+ words, to the end of the next word. Word boundaries are the same
217
+ as those used by 'M-f'.
218
+
219
+ 'M-<DEL>'
220
+ Kill from the cursor to the start of the current word, or, if
221
+ between words, to the start of the previous word. Word boundaries
222
+ are the same as those used by 'M-b'.
223
+
224
+ 'C-w'
225
+ Kill from the cursor to the previous whitespace. This is different
226
+ than 'M-<DEL>' because the word boundaries differ.
227
+
228
+ Here is how to "yank" the text back into the line. Yanking means to
229
+ copy the most-recently-killed text from the kill buffer.
230
+
231
+ 'C-y'
232
+ Yank the most recently killed text back into the buffer at the
233
+ cursor.
234
+
235
+ 'M-y'
236
+ Rotate the kill-ring, and yank the new top. You can only do this
237
+ if the prior command is 'C-y' or 'M-y'.
238
+
239
+ 
240
+ File: rluserman.info, Node: Readline Arguments, Next: Searching, Prev: Readline Killing Commands, Up: Readline Interaction
241
+
242
+ 1.2.4 Readline Arguments
243
+ ------------------------
244
+
245
+ You can pass numeric arguments to Readline commands. Sometimes the
246
+ argument acts as a repeat count, other times it is the sign of the
247
+ argument that is significant. If you pass a negative argument to a
248
+ command which normally acts in a forward direction, that command will
249
+ act in a backward direction. For example, to kill text back to the
250
+ start of the line, you might type 'M-- C-k'.
251
+
252
+ The general way to pass numeric arguments to a command is to type
253
+ meta digits before the command. If the first 'digit' typed is a minus
254
+ sign ('-'), then the sign of the argument will be negative. Once you
255
+ have typed one meta digit to get the argument started, you can type the
256
+ remainder of the digits, and then the command. For example, to give the
257
+ 'C-d' command an argument of 10, you could type 'M-1 0 C-d', which will
258
+ delete the next ten characters on the input line.
259
+
260
+ 
261
+ File: rluserman.info, Node: Searching, Prev: Readline Arguments, Up: Readline Interaction
262
+
263
+ 1.2.5 Searching for Commands in the History
264
+ -------------------------------------------
265
+
266
+ Readline provides commands for searching through the command history for
267
+ lines containing a specified string. There are two search modes:
268
+ "incremental" and "non-incremental".
269
+
270
+ Incremental searches begin before the user has finished typing the
271
+ search string. As each character of the search string is typed,
272
+ Readline displays the next entry from the history matching the string
273
+ typed so far. An incremental search requires only as many characters as
274
+ needed to find the desired history entry. To search backward in the
275
+ history for a particular string, type 'C-r'. Typing 'C-s' searches
276
+ forward through the history. The characters present in the value of the
277
+ 'isearch-terminators' variable are used to terminate an incremental
278
+ search. If that variable has not been assigned a value, the <ESC> and
279
+ 'C-J' characters will terminate an incremental search. 'C-g' will abort
280
+ an incremental search and restore the original line. When the search is
281
+ terminated, the history entry containing the search string becomes the
282
+ current line.
283
+
284
+ To find other matching entries in the history list, type 'C-r' or
285
+ 'C-s' as appropriate. This will search backward or forward in the
286
+ history for the next entry matching the search string typed so far. Any
287
+ other key sequence bound to a Readline command will terminate the search
288
+ and execute that command. For instance, a <RET> will terminate the
289
+ search and accept the line, thereby executing the command from the
290
+ history list. A movement command will terminate the search, make the
291
+ last line found the current line, and begin editing.
292
+
293
+ Readline remembers the last incremental search string. If two 'C-r's
294
+ are typed without any intervening characters defining a new search
295
+ string, any remembered search string is used.
296
+
297
+ Non-incremental searches read the entire search string before
298
+ starting to search for matching history lines. The search string may be
299
+ typed by the user or be part of the contents of the current line.
300
+
301
+ 
302
+ File: rluserman.info, Node: Readline Init File, Next: Bindable Readline Commands, Prev: Readline Interaction, Up: Command Line Editing
303
+
304
+ 1.3 Readline Init File
305
+ ======================
306
+
307
+ Although the Readline library comes with a set of Emacs-like keybindings
308
+ installed by default, it is possible to use a different set of
309
+ keybindings. Any user can customize programs that use Readline by
310
+ putting commands in an "inputrc" file, conventionally in their home
311
+ directory. The name of this file is taken from the value of the
312
+ environment variable 'INPUTRC'. If that variable is unset, the default
313
+ is '~/.inputrc'. If that file does not exist or cannot be read, the
314
+ ultimate default is '/etc/inputrc'.
315
+
316
+ When a program which uses the Readline library starts up, the init
317
+ file is read, and the key bindings are set.
318
+
319
+ In addition, the 'C-x C-r' command re-reads this init file, thus
320
+ incorporating any changes that you might have made to it.
321
+
322
+ * Menu:
323
+
324
+ * Readline Init File Syntax:: Syntax for the commands in the inputrc file.
325
+
326
+ * Conditional Init Constructs:: Conditional key bindings in the inputrc file.
327
+
328
+ * Sample Init File:: An example inputrc file.
329
+
330
+ 
331
+ File: rluserman.info, Node: Readline Init File Syntax, Next: Conditional Init Constructs, Up: Readline Init File
332
+
333
+ 1.3.1 Readline Init File Syntax
334
+ -------------------------------
335
+
336
+ There are only a few basic constructs allowed in the Readline init file.
337
+ Blank lines are ignored. Lines beginning with a '#' are comments.
338
+ Lines beginning with a '$' indicate conditional constructs (*note
339
+ Conditional Init Constructs::). Other lines denote variable settings
340
+ and key bindings.
341
+
342
+ Variable Settings
343
+ You can modify the run-time behavior of Readline by altering the
344
+ values of variables in Readline using the 'set' command within the
345
+ init file. The syntax is simple:
346
+
347
+ set VARIABLE VALUE
348
+
349
+ Here, for example, is how to change from the default Emacs-like key
350
+ binding to use 'vi' line editing commands:
351
+
352
+ set editing-mode vi
353
+
354
+ Variable names and values, where appropriate, are recognized
355
+ without regard to case. Unrecognized variable names are ignored.
356
+
357
+ Boolean variables (those that can be set to on or off) are set to
358
+ on if the value is null or empty, ON (case-insensitive), or 1. Any
359
+ other value results in the variable being set to off.
360
+
361
+ A great deal of run-time behavior is changeable with the following
362
+ variables.
363
+
364
+ 'active-region-start-color'
365
+ A string variable that controls the text color and background
366
+ when displaying the text in the active region (see the
367
+ description of 'enable-active-region' below). This string
368
+ must not take up any physical character positions on the
369
+ display, so it should consist only of terminal escape
370
+ sequences. It is output to the terminal before displaying the
371
+ text in the active region. This variable is reset to the
372
+ default value whenever the terminal type changes. The default
373
+ value is the string that puts the terminal in standout mode,
374
+ as obtained from the terminal's terminfo description. A
375
+ sample value might be '\e[01;33m'.
376
+
377
+ 'active-region-end-color'
378
+ A string variable that "undoes" the effects of
379
+ 'active-region-start-color' and restores "normal" terminal
380
+ display appearance after displaying text in the active region.
381
+ This string must not take up any physical character positions
382
+ on the display, so it should consist only of terminal escape
383
+ sequences. It is output to the terminal after displaying the
384
+ text in the active region. This variable is reset to the
385
+ default value whenever the terminal type changes. The default
386
+ value is the string that restores the terminal from standout
387
+ mode, as obtained from the terminal's terminfo description. A
388
+ sample value might be '\e[0m'.
389
+
390
+ 'bell-style'
391
+ Controls what happens when Readline wants to ring the terminal
392
+ bell. If set to 'none', Readline never rings the bell. If
393
+ set to 'visible', Readline uses a visible bell if one is
394
+ available. If set to 'audible' (the default), Readline
395
+ attempts to ring the terminal's bell.
396
+
397
+ 'bind-tty-special-chars'
398
+ If set to 'on' (the default), Readline attempts to bind the
399
+ control characters treated specially by the kernel's terminal
400
+ driver to their Readline equivalents.
401
+
402
+ 'blink-matching-paren'
403
+ If set to 'on', Readline attempts to briefly move the cursor
404
+ to an opening parenthesis when a closing parenthesis is
405
+ inserted. The default is 'off'.
406
+
407
+ 'colored-completion-prefix'
408
+ If set to 'on', when listing completions, Readline displays
409
+ the common prefix of the set of possible completions using a
410
+ different color. The color definitions are taken from the
411
+ value of the 'LS_COLORS' environment variable. If there is a
412
+ color definition in 'LS_COLORS' for the custom suffix
413
+ 'readline-colored-completion-prefix', Readline uses this color
414
+ for the common prefix instead of its default. The default is
415
+ 'off'.
416
+
417
+ 'colored-stats'
418
+ If set to 'on', Readline displays possible completions using
419
+ different colors to indicate their file type. The color
420
+ definitions are taken from the value of the 'LS_COLORS'
421
+ environment variable. The default is 'off'.
422
+
423
+ 'comment-begin'
424
+ The string to insert at the beginning of the line when the
425
+ 'insert-comment' command is executed. The default value is
426
+ '"#"'.
427
+
428
+ 'completion-display-width'
429
+ The number of screen columns used to display possible matches
430
+ when performing completion. The value is ignored if it is
431
+ less than 0 or greater than the terminal screen width. A
432
+ value of 0 will cause matches to be displayed one per line.
433
+ The default value is -1.
434
+
435
+ 'completion-ignore-case'
436
+ If set to 'on', Readline performs filename matching and
437
+ completion in a case-insensitive fashion. The default value
438
+ is 'off'.
439
+
440
+ 'completion-map-case'
441
+ If set to 'on', and COMPLETION-IGNORE-CASE is enabled,
442
+ Readline treats hyphens ('-') and underscores ('_') as
443
+ equivalent when performing case-insensitive filename matching
444
+ and completion. The default value is 'off'.
445
+
446
+ 'completion-prefix-display-length'
447
+ The length in characters of the common prefix of a list of
448
+ possible completions that is displayed without modification.
449
+ When set to a value greater than zero, common prefixes longer
450
+ than this value are replaced with an ellipsis when displaying
451
+ possible completions.
452
+
453
+ 'completion-query-items'
454
+ The number of possible completions that determines when the
455
+ user is asked whether the list of possibilities should be
456
+ displayed. If the number of possible completions is greater
457
+ than or equal to this value, Readline will ask whether or not
458
+ the user wishes to view them; otherwise, they are simply
459
+ listed. This variable must be set to an integer value greater
460
+ than or equal to zero. A zero value means Readline should
461
+ never ask; negative values are treated as zero. The default
462
+ limit is '100'.
463
+
464
+ 'convert-meta'
465
+ If set to 'on', Readline will convert characters with the
466
+ eighth bit set to an ASCII key sequence by stripping the
467
+ eighth bit and prefixing an <ESC> character, converting them
468
+ to a meta-prefixed key sequence. The default value is 'on',
469
+ but will be set to 'off' if the locale is one that contains
470
+ eight-bit characters. This variable is dependent on the
471
+ 'LC_CTYPE' locale category, and may change if the locale is
472
+ changed.
473
+
474
+ 'disable-completion'
475
+ If set to 'On', Readline will inhibit word completion.
476
+ Completion characters will be inserted into the line as if
477
+ they had been mapped to 'self-insert'. The default is 'off'.
478
+
479
+ 'echo-control-characters'
480
+ When set to 'on', on operating systems that indicate they
481
+ support it, Readline echoes a character corresponding to a
482
+ signal generated from the keyboard. The default is 'on'.
483
+
484
+ 'editing-mode'
485
+ The 'editing-mode' variable controls which default set of key
486
+ bindings is used. By default, Readline starts up in Emacs
487
+ editing mode, where the keystrokes are most similar to Emacs.
488
+ This variable can be set to either 'emacs' or 'vi'.
489
+
490
+ 'emacs-mode-string'
491
+ If the SHOW-MODE-IN-PROMPT variable is enabled, this string is
492
+ displayed immediately before the last line of the primary
493
+ prompt when emacs editing mode is active. The value is
494
+ expanded like a key binding, so the standard set of meta- and
495
+ control prefixes and backslash escape sequences is available.
496
+ Use the '\1' and '\2' escapes to begin and end sequences of
497
+ non-printing characters, which can be used to embed a terminal
498
+ control sequence into the mode string. The default is '@'.
499
+
500
+ 'enable-active-region'
501
+ The "point" is the current cursor position, and "mark" refers
502
+ to a saved cursor position (*note Commands For Moving::). The
503
+ text between the point and mark is referred to as the
504
+ "region". When this variable is set to 'On', Readline allows
505
+ certain commands to designate the region as "active". When
506
+ the region is active, Readline highlights the text in the
507
+ region using the value of the 'active-region-start-color',
508
+ which defaults to the string that enables the terminal's
509
+ standout mode. The active region shows the text inserted by
510
+ bracketed-paste and any matching text found by incremental and
511
+ non-incremental history searches. The default is 'On'.
512
+
513
+ 'enable-bracketed-paste'
514
+ When set to 'On', Readline configures the terminal to insert
515
+ each paste into the editing buffer as a single string of
516
+ characters, instead of treating each character as if it had
517
+ been read from the keyboard. This is called putting the
518
+ terminal into "bracketed paste mode"; it prevents Readline
519
+ from executing any editing commands bound to key sequences
520
+ appearing in the pasted text. The default is 'On'.
521
+
522
+ 'enable-keypad'
523
+ When set to 'on', Readline will try to enable the application
524
+ keypad when it is called. Some systems need this to enable
525
+ the arrow keys. The default is 'off'.
526
+
527
+ 'enable-meta-key'
528
+ When set to 'on', Readline will try to enable any meta
529
+ modifier key the terminal claims to support when it is called.
530
+ On many terminals, the meta key is used to send eight-bit
531
+ characters. The default is 'on'.
532
+
533
+ 'expand-tilde'
534
+ If set to 'on', tilde expansion is performed when Readline
535
+ attempts word completion. The default is 'off'.
536
+
537
+ 'history-preserve-point'
538
+ If set to 'on', the history code attempts to place the point
539
+ (the current cursor position) at the same location on each
540
+ history line retrieved with 'previous-history' or
541
+ 'next-history'. The default is 'off'.
542
+
543
+ 'history-size'
544
+ Set the maximum number of history entries saved in the history
545
+ list. If set to zero, any existing history entries are
546
+ deleted and no new entries are saved. If set to a value less
547
+ than zero, the number of history entries is not limited. By
548
+ default, the number of history entries is not limited. If an
549
+ attempt is made to set HISTORY-SIZE to a non-numeric value,
550
+ the maximum number of history entries will be set to 500.
551
+
552
+ 'horizontal-scroll-mode'
553
+ This variable can be set to either 'on' or 'off'. Setting it
554
+ to 'on' means that the text of the lines being edited will
555
+ scroll horizontally on a single screen line when they are
556
+ longer than the width of the screen, instead of wrapping onto
557
+ a new screen line. This variable is automatically set to 'on'
558
+ for terminals of height 1. By default, this variable is set
559
+ to 'off'.
560
+
561
+ 'input-meta'
562
+ If set to 'on', Readline will enable eight-bit input (it will
563
+ not clear the eighth bit in the characters it reads),
564
+ regardless of what the terminal claims it can support. The
565
+ default value is 'off', but Readline will set it to 'on' if
566
+ the locale contains eight-bit characters. The name
567
+ 'meta-flag' is a synonym for this variable. This variable is
568
+ dependent on the 'LC_CTYPE' locale category, and may change if
569
+ the locale is changed.
570
+
571
+ 'isearch-terminators'
572
+ The string of characters that should terminate an incremental
573
+ search without subsequently executing the character as a
574
+ command (*note Searching::). If this variable has not been
575
+ given a value, the characters <ESC> and 'C-J' will terminate
576
+ an incremental search.
577
+
578
+ 'keymap'
579
+ Sets Readline's idea of the current keymap for key binding
580
+ commands. Built-in 'keymap' names are 'emacs',
581
+ 'emacs-standard', 'emacs-meta', 'emacs-ctlx', 'vi', 'vi-move',
582
+ 'vi-command', and 'vi-insert'. 'vi' is equivalent to
583
+ 'vi-command' ('vi-move' is also a synonym); 'emacs' is
584
+ equivalent to 'emacs-standard'. Applications may add
585
+ additional names. The default value is 'emacs'. The value of
586
+ the 'editing-mode' variable also affects the default keymap.
587
+
588
+ 'keyseq-timeout'
589
+ Specifies the duration Readline will wait for a character when
590
+ reading an ambiguous key sequence (one that can form a
591
+ complete key sequence using the input read so far, or can take
592
+ additional input to complete a longer key sequence). If no
593
+ input is received within the timeout, Readline will use the
594
+ shorter but complete key sequence. Readline uses this value
595
+ to determine whether or not input is available on the current
596
+ input source ('rl_instream' by default). The value is
597
+ specified in milliseconds, so a value of 1000 means that
598
+ Readline will wait one second for additional input. If this
599
+ variable is set to a value less than or equal to zero, or to a
600
+ non-numeric value, Readline will wait until another key is
601
+ pressed to decide which key sequence to complete. The default
602
+ value is '500'.
603
+
604
+ 'mark-directories'
605
+ If set to 'on', completed directory names have a slash
606
+ appended. The default is 'on'.
607
+
608
+ 'mark-modified-lines'
609
+ This variable, when set to 'on', causes Readline to display an
610
+ asterisk ('*') at the start of history lines which have been
611
+ modified. This variable is 'off' by default.
612
+
613
+ 'mark-symlinked-directories'
614
+ If set to 'on', completed names which are symbolic links to
615
+ directories have a slash appended (subject to the value of
616
+ 'mark-directories'). The default is 'off'.
617
+
618
+ 'match-hidden-files'
619
+ This variable, when set to 'on', causes Readline to match
620
+ files whose names begin with a '.' (hidden files) when
621
+ performing filename completion. If set to 'off', the leading
622
+ '.' must be supplied by the user in the filename to be
623
+ completed. This variable is 'on' by default.
624
+
625
+ 'menu-complete-display-prefix'
626
+ If set to 'on', menu completion displays the common prefix of
627
+ the list of possible completions (which may be empty) before
628
+ cycling through the list. The default is 'off'.
629
+
630
+ 'output-meta'
631
+ If set to 'on', Readline will display characters with the
632
+ eighth bit set directly rather than as a meta-prefixed escape
633
+ sequence. The default is 'off', but Readline will set it to
634
+ 'on' if the locale contains eight-bit characters. This
635
+ variable is dependent on the 'LC_CTYPE' locale category, and
636
+ may change if the locale is changed.
637
+
638
+ 'page-completions'
639
+ If set to 'on', Readline uses an internal 'more'-like pager to
640
+ display a screenful of possible completions at a time. This
641
+ variable is 'on' by default.
642
+
643
+ 'print-completions-horizontally'
644
+ If set to 'on', Readline will display completions with matches
645
+ sorted horizontally in alphabetical order, rather than down
646
+ the screen. The default is 'off'.
647
+
648
+ 'revert-all-at-newline'
649
+ If set to 'on', Readline will undo all changes to history
650
+ lines before returning when 'accept-line' is executed. By
651
+ default, history lines may be modified and retain individual
652
+ undo lists across calls to 'readline()'. The default is
653
+ 'off'.
654
+
655
+ 'show-all-if-ambiguous'
656
+ This alters the default behavior of the completion functions.
657
+ If set to 'on', words which have more than one possible
658
+ completion cause the matches to be listed immediately instead
659
+ of ringing the bell. The default value is 'off'.
660
+
661
+ 'show-all-if-unmodified'
662
+ This alters the default behavior of the completion functions
663
+ in a fashion similar to SHOW-ALL-IF-AMBIGUOUS. If set to
664
+ 'on', words which have more than one possible completion
665
+ without any possible partial completion (the possible
666
+ completions don't share a common prefix) cause the matches to
667
+ be listed immediately instead of ringing the bell. The
668
+ default value is 'off'.
669
+
670
+ 'show-mode-in-prompt'
671
+ If set to 'on', add a string to the beginning of the prompt
672
+ indicating the editing mode: emacs, vi command, or vi
673
+ insertion. The mode strings are user-settable (e.g.,
674
+ EMACS-MODE-STRING). The default value is 'off'.
675
+
676
+ 'skip-completed-text'
677
+ If set to 'on', this alters the default completion behavior
678
+ when inserting a single match into the line. It's only active
679
+ when performing completion in the middle of a word. If
680
+ enabled, Readline does not insert characters from the
681
+ completion that match characters after point in the word being
682
+ completed, so portions of the word following the cursor are
683
+ not duplicated. For instance, if this is enabled, attempting
684
+ completion when the cursor is after the 'e' in 'Makefile' will
685
+ result in 'Makefile' rather than 'Makefilefile', assuming
686
+ there is a single possible completion. The default value is
687
+ 'off'.
688
+
689
+ 'vi-cmd-mode-string'
690
+ If the SHOW-MODE-IN-PROMPT variable is enabled, this string is
691
+ displayed immediately before the last line of the primary
692
+ prompt when vi editing mode is active and in command mode.
693
+ The value is expanded like a key binding, so the standard set
694
+ of meta- and control prefixes and backslash escape sequences
695
+ is available. Use the '\1' and '\2' escapes to begin and end
696
+ sequences of non-printing characters, which can be used to
697
+ embed a terminal control sequence into the mode string. The
698
+ default is '(cmd)'.
699
+
700
+ 'vi-ins-mode-string'
701
+ If the SHOW-MODE-IN-PROMPT variable is enabled, this string is
702
+ displayed immediately before the last line of the primary
703
+ prompt when vi editing mode is active and in insertion mode.
704
+ The value is expanded like a key binding, so the standard set
705
+ of meta- and control prefixes and backslash escape sequences
706
+ is available. Use the '\1' and '\2' escapes to begin and end
707
+ sequences of non-printing characters, which can be used to
708
+ embed a terminal control sequence into the mode string. The
709
+ default is '(ins)'.
710
+
711
+ 'visible-stats'
712
+ If set to 'on', a character denoting a file's type is appended
713
+ to the filename when listing possible completions. The
714
+ default is 'off'.
715
+
716
+ Key Bindings
717
+ The syntax for controlling key bindings in the init file is simple.
718
+ First you need to find the name of the command that you want to
719
+ change. The following sections contain tables of the command name,
720
+ the default keybinding, if any, and a short description of what the
721
+ command does.
722
+
723
+ Once you know the name of the command, simply place on a line in
724
+ the init file the name of the key you wish to bind the command to,
725
+ a colon, and then the name of the command. There can be no space
726
+ between the key name and the colon - that will be interpreted as
727
+ part of the key name. The name of the key can be expressed in
728
+ different ways, depending on what you find most comfortable.
729
+
730
+ In addition to command names, Readline allows keys to be bound to a
731
+ string that is inserted when the key is pressed (a MACRO).
732
+
733
+ KEYNAME: FUNCTION-NAME or MACRO
734
+ KEYNAME is the name of a key spelled out in English. For
735
+ example:
736
+ Control-u: universal-argument
737
+ Meta-Rubout: backward-kill-word
738
+ Control-o: "> output"
739
+
740
+ In the example above, 'C-u' is bound to the function
741
+ 'universal-argument', 'M-DEL' is bound to the function
742
+ 'backward-kill-word', and 'C-o' is bound to run the macro
743
+ expressed on the right hand side (that is, to insert the text
744
+ '> output' into the line).
745
+
746
+ A number of symbolic character names are recognized while
747
+ processing this key binding syntax: DEL, ESC, ESCAPE, LFD,
748
+ NEWLINE, RET, RETURN, RUBOUT, SPACE, SPC, and TAB.
749
+
750
+ "KEYSEQ": FUNCTION-NAME or MACRO
751
+ KEYSEQ differs from KEYNAME above in that strings denoting an
752
+ entire key sequence can be specified, by placing the key
753
+ sequence in double quotes. Some GNU Emacs style key escapes
754
+ can be used, as in the following example, but the special
755
+ character names are not recognized.
756
+
757
+ "\C-u": universal-argument
758
+ "\C-x\C-r": re-read-init-file
759
+ "\e[11~": "Function Key 1"
760
+
761
+ In the above example, 'C-u' is again bound to the function
762
+ 'universal-argument' (just as it was in the first example),
763
+ ''C-x' 'C-r'' is bound to the function 're-read-init-file',
764
+ and '<ESC> <[> <1> <1> <~>' is bound to insert the text
765
+ 'Function Key 1'.
766
+
767
+ The following GNU Emacs style escape sequences are available when
768
+ specifying key sequences:
769
+
770
+ '\C-'
771
+ control prefix
772
+ '\M-'
773
+ meta prefix
774
+ '\e'
775
+ an escape character
776
+ '\\'
777
+ backslash
778
+ '\"'
779
+ <">, a double quotation mark
780
+ '\''
781
+ <'>, a single quote or apostrophe
782
+
783
+ In addition to the GNU Emacs style escape sequences, a second set
784
+ of backslash escapes is available:
785
+
786
+ '\a'
787
+ alert (bell)
788
+ '\b'
789
+ backspace
790
+ '\d'
791
+ delete
792
+ '\f'
793
+ form feed
794
+ '\n'
795
+ newline
796
+ '\r'
797
+ carriage return
798
+ '\t'
799
+ horizontal tab
800
+ '\v'
801
+ vertical tab
802
+ '\NNN'
803
+ the eight-bit character whose value is the octal value NNN
804
+ (one to three digits)
805
+ '\xHH'
806
+ the eight-bit character whose value is the hexadecimal value
807
+ HH (one or two hex digits)
808
+
809
+ When entering the text of a macro, single or double quotes must be
810
+ used to indicate a macro definition. Unquoted text is assumed to
811
+ be a function name. In the macro body, the backslash escapes
812
+ described above are expanded. Backslash will quote any other
813
+ character in the macro text, including '"' and '''. For example,
814
+ the following binding will make ''C-x' \' insert a single '\' into
815
+ the line:
816
+ "\C-x\\": "\\"
817
+
818
+ 
819
+ File: rluserman.info, Node: Conditional Init Constructs, Next: Sample Init File, Prev: Readline Init File Syntax, Up: Readline Init File
820
+
821
+ 1.3.2 Conditional Init Constructs
822
+ ---------------------------------
823
+
824
+ Readline implements a facility similar in spirit to the conditional
825
+ compilation features of the C preprocessor which allows key bindings and
826
+ variable settings to be performed as the result of tests. There are
827
+ four parser directives used.
828
+
829
+ '$if'
830
+ The '$if' construct allows bindings to be made based on the editing
831
+ mode, the terminal being used, or the application using Readline.
832
+ The text of the test, after any comparison operator, extends to the
833
+ end of the line; unless otherwise noted, no characters are required
834
+ to isolate it.
835
+
836
+ 'mode'
837
+ The 'mode=' form of the '$if' directive is used to test
838
+ whether Readline is in 'emacs' or 'vi' mode. This may be used
839
+ in conjunction with the 'set keymap' command, for instance, to
840
+ set bindings in the 'emacs-standard' and 'emacs-ctlx' keymaps
841
+ only if Readline is starting out in 'emacs' mode.
842
+
843
+ 'term'
844
+ The 'term=' form may be used to include terminal-specific key
845
+ bindings, perhaps to bind the key sequences output by the
846
+ terminal's function keys. The word on the right side of the
847
+ '=' is tested against both the full name of the terminal and
848
+ the portion of the terminal name before the first '-'. This
849
+ allows 'sun' to match both 'sun' and 'sun-cmd', for instance.
850
+
851
+ 'version'
852
+ The 'version' test may be used to perform comparisons against
853
+ specific Readline versions. The 'version' expands to the
854
+ current Readline version. The set of comparison operators
855
+ includes '=' (and '=='), '!=', '<=', '>=', '<', and '>'. The
856
+ version number supplied on the right side of the operator
857
+ consists of a major version number, an optional decimal point,
858
+ and an optional minor version (e.g., '7.1'). If the minor
859
+ version is omitted, it is assumed to be '0'. The operator may
860
+ be separated from the string 'version' and from the version
861
+ number argument by whitespace. The following example sets a
862
+ variable if the Readline version being used is 7.0 or newer:
863
+ $if version >= 7.0
864
+ set show-mode-in-prompt on
865
+ $endif
866
+
867
+ 'application'
868
+ The APPLICATION construct is used to include
869
+ application-specific settings. Each program using the
870
+ Readline library sets the APPLICATION NAME, and you can test
871
+ for a particular value. This could be used to bind key
872
+ sequences to functions useful for a specific program. For
873
+ instance, the following command adds a key sequence that
874
+ quotes the current or previous word in Bash:
875
+ $if Bash
876
+ # Quote the current or previous word
877
+ "\C-xq": "\eb\"\ef\""
878
+ $endif
879
+
880
+ 'variable'
881
+ The VARIABLE construct provides simple equality tests for
882
+ Readline variables and values. The permitted comparison
883
+ operators are '=', '==', and '!='. The variable name must be
884
+ separated from the comparison operator by whitespace; the
885
+ operator may be separated from the value on the right hand
886
+ side by whitespace. Both string and boolean variables may be
887
+ tested. Boolean variables must be tested against the values
888
+ ON and OFF. The following example is equivalent to the
889
+ 'mode=emacs' test described above:
890
+ $if editing-mode == emacs
891
+ set show-mode-in-prompt on
892
+ $endif
893
+
894
+ '$endif'
895
+ This command, as seen in the previous example, terminates an '$if'
896
+ command.
897
+
898
+ '$else'
899
+ Commands in this branch of the '$if' directive are executed if the
900
+ test fails.
901
+
902
+ '$include'
903
+ This directive takes a single filename as an argument and reads
904
+ commands and bindings from that file. For example, the following
905
+ directive reads from '/etc/inputrc':
906
+ $include /etc/inputrc
907
+
908
+ 
909
+ File: rluserman.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File
910
+
911
+ 1.3.3 Sample Init File
912
+ ----------------------
913
+
914
+ Here is an example of an INPUTRC file. This illustrates key binding,
915
+ variable assignment, and conditional syntax.
916
+
917
+ # This file controls the behaviour of line input editing for
918
+ # programs that use the GNU Readline library. Existing
919
+ # programs include FTP, Bash, and GDB.
920
+ #
921
+ # You can re-read the inputrc file with C-x C-r.
922
+ # Lines beginning with '#' are comments.
923
+ #
924
+ # First, include any system-wide bindings and variable
925
+ # assignments from /etc/Inputrc
926
+ $include /etc/Inputrc
927
+
928
+ #
929
+ # Set various bindings for emacs mode.
930
+
931
+ set editing-mode emacs
932
+
933
+ $if mode=emacs
934
+
935
+ Meta-Control-h: backward-kill-word Text after the function name is ignored
936
+
937
+ #
938
+ # Arrow keys in keypad mode
939
+ #
940
+ #"\M-OD": backward-char
941
+ #"\M-OC": forward-char
942
+ #"\M-OA": previous-history
943
+ #"\M-OB": next-history
944
+ #
945
+ # Arrow keys in ANSI mode
946
+ #
947
+ "\M-[D": backward-char
948
+ "\M-[C": forward-char
949
+ "\M-[A": previous-history
950
+ "\M-[B": next-history
951
+ #
952
+ # Arrow keys in 8 bit keypad mode
953
+ #
954
+ #"\M-\C-OD": backward-char
955
+ #"\M-\C-OC": forward-char
956
+ #"\M-\C-OA": previous-history
957
+ #"\M-\C-OB": next-history
958
+ #
959
+ # Arrow keys in 8 bit ANSI mode
960
+ #
961
+ #"\M-\C-[D": backward-char
962
+ #"\M-\C-[C": forward-char
963
+ #"\M-\C-[A": previous-history
964
+ #"\M-\C-[B": next-history
965
+
966
+ C-q: quoted-insert
967
+
968
+ $endif
969
+
970
+ # An old-style binding. This happens to be the default.
971
+ TAB: complete
972
+
973
+ # Macros that are convenient for shell interaction
974
+ $if Bash
975
+ # edit the path
976
+ "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f"
977
+ # prepare to type a quoted word --
978
+ # insert open and close double quotes
979
+ # and move to just after the open quote
980
+ "\C-x\"": "\"\"\C-b"
981
+ # insert a backslash (testing backslash escapes
982
+ # in sequences and macros)
983
+ "\C-x\\": "\\"
984
+ # Quote the current or previous word
985
+ "\C-xq": "\eb\"\ef\""
986
+ # Add a binding to refresh the line, which is unbound
987
+ "\C-xr": redraw-current-line
988
+ # Edit variable on current line.
989
+ "\M-\C-v": "\C-a\C-k$\C-y\M-\C-e\C-a\C-y="
990
+ $endif
991
+
992
+ # use a visible bell if one is available
993
+ set bell-style visible
994
+
995
+ # don't strip characters to 7 bits when reading
996
+ set input-meta on
997
+
998
+ # allow iso-latin1 characters to be inserted rather
999
+ # than converted to prefix-meta sequences
1000
+ set convert-meta off
1001
+
1002
+ # display characters with the eighth bit set directly
1003
+ # rather than as meta-prefixed characters
1004
+ set output-meta on
1005
+
1006
+ # if there are 150 or more possible completions for a word,
1007
+ # ask whether or not the user wants to see all of them
1008
+ set completion-query-items 150
1009
+
1010
+ # For FTP
1011
+ $if Ftp
1012
+ "\C-xg": "get \M-?"
1013
+ "\C-xt": "put \M-?"
1014
+ "\M-.": yank-last-arg
1015
+ $endif
1016
+
1017
+ 
1018
+ File: rluserman.info, Node: Bindable Readline Commands, Next: Readline vi Mode, Prev: Readline Init File, Up: Command Line Editing
1019
+
1020
+ 1.4 Bindable Readline Commands
1021
+ ==============================
1022
+
1023
+ * Menu:
1024
+
1025
+ * Commands For Moving:: Moving about the line.
1026
+ * Commands For History:: Getting at previous lines.
1027
+ * Commands For Text:: Commands for changing text.
1028
+ * Commands For Killing:: Commands for killing and yanking.
1029
+ * Numeric Arguments:: Specifying numeric arguments, repeat counts.
1030
+ * Commands For Completion:: Getting Readline to do the typing for you.
1031
+ * Keyboard Macros:: Saving and re-executing typed characters
1032
+ * Miscellaneous Commands:: Other miscellaneous commands.
1033
+
1034
+ This section describes Readline commands that may be bound to key
1035
+ sequences. Command names without an accompanying key sequence are
1036
+ unbound by default.
1037
+
1038
+ In the following descriptions, "point" refers to the current cursor
1039
+ position, and "mark" refers to a cursor position saved by the 'set-mark'
1040
+ command. The text between the point and mark is referred to as the
1041
+ "region".
1042
+
1043
+ 
1044
+ File: rluserman.info, Node: Commands For Moving, Next: Commands For History, Up: Bindable Readline Commands
1045
+
1046
+ 1.4.1 Commands For Moving
1047
+ -------------------------
1048
+
1049
+ 'beginning-of-line (C-a)'
1050
+ Move to the start of the current line.
1051
+
1052
+ 'end-of-line (C-e)'
1053
+ Move to the end of the line.
1054
+
1055
+ 'forward-char (C-f)'
1056
+ Move forward a character.
1057
+
1058
+ 'backward-char (C-b)'
1059
+ Move back a character.
1060
+
1061
+ 'forward-word (M-f)'
1062
+ Move forward to the end of the next word. Words are composed of
1063
+ letters and digits.
1064
+
1065
+ 'backward-word (M-b)'
1066
+ Move back to the start of the current or previous word. Words are
1067
+ composed of letters and digits.
1068
+
1069
+ 'previous-screen-line ()'
1070
+ Attempt to move point to the same physical screen column on the
1071
+ previous physical screen line. This will not have the desired
1072
+ effect if the current Readline line does not take up more than one
1073
+ physical line or if point is not greater than the length of the
1074
+ prompt plus the screen width.
1075
+
1076
+ 'next-screen-line ()'
1077
+ Attempt to move point to the same physical screen column on the
1078
+ next physical screen line. This will not have the desired effect
1079
+ if the current Readline line does not take up more than one
1080
+ physical line or if the length of the current Readline line is not
1081
+ greater than the length of the prompt plus the screen width.
1082
+
1083
+ 'clear-display (M-C-l)'
1084
+ Clear the screen and, if possible, the terminal's scrollback
1085
+ buffer, then redraw the current line, leaving the current line at
1086
+ the top of the screen.
1087
+
1088
+ 'clear-screen (C-l)'
1089
+ Clear the screen, then redraw the current line, leaving the current
1090
+ line at the top of the screen.
1091
+
1092
+ 'redraw-current-line ()'
1093
+ Refresh the current line. By default, this is unbound.
1094
+
1095
+ 
1096
+ File: rluserman.info, Node: Commands For History, Next: Commands For Text, Prev: Commands For Moving, Up: Bindable Readline Commands
1097
+
1098
+ 1.4.2 Commands For Manipulating The History
1099
+ -------------------------------------------
1100
+
1101
+ 'accept-line (Newline or Return)'
1102
+ Accept the line regardless of where the cursor is. If this line is
1103
+ non-empty, it may be added to the history list for future recall
1104
+ with 'add_history()'. If this line is a modified history line, the
1105
+ history line is restored to its original state.
1106
+
1107
+ 'previous-history (C-p)'
1108
+ Move 'back' through the history list, fetching the previous
1109
+ command.
1110
+
1111
+ 'next-history (C-n)'
1112
+ Move 'forward' through the history list, fetching the next command.
1113
+
1114
+ 'beginning-of-history (M-<)'
1115
+ Move to the first line in the history.
1116
+
1117
+ 'end-of-history (M->)'
1118
+ Move to the end of the input history, i.e., the line currently
1119
+ being entered.
1120
+
1121
+ 'reverse-search-history (C-r)'
1122
+ Search backward starting at the current line and moving 'up'
1123
+ through the history as necessary. This is an incremental search.
1124
+ This command sets the region to the matched text and activates the
1125
+ mark.
1126
+
1127
+ 'forward-search-history (C-s)'
1128
+ Search forward starting at the current line and moving 'down'
1129
+ through the history as necessary. This is an incremental search.
1130
+ This command sets the region to the matched text and activates the
1131
+ mark.
1132
+
1133
+ 'non-incremental-reverse-search-history (M-p)'
1134
+ Search backward starting at the current line and moving 'up'
1135
+ through the history as necessary using a non-incremental search for
1136
+ a string supplied by the user. The search string may match
1137
+ anywhere in a history line.
1138
+
1139
+ 'non-incremental-forward-search-history (M-n)'
1140
+ Search forward starting at the current line and moving 'down'
1141
+ through the history as necessary using a non-incremental search for
1142
+ a string supplied by the user. The search string may match
1143
+ anywhere in a history line.
1144
+
1145
+ 'history-search-forward ()'
1146
+ Search forward through the history for the string of characters
1147
+ between the start of the current line and the point. The search
1148
+ string must match at the beginning of a history line. This is a
1149
+ non-incremental search. By default, this command is unbound.
1150
+
1151
+ 'history-search-backward ()'
1152
+ Search backward through the history for the string of characters
1153
+ between the start of the current line and the point. The search
1154
+ string must match at the beginning of a history line. This is a
1155
+ non-incremental search. By default, this command is unbound.
1156
+
1157
+ 'history-substring-search-forward ()'
1158
+ Search forward through the history for the string of characters
1159
+ between the start of the current line and the point. The search
1160
+ string may match anywhere in a history line. This is a
1161
+ non-incremental search. By default, this command is unbound.
1162
+
1163
+ 'history-substring-search-backward ()'
1164
+ Search backward through the history for the string of characters
1165
+ between the start of the current line and the point. The search
1166
+ string may match anywhere in a history line. This is a
1167
+ non-incremental search. By default, this command is unbound.
1168
+
1169
+ 'yank-nth-arg (M-C-y)'
1170
+ Insert the first argument to the previous command (usually the
1171
+ second word on the previous line) at point. With an argument N,
1172
+ insert the Nth word from the previous command (the words in the
1173
+ previous command begin with word 0). A negative argument inserts
1174
+ the Nth word from the end of the previous command. Once the
1175
+ argument N is computed, the argument is extracted as if the '!N'
1176
+ history expansion had been specified.
1177
+
1178
+ 'yank-last-arg (M-. or M-_)'
1179
+ Insert last argument to the previous command (the last word of the
1180
+ previous history entry). With a numeric argument, behave exactly
1181
+ like 'yank-nth-arg'. Successive calls to 'yank-last-arg' move back
1182
+ through the history list, inserting the last word (or the word
1183
+ specified by the argument to the first call) of each line in turn.
1184
+ Any numeric argument supplied to these successive calls determines
1185
+ the direction to move through the history. A negative argument
1186
+ switches the direction through the history (back or forward). The
1187
+ history expansion facilities are used to extract the last argument,
1188
+ as if the '!$' history expansion had been specified.
1189
+
1190
+ 'operate-and-get-next (C-o)'
1191
+ Accept the current line for return to the calling application as if
1192
+ a newline had been entered, and fetch the next line relative to the
1193
+ current line from the history for editing. A numeric argument, if
1194
+ supplied, specifies the history entry to use instead of the current
1195
+ line.
1196
+
1197
+ 'fetch-history ()'
1198
+ With a numeric argument, fetch that entry from the history list and
1199
+ make it the current line. Without an argument, move back to the
1200
+ first entry in the history list.
1201
+
1202
+ 
1203
+ File: rluserman.info, Node: Commands For Text, Next: Commands For Killing, Prev: Commands For History, Up: Bindable Readline Commands
1204
+
1205
+ 1.4.3 Commands For Changing Text
1206
+ --------------------------------
1207
+
1208
+ 'end-of-file (usually C-d)'
1209
+ The character indicating end-of-file as set, for example, by
1210
+ 'stty'. If this character is read when there are no characters on
1211
+ the line, and point is at the beginning of the line, Readline
1212
+ interprets it as the end of input and returns EOF.
1213
+
1214
+ 'delete-char (C-d)'
1215
+ Delete the character at point. If this function is bound to the
1216
+ same character as the tty EOF character, as 'C-d' commonly is, see
1217
+ above for the effects.
1218
+
1219
+ 'backward-delete-char (Rubout)'
1220
+ Delete the character behind the cursor. A numeric argument means
1221
+ to kill the characters instead of deleting them.
1222
+
1223
+ 'forward-backward-delete-char ()'
1224
+ Delete the character under the cursor, unless the cursor is at the
1225
+ end of the line, in which case the character behind the cursor is
1226
+ deleted. By default, this is not bound to a key.
1227
+
1228
+ 'quoted-insert (C-q or C-v)'
1229
+ Add the next character typed to the line verbatim. This is how to
1230
+ insert key sequences like 'C-q', for example.
1231
+
1232
+ 'tab-insert (M-<TAB>)'
1233
+ Insert a tab character.
1234
+
1235
+ 'self-insert (a, b, A, 1, !, ...)'
1236
+ Insert yourself.
1237
+
1238
+ 'bracketed-paste-begin ()'
1239
+ This function is intended to be bound to the "bracketed paste"
1240
+ escape sequence sent by some terminals, and such a binding is
1241
+ assigned by default. It allows Readline to insert the pasted text
1242
+ as a single unit without treating each character as if it had been
1243
+ read from the keyboard. The characters are inserted as if each one
1244
+ was bound to 'self-insert' instead of executing any editing
1245
+ commands.
1246
+
1247
+ Bracketed paste sets the region (the characters between point and
1248
+ the mark) to the inserted text. It uses the concept of an _active
1249
+ mark_: when the mark is active, Readline redisplay uses the
1250
+ terminal's standout mode to denote the region.
1251
+
1252
+ 'transpose-chars (C-t)'
1253
+ Drag the character before the cursor forward over the character at
1254
+ the cursor, moving the cursor forward as well. If the insertion
1255
+ point is at the end of the line, then this transposes the last two
1256
+ characters of the line. Negative arguments have no effect.
1257
+
1258
+ 'transpose-words (M-t)'
1259
+ Drag the word before point past the word after point, moving point
1260
+ past that word as well. If the insertion point is at the end of
1261
+ the line, this transposes the last two words on the line.
1262
+
1263
+ 'upcase-word (M-u)'
1264
+ Uppercase the current (or following) word. With a negative
1265
+ argument, uppercase the previous word, but do not move the cursor.
1266
+
1267
+ 'downcase-word (M-l)'
1268
+ Lowercase the current (or following) word. With a negative
1269
+ argument, lowercase the previous word, but do not move the cursor.
1270
+
1271
+ 'capitalize-word (M-c)'
1272
+ Capitalize the current (or following) word. With a negative
1273
+ argument, capitalize the previous word, but do not move the cursor.
1274
+
1275
+ 'overwrite-mode ()'
1276
+ Toggle overwrite mode. With an explicit positive numeric argument,
1277
+ switches to overwrite mode. With an explicit non-positive numeric
1278
+ argument, switches to insert mode. This command affects only
1279
+ 'emacs' mode; 'vi' mode does overwrite differently. Each call to
1280
+ 'readline()' starts in insert mode.
1281
+
1282
+ In overwrite mode, characters bound to 'self-insert' replace the
1283
+ text at point rather than pushing the text to the right.
1284
+ Characters bound to 'backward-delete-char' replace the character
1285
+ before point with a space.
1286
+
1287
+ By default, this command is unbound.
1288
+
1289
+ 
1290
+ File: rluserman.info, Node: Commands For Killing, Next: Numeric Arguments, Prev: Commands For Text, Up: Bindable Readline Commands
1291
+
1292
+ 1.4.4 Killing And Yanking
1293
+ -------------------------
1294
+
1295
+ 'kill-line (C-k)'
1296
+ Kill the text from point to the end of the line. With a negative
1297
+ numeric argument, kill backward from the cursor to the beginning of
1298
+ the current line.
1299
+
1300
+ 'backward-kill-line (C-x Rubout)'
1301
+ Kill backward from the cursor to the beginning of the current line.
1302
+ With a negative numeric argument, kill forward from the cursor to
1303
+ the end of the current line.
1304
+
1305
+ 'unix-line-discard (C-u)'
1306
+ Kill backward from the cursor to the beginning of the current line.
1307
+
1308
+ 'kill-whole-line ()'
1309
+ Kill all characters on the current line, no matter where point is.
1310
+ By default, this is unbound.
1311
+
1312
+ 'kill-word (M-d)'
1313
+ Kill from point to the end of the current word, or if between
1314
+ words, to the end of the next word. Word boundaries are the same
1315
+ as 'forward-word'.
1316
+
1317
+ 'backward-kill-word (M-<DEL>)'
1318
+ Kill the word behind point. Word boundaries are the same as
1319
+ 'backward-word'.
1320
+
1321
+ 'shell-transpose-words (M-C-t)'
1322
+ Drag the word before point past the word after point, moving point
1323
+ past that word as well. If the insertion point is at the end of
1324
+ the line, this transposes the last two words on the line. Word
1325
+ boundaries are the same as 'shell-forward-word' and
1326
+ 'shell-backward-word'.
1327
+
1328
+ 'unix-word-rubout (C-w)'
1329
+ Kill the word behind point, using white space as a word boundary.
1330
+ The killed text is saved on the kill-ring.
1331
+
1332
+ 'unix-filename-rubout ()'
1333
+ Kill the word behind point, using white space and the slash
1334
+ character as the word boundaries. The killed text is saved on the
1335
+ kill-ring.
1336
+
1337
+ 'delete-horizontal-space ()'
1338
+ Delete all spaces and tabs around point. By default, this is
1339
+ unbound.
1340
+
1341
+ 'kill-region ()'
1342
+ Kill the text in the current region. By default, this command is
1343
+ unbound.
1344
+
1345
+ 'copy-region-as-kill ()'
1346
+ Copy the text in the region to the kill buffer, so it can be yanked
1347
+ right away. By default, this command is unbound.
1348
+
1349
+ 'copy-backward-word ()'
1350
+ Copy the word before point to the kill buffer. The word boundaries
1351
+ are the same as 'backward-word'. By default, this command is
1352
+ unbound.
1353
+
1354
+ 'copy-forward-word ()'
1355
+ Copy the word following point to the kill buffer. The word
1356
+ boundaries are the same as 'forward-word'. By default, this
1357
+ command is unbound.
1358
+
1359
+ 'yank (C-y)'
1360
+ Yank the top of the kill ring into the buffer at point.
1361
+
1362
+ 'yank-pop (M-y)'
1363
+ Rotate the kill-ring, and yank the new top. You can only do this
1364
+ if the prior command is 'yank' or 'yank-pop'.
1365
+
1366
+ 
1367
+ File: rluserman.info, Node: Numeric Arguments, Next: Commands For Completion, Prev: Commands For Killing, Up: Bindable Readline Commands
1368
+
1369
+ 1.4.5 Specifying Numeric Arguments
1370
+ ----------------------------------
1371
+
1372
+ 'digit-argument (M-0, M-1, ... M--)'
1373
+ Add this digit to the argument already accumulating, or start a new
1374
+ argument. 'M--' starts a negative argument.
1375
+
1376
+ 'universal-argument ()'
1377
+ This is another way to specify an argument. If this command is
1378
+ followed by one or more digits, optionally with a leading minus
1379
+ sign, those digits define the argument. If the command is followed
1380
+ by digits, executing 'universal-argument' again ends the numeric
1381
+ argument, but is otherwise ignored. As a special case, if this
1382
+ command is immediately followed by a character that is neither a
1383
+ digit nor minus sign, the argument count for the next command is
1384
+ multiplied by four. The argument count is initially one, so
1385
+ executing this function the first time makes the argument count
1386
+ four, a second time makes the argument count sixteen, and so on.
1387
+ By default, this is not bound to a key.
1388
+
1389
+ 
1390
+ File: rluserman.info, Node: Commands For Completion, Next: Keyboard Macros, Prev: Numeric Arguments, Up: Bindable Readline Commands
1391
+
1392
+ 1.4.6 Letting Readline Type For You
1393
+ -----------------------------------
1394
+
1395
+ 'complete (<TAB>)'
1396
+ Attempt to perform completion on the text before point. The actual
1397
+ completion performed is application-specific. The default is
1398
+ filename completion.
1399
+
1400
+ 'possible-completions (M-?)'
1401
+ List the possible completions of the text before point. When
1402
+ displaying completions, Readline sets the number of columns used
1403
+ for display to the value of 'completion-display-width', the value
1404
+ of the environment variable 'COLUMNS', or the screen width, in that
1405
+ order.
1406
+
1407
+ 'insert-completions (M-*)'
1408
+ Insert all completions of the text before point that would have
1409
+ been generated by 'possible-completions'.
1410
+
1411
+ 'menu-complete ()'
1412
+ Similar to 'complete', but replaces the word to be completed with a
1413
+ single match from the list of possible completions. Repeated
1414
+ execution of 'menu-complete' steps through the list of possible
1415
+ completions, inserting each match in turn. At the end of the list
1416
+ of completions, the bell is rung (subject to the setting of
1417
+ 'bell-style') and the original text is restored. An argument of N
1418
+ moves N positions forward in the list of matches; a negative
1419
+ argument may be used to move backward through the list. This
1420
+ command is intended to be bound to <TAB>, but is unbound by
1421
+ default.
1422
+
1423
+ 'menu-complete-backward ()'
1424
+ Identical to 'menu-complete', but moves backward through the list
1425
+ of possible completions, as if 'menu-complete' had been given a
1426
+ negative argument.
1427
+
1428
+ 'delete-char-or-list ()'
1429
+ Deletes the character under the cursor if not at the beginning or
1430
+ end of the line (like 'delete-char'). If at the end of the line,
1431
+ behaves identically to 'possible-completions'. This command is
1432
+ unbound by default.
1433
+
1434
+ 
1435
+ File: rluserman.info, Node: Keyboard Macros, Next: Miscellaneous Commands, Prev: Commands For Completion, Up: Bindable Readline Commands
1436
+
1437
+ 1.4.7 Keyboard Macros
1438
+ ---------------------
1439
+
1440
+ 'start-kbd-macro (C-x ()'
1441
+ Begin saving the characters typed into the current keyboard macro.
1442
+
1443
+ 'end-kbd-macro (C-x ))'
1444
+ Stop saving the characters typed into the current keyboard macro
1445
+ and save the definition.
1446
+
1447
+ 'call-last-kbd-macro (C-x e)'
1448
+ Re-execute the last keyboard macro defined, by making the
1449
+ characters in the macro appear as if typed at the keyboard.
1450
+
1451
+ 'print-last-kbd-macro ()'
1452
+ Print the last keyboard macro defined in a format suitable for the
1453
+ INPUTRC file.
1454
+
1455
+ 
1456
+ File: rluserman.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bindable Readline Commands
1457
+
1458
+ 1.4.8 Some Miscellaneous Commands
1459
+ ---------------------------------
1460
+
1461
+ 're-read-init-file (C-x C-r)'
1462
+ Read in the contents of the INPUTRC file, and incorporate any
1463
+ bindings or variable assignments found there.
1464
+
1465
+ 'abort (C-g)'
1466
+ Abort the current editing command and ring the terminal's bell
1467
+ (subject to the setting of 'bell-style').
1468
+
1469
+ 'do-lowercase-version (M-A, M-B, M-X, ...)'
1470
+ If the metafied character X is upper case, run the command that is
1471
+ bound to the corresponding metafied lower case character. The
1472
+ behavior is undefined if X is already lower case.
1473
+
1474
+ 'prefix-meta (<ESC>)'
1475
+ Metafy the next character typed. This is for keyboards without a
1476
+ meta key. Typing '<ESC> f' is equivalent to typing 'M-f'.
1477
+
1478
+ 'undo (C-_ or C-x C-u)'
1479
+ Incremental undo, separately remembered for each line.
1480
+
1481
+ 'revert-line (M-r)'
1482
+ Undo all changes made to this line. This is like executing the
1483
+ 'undo' command enough times to get back to the beginning.
1484
+
1485
+ 'tilde-expand (M-~)'
1486
+ Perform tilde expansion on the current word.
1487
+
1488
+ 'set-mark (C-@)'
1489
+ Set the mark to the point. If a numeric argument is supplied, the
1490
+ mark is set to that position.
1491
+
1492
+ 'exchange-point-and-mark (C-x C-x)'
1493
+ Swap the point with the mark. The current cursor position is set
1494
+ to the saved position, and the old cursor position is saved as the
1495
+ mark.
1496
+
1497
+ 'character-search (C-])'
1498
+ A character is read and point is moved to the next occurrence of
1499
+ that character. A negative argument searches for previous
1500
+ occurrences.
1501
+
1502
+ 'character-search-backward (M-C-])'
1503
+ A character is read and point is moved to the previous occurrence
1504
+ of that character. A negative argument searches for subsequent
1505
+ occurrences.
1506
+
1507
+ 'skip-csi-sequence ()'
1508
+ Read enough characters to consume a multi-key sequence such as
1509
+ those defined for keys like Home and End. Such sequences begin
1510
+ with a Control Sequence Indicator (CSI), usually ESC-[. If this
1511
+ sequence is bound to "\e[", keys producing such sequences will have
1512
+ no effect unless explicitly bound to a Readline command, instead of
1513
+ inserting stray characters into the editing buffer. This is
1514
+ unbound by default, but usually bound to ESC-[.
1515
+
1516
+ 'insert-comment (M-#)'
1517
+ Without a numeric argument, the value of the 'comment-begin'
1518
+ variable is inserted at the beginning of the current line. If a
1519
+ numeric argument is supplied, this command acts as a toggle: if the
1520
+ characters at the beginning of the line do not match the value of
1521
+ 'comment-begin', the value is inserted, otherwise the characters in
1522
+ 'comment-begin' are deleted from the beginning of the line. In
1523
+ either case, the line is accepted as if a newline had been typed.
1524
+
1525
+ 'dump-functions ()'
1526
+ Print all of the functions and their key bindings to the Readline
1527
+ output stream. If a numeric argument is supplied, the output is
1528
+ formatted in such a way that it can be made part of an INPUTRC
1529
+ file. This command is unbound by default.
1530
+
1531
+ 'dump-variables ()'
1532
+ Print all of the settable variables and their values to the
1533
+ Readline output stream. If a numeric argument is supplied, the
1534
+ output is formatted in such a way that it can be made part of an
1535
+ INPUTRC file. This command is unbound by default.
1536
+
1537
+ 'dump-macros ()'
1538
+ Print all of the Readline key sequences bound to macros and the
1539
+ strings they output. If a numeric argument is supplied, the output
1540
+ is formatted in such a way that it can be made part of an INPUTRC
1541
+ file. This command is unbound by default.
1542
+
1543
+ 'emacs-editing-mode (C-e)'
1544
+ When in 'vi' command mode, this causes a switch to 'emacs' editing
1545
+ mode.
1546
+
1547
+ 'vi-editing-mode (M-C-j)'
1548
+ When in 'emacs' editing mode, this causes a switch to 'vi' editing
1549
+ mode.
1550
+
1551
+ 
1552
+ File: rluserman.info, Node: Readline vi Mode, Prev: Bindable Readline Commands, Up: Command Line Editing
1553
+
1554
+ 1.5 Readline vi Mode
1555
+ ====================
1556
+
1557
+ While the Readline library does not have a full set of 'vi' editing
1558
+ functions, it does contain enough to allow simple editing of the line.
1559
+ The Readline 'vi' mode behaves as specified in the POSIX standard.
1560
+
1561
+ In order to switch interactively between 'emacs' and 'vi' editing
1562
+ modes, use the command 'M-C-j' (bound to emacs-editing-mode when in 'vi'
1563
+ mode and to vi-editing-mode in 'emacs' mode). The Readline default is
1564
+ 'emacs' mode.
1565
+
1566
+ When you enter a line in 'vi' mode, you are already placed in
1567
+ 'insertion' mode, as if you had typed an 'i'. Pressing <ESC> switches
1568
+ you into 'command' mode, where you can edit the text of the line with
1569
+ the standard 'vi' movement keys, move to previous history lines with 'k'
1570
+ and subsequent lines with 'j', and so forth.
1571
+
1572
+ 
1573
+ File: rluserman.info, Node: GNU Free Documentation License, Prev: Command Line Editing, Up: Top
1574
+
1575
+ Appendix A GNU Free Documentation License
1576
+ *****************************************
1577
+
1578
+ Version 1.3, 3 November 2008
1579
+
1580
+ Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
1581
+ <http://fsf.org/>
1582
+
1583
+ Everyone is permitted to copy and distribute verbatim copies
1584
+ of this license document, but changing it is not allowed.
1585
+
1586
+ 0. PREAMBLE
1587
+
1588
+ The purpose of this License is to make a manual, textbook, or other
1589
+ functional and useful document "free" in the sense of freedom: to
1590
+ assure everyone the effective freedom to copy and redistribute it,
1591
+ with or without modifying it, either commercially or
1592
+ noncommercially. Secondarily, this License preserves for the
1593
+ author and publisher a way to get credit for their work, while not
1594
+ being considered responsible for modifications made by others.
1595
+
1596
+ This License is a kind of "copyleft", which means that derivative
1597
+ works of the document must themselves be free in the same sense.
1598
+ It complements the GNU General Public License, which is a copyleft
1599
+ license designed for free software.
1600
+
1601
+ We have designed this License in order to use it for manuals for
1602
+ free software, because free software needs free documentation: a
1603
+ free program should come with manuals providing the same freedoms
1604
+ that the software does. But this License is not limited to
1605
+ software manuals; it can be used for any textual work, regardless
1606
+ of subject matter or whether it is published as a printed book. We
1607
+ recommend this License principally for works whose purpose is
1608
+ instruction or reference.
1609
+
1610
+ 1. APPLICABILITY AND DEFINITIONS
1611
+
1612
+ This License applies to any manual or other work, in any medium,
1613
+ that contains a notice placed by the copyright holder saying it can
1614
+ be distributed under the terms of this License. Such a notice
1615
+ grants a world-wide, royalty-free license, unlimited in duration,
1616
+ to use that work under the conditions stated herein. The
1617
+ "Document", below, refers to any such manual or work. Any member
1618
+ of the public is a licensee, and is addressed as "you". You accept
1619
+ the license if you copy, modify or distribute the work in a way
1620
+ requiring permission under copyright law.
1621
+
1622
+ A "Modified Version" of the Document means any work containing the
1623
+ Document or a portion of it, either copied verbatim, or with
1624
+ modifications and/or translated into another language.
1625
+
1626
+ A "Secondary Section" is a named appendix or a front-matter section
1627
+ of the Document that deals exclusively with the relationship of the
1628
+ publishers or authors of the Document to the Document's overall
1629
+ subject (or to related matters) and contains nothing that could
1630
+ fall directly within that overall subject. (Thus, if the Document
1631
+ is in part a textbook of mathematics, a Secondary Section may not
1632
+ explain any mathematics.) The relationship could be a matter of
1633
+ historical connection with the subject or with related matters, or
1634
+ of legal, commercial, philosophical, ethical or political position
1635
+ regarding them.
1636
+
1637
+ The "Invariant Sections" are certain Secondary Sections whose
1638
+ titles are designated, as being those of Invariant Sections, in the
1639
+ notice that says that the Document is released under this License.
1640
+ If a section does not fit the above definition of Secondary then it
1641
+ is not allowed to be designated as Invariant. The Document may
1642
+ contain zero Invariant Sections. If the Document does not identify
1643
+ any Invariant Sections then there are none.
1644
+
1645
+ The "Cover Texts" are certain short passages of text that are
1646
+ listed, as Front-Cover Texts or Back-Cover Texts, in the notice
1647
+ that says that the Document is released under this License. A
1648
+ Front-Cover Text may be at most 5 words, and a Back-Cover Text may
1649
+ be at most 25 words.
1650
+
1651
+ A "Transparent" copy of the Document means a machine-readable copy,
1652
+ represented in a format whose specification is available to the
1653
+ general public, that is suitable for revising the document
1654
+ straightforwardly with generic text editors or (for images composed
1655
+ of pixels) generic paint programs or (for drawings) some widely
1656
+ available drawing editor, and that is suitable for input to text
1657
+ formatters or for automatic translation to a variety of formats
1658
+ suitable for input to text formatters. A copy made in an otherwise
1659
+ Transparent file format whose markup, or absence of markup, has
1660
+ been arranged to thwart or discourage subsequent modification by
1661
+ readers is not Transparent. An image format is not Transparent if
1662
+ used for any substantial amount of text. A copy that is not
1663
+ "Transparent" is called "Opaque".
1664
+
1665
+ Examples of suitable formats for Transparent copies include plain
1666
+ ASCII without markup, Texinfo input format, LaTeX input format,
1667
+ SGML or XML using a publicly available DTD, and standard-conforming
1668
+ simple HTML, PostScript or PDF designed for human modification.
1669
+ Examples of transparent image formats include PNG, XCF and JPG.
1670
+ Opaque formats include proprietary formats that can be read and
1671
+ edited only by proprietary word processors, SGML or XML for which
1672
+ the DTD and/or processing tools are not generally available, and
1673
+ the machine-generated HTML, PostScript or PDF produced by some word
1674
+ processors for output purposes only.
1675
+
1676
+ The "Title Page" means, for a printed book, the title page itself,
1677
+ plus such following pages as are needed to hold, legibly, the
1678
+ material this License requires to appear in the title page. For
1679
+ works in formats which do not have any title page as such, "Title
1680
+ Page" means the text near the most prominent appearance of the
1681
+ work's title, preceding the beginning of the body of the text.
1682
+
1683
+ The "publisher" means any person or entity that distributes copies
1684
+ of the Document to the public.
1685
+
1686
+ A section "Entitled XYZ" means a named subunit of the Document
1687
+ whose title either is precisely XYZ or contains XYZ in parentheses
1688
+ following text that translates XYZ in another language. (Here XYZ
1689
+ stands for a specific section name mentioned below, such as
1690
+ "Acknowledgements", "Dedications", "Endorsements", or "History".)
1691
+ To "Preserve the Title" of such a section when you modify the
1692
+ Document means that it remains a section "Entitled XYZ" according
1693
+ to this definition.
1694
+
1695
+ The Document may include Warranty Disclaimers next to the notice
1696
+ which states that this License applies to the Document. These
1697
+ Warranty Disclaimers are considered to be included by reference in
1698
+ this License, but only as regards disclaiming warranties: any other
1699
+ implication that these Warranty Disclaimers may have is void and
1700
+ has no effect on the meaning of this License.
1701
+
1702
+ 2. VERBATIM COPYING
1703
+
1704
+ You may copy and distribute the Document in any medium, either
1705
+ commercially or noncommercially, provided that this License, the
1706
+ copyright notices, and the license notice saying this License
1707
+ applies to the Document are reproduced in all copies, and that you
1708
+ add no other conditions whatsoever to those of this License. You
1709
+ may not use technical measures to obstruct or control the reading
1710
+ or further copying of the copies you make or distribute. However,
1711
+ you may accept compensation in exchange for copies. If you
1712
+ distribute a large enough number of copies you must also follow the
1713
+ conditions in section 3.
1714
+
1715
+ You may also lend copies, under the same conditions stated above,
1716
+ and you may publicly display copies.
1717
+
1718
+ 3. COPYING IN QUANTITY
1719
+
1720
+ If you publish printed copies (or copies in media that commonly
1721
+ have printed covers) of the Document, numbering more than 100, and
1722
+ the Document's license notice requires Cover Texts, you must
1723
+ enclose the copies in covers that carry, clearly and legibly, all
1724
+ these Cover Texts: Front-Cover Texts on the front cover, and
1725
+ Back-Cover Texts on the back cover. Both covers must also clearly
1726
+ and legibly identify you as the publisher of these copies. The
1727
+ front cover must present the full title with all words of the title
1728
+ equally prominent and visible. You may add other material on the
1729
+ covers in addition. Copying with changes limited to the covers, as
1730
+ long as they preserve the title of the Document and satisfy these
1731
+ conditions, can be treated as verbatim copying in other respects.
1732
+
1733
+ If the required texts for either cover are too voluminous to fit
1734
+ legibly, you should put the first ones listed (as many as fit
1735
+ reasonably) on the actual cover, and continue the rest onto
1736
+ adjacent pages.
1737
+
1738
+ If you publish or distribute Opaque copies of the Document
1739
+ numbering more than 100, you must either include a machine-readable
1740
+ Transparent copy along with each Opaque copy, or state in or with
1741
+ each Opaque copy a computer-network location from which the general
1742
+ network-using public has access to download using public-standard
1743
+ network protocols a complete Transparent copy of the Document, free
1744
+ of added material. If you use the latter option, you must take
1745
+ reasonably prudent steps, when you begin distribution of Opaque
1746
+ copies in quantity, to ensure that this Transparent copy will
1747
+ remain thus accessible at the stated location until at least one
1748
+ year after the last time you distribute an Opaque copy (directly or
1749
+ through your agents or retailers) of that edition to the public.
1750
+
1751
+ It is requested, but not required, that you contact the authors of
1752
+ the Document well before redistributing any large number of copies,
1753
+ to give them a chance to provide you with an updated version of the
1754
+ Document.
1755
+
1756
+ 4. MODIFICATIONS
1757
+
1758
+ You may copy and distribute a Modified Version of the Document
1759
+ under the conditions of sections 2 and 3 above, provided that you
1760
+ release the Modified Version under precisely this License, with the
1761
+ Modified Version filling the role of the Document, thus licensing
1762
+ distribution and modification of the Modified Version to whoever
1763
+ possesses a copy of it. In addition, you must do these things in
1764
+ the Modified Version:
1765
+
1766
+ A. Use in the Title Page (and on the covers, if any) a title
1767
+ distinct from that of the Document, and from those of previous
1768
+ versions (which should, if there were any, be listed in the
1769
+ History section of the Document). You may use the same title
1770
+ as a previous version if the original publisher of that
1771
+ version gives permission.
1772
+
1773
+ B. List on the Title Page, as authors, one or more persons or
1774
+ entities responsible for authorship of the modifications in
1775
+ the Modified Version, together with at least five of the
1776
+ principal authors of the Document (all of its principal
1777
+ authors, if it has fewer than five), unless they release you
1778
+ from this requirement.
1779
+
1780
+ C. State on the Title page the name of the publisher of the
1781
+ Modified Version, as the publisher.
1782
+
1783
+ D. Preserve all the copyright notices of the Document.
1784
+
1785
+ E. Add an appropriate copyright notice for your modifications
1786
+ adjacent to the other copyright notices.
1787
+
1788
+ F. Include, immediately after the copyright notices, a license
1789
+ notice giving the public permission to use the Modified
1790
+ Version under the terms of this License, in the form shown in
1791
+ the Addendum below.
1792
+
1793
+ G. Preserve in that license notice the full lists of Invariant
1794
+ Sections and required Cover Texts given in the Document's
1795
+ license notice.
1796
+
1797
+ H. Include an unaltered copy of this License.
1798
+
1799
+ I. Preserve the section Entitled "History", Preserve its Title,
1800
+ and add to it an item stating at least the title, year, new
1801
+ authors, and publisher of the Modified Version as given on the
1802
+ Title Page. If there is no section Entitled "History" in the
1803
+ Document, create one stating the title, year, authors, and
1804
+ publisher of the Document as given on its Title Page, then add
1805
+ an item describing the Modified Version as stated in the
1806
+ previous sentence.
1807
+
1808
+ J. Preserve the network location, if any, given in the Document
1809
+ for public access to a Transparent copy of the Document, and
1810
+ likewise the network locations given in the Document for
1811
+ previous versions it was based on. These may be placed in the
1812
+ "History" section. You may omit a network location for a work
1813
+ that was published at least four years before the Document
1814
+ itself, or if the original publisher of the version it refers
1815
+ to gives permission.
1816
+
1817
+ K. For any section Entitled "Acknowledgements" or "Dedications",
1818
+ Preserve the Title of the section, and preserve in the section
1819
+ all the substance and tone of each of the contributor
1820
+ acknowledgements and/or dedications given therein.
1821
+
1822
+ L. Preserve all the Invariant Sections of the Document, unaltered
1823
+ in their text and in their titles. Section numbers or the
1824
+ equivalent are not considered part of the section titles.
1825
+
1826
+ M. Delete any section Entitled "Endorsements". Such a section
1827
+ may not be included in the Modified Version.
1828
+
1829
+ N. Do not retitle any existing section to be Entitled
1830
+ "Endorsements" or to conflict in title with any Invariant
1831
+ Section.
1832
+
1833
+ O. Preserve any Warranty Disclaimers.
1834
+
1835
+ If the Modified Version includes new front-matter sections or
1836
+ appendices that qualify as Secondary Sections and contain no
1837
+ material copied from the Document, you may at your option designate
1838
+ some or all of these sections as invariant. To do this, add their
1839
+ titles to the list of Invariant Sections in the Modified Version's
1840
+ license notice. These titles must be distinct from any other
1841
+ section titles.
1842
+
1843
+ You may add a section Entitled "Endorsements", provided it contains
1844
+ nothing but endorsements of your Modified Version by various
1845
+ parties--for example, statements of peer review or that the text
1846
+ has been approved by an organization as the authoritative
1847
+ definition of a standard.
1848
+
1849
+ You may add a passage of up to five words as a Front-Cover Text,
1850
+ and a passage of up to 25 words as a Back-Cover Text, to the end of
1851
+ the list of Cover Texts in the Modified Version. Only one passage
1852
+ of Front-Cover Text and one of Back-Cover Text may be added by (or
1853
+ through arrangements made by) any one entity. If the Document
1854
+ already includes a cover text for the same cover, previously added
1855
+ by you or by arrangement made by the same entity you are acting on
1856
+ behalf of, you may not add another; but you may replace the old
1857
+ one, on explicit permission from the previous publisher that added
1858
+ the old one.
1859
+
1860
+ The author(s) and publisher(s) of the Document do not by this
1861
+ License give permission to use their names for publicity for or to
1862
+ assert or imply endorsement of any Modified Version.
1863
+
1864
+ 5. COMBINING DOCUMENTS
1865
+
1866
+ You may combine the Document with other documents released under
1867
+ this License, under the terms defined in section 4 above for
1868
+ modified versions, provided that you include in the combination all
1869
+ of the Invariant Sections of all of the original documents,
1870
+ unmodified, and list them all as Invariant Sections of your
1871
+ combined work in its license notice, and that you preserve all
1872
+ their Warranty Disclaimers.
1873
+
1874
+ The combined work need only contain one copy of this License, and
1875
+ multiple identical Invariant Sections may be replaced with a single
1876
+ copy. If there are multiple Invariant Sections with the same name
1877
+ but different contents, make the title of each such section unique
1878
+ by adding at the end of it, in parentheses, the name of the
1879
+ original author or publisher of that section if known, or else a
1880
+ unique number. Make the same adjustment to the section titles in
1881
+ the list of Invariant Sections in the license notice of the
1882
+ combined work.
1883
+
1884
+ In the combination, you must combine any sections Entitled
1885
+ "History" in the various original documents, forming one section
1886
+ Entitled "History"; likewise combine any sections Entitled
1887
+ "Acknowledgements", and any sections Entitled "Dedications". You
1888
+ must delete all sections Entitled "Endorsements."
1889
+
1890
+ 6. COLLECTIONS OF DOCUMENTS
1891
+
1892
+ You may make a collection consisting of the Document and other
1893
+ documents released under this License, and replace the individual
1894
+ copies of this License in the various documents with a single copy
1895
+ that is included in the collection, provided that you follow the
1896
+ rules of this License for verbatim copying of each of the documents
1897
+ in all other respects.
1898
+
1899
+ You may extract a single document from such a collection, and
1900
+ distribute it individually under this License, provided you insert
1901
+ a copy of this License into the extracted document, and follow this
1902
+ License in all other respects regarding verbatim copying of that
1903
+ document.
1904
+
1905
+ 7. AGGREGATION WITH INDEPENDENT WORKS
1906
+
1907
+ A compilation of the Document or its derivatives with other
1908
+ separate and independent documents or works, in or on a volume of a
1909
+ storage or distribution medium, is called an "aggregate" if the
1910
+ copyright resulting from the compilation is not used to limit the
1911
+ legal rights of the compilation's users beyond what the individual
1912
+ works permit. When the Document is included in an aggregate, this
1913
+ License does not apply to the other works in the aggregate which
1914
+ are not themselves derivative works of the Document.
1915
+
1916
+ If the Cover Text requirement of section 3 is applicable to these
1917
+ copies of the Document, then if the Document is less than one half
1918
+ of the entire aggregate, the Document's Cover Texts may be placed
1919
+ on covers that bracket the Document within the aggregate, or the
1920
+ electronic equivalent of covers if the Document is in electronic
1921
+ form. Otherwise they must appear on printed covers that bracket
1922
+ the whole aggregate.
1923
+
1924
+ 8. TRANSLATION
1925
+
1926
+ Translation is considered a kind of modification, so you may
1927
+ distribute translations of the Document under the terms of section
1928
+ 4. Replacing Invariant Sections with translations requires special
1929
+ permission from their copyright holders, but you may include
1930
+ translations of some or all Invariant Sections in addition to the
1931
+ original versions of these Invariant Sections. You may include a
1932
+ translation of this License, and all the license notices in the
1933
+ Document, and any Warranty Disclaimers, provided that you also
1934
+ include the original English version of this License and the
1935
+ original versions of those notices and disclaimers. In case of a
1936
+ disagreement between the translation and the original version of
1937
+ this License or a notice or disclaimer, the original version will
1938
+ prevail.
1939
+
1940
+ If a section in the Document is Entitled "Acknowledgements",
1941
+ "Dedications", or "History", the requirement (section 4) to
1942
+ Preserve its Title (section 1) will typically require changing the
1943
+ actual title.
1944
+
1945
+ 9. TERMINATION
1946
+
1947
+ You may not copy, modify, sublicense, or distribute the Document
1948
+ except as expressly provided under this License. Any attempt
1949
+ otherwise to copy, modify, sublicense, or distribute it is void,
1950
+ and will automatically terminate your rights under this License.
1951
+
1952
+ However, if you cease all violation of this License, then your
1953
+ license from a particular copyright holder is reinstated (a)
1954
+ provisionally, unless and until the copyright holder explicitly and
1955
+ finally terminates your license, and (b) permanently, if the
1956
+ copyright holder fails to notify you of the violation by some
1957
+ reasonable means prior to 60 days after the cessation.
1958
+
1959
+ Moreover, your license from a particular copyright holder is
1960
+ reinstated permanently if the copyright holder notifies you of the
1961
+ violation by some reasonable means, this is the first time you have
1962
+ received notice of violation of this License (for any work) from
1963
+ that copyright holder, and you cure the violation prior to 30 days
1964
+ after your receipt of the notice.
1965
+
1966
+ Termination of your rights under this section does not terminate
1967
+ the licenses of parties who have received copies or rights from you
1968
+ under this License. If your rights have been terminated and not
1969
+ permanently reinstated, receipt of a copy of some or all of the
1970
+ same material does not give you any rights to use it.
1971
+
1972
+ 10. FUTURE REVISIONS OF THIS LICENSE
1973
+
1974
+ The Free Software Foundation may publish new, revised versions of
1975
+ the GNU Free Documentation License from time to time. Such new
1976
+ versions will be similar in spirit to the present version, but may
1977
+ differ in detail to address new problems or concerns. See
1978
+ <http://www.gnu.org/copyleft/>.
1979
+
1980
+ Each version of the License is given a distinguishing version
1981
+ number. If the Document specifies that a particular numbered
1982
+ version of this License "or any later version" applies to it, you
1983
+ have the option of following the terms and conditions either of
1984
+ that specified version or of any later version that has been
1985
+ published (not as a draft) by the Free Software Foundation. If the
1986
+ Document does not specify a version number of this License, you may
1987
+ choose any version ever published (not as a draft) by the Free
1988
+ Software Foundation. If the Document specifies that a proxy can
1989
+ decide which future versions of this License can be used, that
1990
+ proxy's public statement of acceptance of a version permanently
1991
+ authorizes you to choose that version for the Document.
1992
+
1993
+ 11. RELICENSING
1994
+
1995
+ "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
1996
+ World Wide Web server that publishes copyrightable works and also
1997
+ provides prominent facilities for anybody to edit those works. A
1998
+ public wiki that anybody can edit is an example of such a server.
1999
+ A "Massive Multiauthor Collaboration" (or "MMC") contained in the
2000
+ site means any set of copyrightable works thus published on the MMC
2001
+ site.
2002
+
2003
+ "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
2004
+ license published by Creative Commons Corporation, a not-for-profit
2005
+ corporation with a principal place of business in San Francisco,
2006
+ California, as well as future copyleft versions of that license
2007
+ published by that same organization.
2008
+
2009
+ "Incorporate" means to publish or republish a Document, in whole or
2010
+ in part, as part of another Document.
2011
+
2012
+ An MMC is "eligible for relicensing" if it is licensed under this
2013
+ License, and if all works that were first published under this
2014
+ License somewhere other than this MMC, and subsequently
2015
+ incorporated in whole or in part into the MMC, (1) had no cover
2016
+ texts or invariant sections, and (2) were thus incorporated prior
2017
+ to November 1, 2008.
2018
+
2019
+ The operator of an MMC Site may republish an MMC contained in the
2020
+ site under CC-BY-SA on the same site at any time before August 1,
2021
+ 2009, provided the MMC is eligible for relicensing.
2022
+
2023
+ ADDENDUM: How to use this License for your documents
2024
+ ====================================================
2025
+
2026
+ To use this License in a document you have written, include a copy of
2027
+ the License in the document and put the following copyright and license
2028
+ notices just after the title page:
2029
+
2030
+ Copyright (C) YEAR YOUR NAME.
2031
+ Permission is granted to copy, distribute and/or modify this document
2032
+ under the terms of the GNU Free Documentation License, Version 1.3
2033
+ or any later version published by the Free Software Foundation;
2034
+ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
2035
+ Texts. A copy of the license is included in the section entitled ``GNU
2036
+ Free Documentation License''.
2037
+
2038
+ If you have Invariant Sections, Front-Cover Texts and Back-Cover
2039
+ Texts, replace the "with...Texts." line with this:
2040
+
2041
+ with the Invariant Sections being LIST THEIR TITLES, with
2042
+ the Front-Cover Texts being LIST, and with the Back-Cover Texts
2043
+ being LIST.
2044
+
2045
+ If you have Invariant Sections without Cover Texts, or some other
2046
+ combination of the three, merge those two alternatives to suit the
2047
+ situation.
2048
+
2049
+ If your document contains nontrivial examples of program code, we
2050
+ recommend releasing these examples in parallel under your choice of free
2051
+ software license, such as the GNU General Public License, to permit
2052
+ their use in free software.
2053
+
2054
+
2055
+ 
2056
+ Tag Table:
2057
+ Node: Top909
2058
+ Node: Command Line Editing1431
2059
+ Node: Introduction and Notation2085
2060
+ Node: Readline Interaction3710
2061
+ Node: Readline Bare Essentials4903
2062
+ Node: Readline Movement Commands6694
2063
+ Node: Readline Killing Commands7656
2064
+ Node: Readline Arguments9579
2065
+ Node: Searching10625
2066
+ Node: Readline Init File12779
2067
+ Node: Readline Init File Syntax13936
2068
+ Node: Conditional Init Constructs37240
2069
+ Node: Sample Init File41438
2070
+ Node: Bindable Readline Commands44564
2071
+ Node: Commands For Moving45620
2072
+ Node: Commands For History47380
2073
+ Node: Commands For Text52345
2074
+ Node: Commands For Killing56049
2075
+ Node: Numeric Arguments58764
2076
+ Node: Commands For Completion59905
2077
+ Node: Keyboard Macros61875
2078
+ Node: Miscellaneous Commands62565
2079
+ Node: Readline vi Mode66494
2080
+ Node: GNU Free Documentation License67408
2081
+ 
2082
+ End Tag Table
2083
+
2084
+ 
2085
+ Local Variables:
2086
+ coding: utf-8
2087
+ End:
llava_next/share/locale/ca/LC_MESSAGES/xz.mo ADDED
Binary file (31 kB). View file
 
llava_next/share/locale/cs/LC_MESSAGES/xz.mo ADDED
Binary file (15.4 kB). View file
 
llava_next/share/locale/da/LC_MESSAGES/xz.mo ADDED
Binary file (11 kB). View file
 
llava_next/share/locale/eo/LC_MESSAGES/xz.mo ADDED
Binary file (30 kB). View file
 
llava_next/share/locale/es/LC_MESSAGES/xz.mo ADDED
Binary file (31.2 kB). View file
 
llava_next/share/locale/fr/LC_MESSAGES/xz.mo ADDED
Binary file (19.3 kB). View file
 
llava_next/share/locale/hu/LC_MESSAGES/xz.mo ADDED
Binary file (31.7 kB). View file
 
llava_next/share/locale/pl/LC_MESSAGES/xz.mo ADDED
Binary file (30.6 kB). View file
 
llava_next/share/locale/pt/LC_MESSAGES/xz.mo ADDED
Binary file (19 kB). View file
 
llava_next/share/locale/sr/LC_MESSAGES/xz.mo ADDED
Binary file (38.4 kB). View file
 
llava_next/share/locale/sv/LC_MESSAGES/xz.mo ADDED
Binary file (30.4 kB). View file
 
llava_next/share/locale/tr/LC_MESSAGES/xz.mo ADDED
Binary file (22 kB). View file
 
llava_next/share/locale/uk/LC_MESSAGES/xz.mo ADDED
Binary file (40.3 kB). View file
 
llava_next/share/locale/vi/LC_MESSAGES/xz.mo ADDED
Binary file (32.9 kB). View file
 
parrot/lib/python3.10/site-packages/torch/ao/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (466 Bytes). View file
 
parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (166 Bytes). View file
 
parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/graph_matcher.cpython-310.pyc ADDED
Binary file (12 kB). View file
 
parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/n_shadows_utils.cpython-310.pyc ADDED
Binary file (24 kB). View file