2
* ClamAV bytecode internal API
3
* This is an automatically generated file!
5
* Copyright (C) 2009-2010 Sourcefire, Inc.
8
* Redistribution and use in source and binary forms, with or without
9
* modification, are permitted provided that the following conditions
11
* 1. Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in the
15
* documentation and/or other materials provided with the distribution.
17
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30
#include "type_desc.h"
31
#include "bytecode_api.h"
32
#include "bytecode_api_impl.h"
33
#include "bytecode_priv.h"
36
uint32_t cli_bcapi_test1(struct cli_bc_ctx *ctx , uint32_t, uint32_t);
37
int32_t cli_bcapi_read(struct cli_bc_ctx *ctx , uint8_t*, int32_t);
38
int32_t cli_bcapi_write(struct cli_bc_ctx *ctx , uint8_t*, int32_t);
39
int32_t cli_bcapi_seek(struct cli_bc_ctx *ctx , int32_t, uint32_t);
40
uint32_t cli_bcapi_setvirusname(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
41
uint32_t cli_bcapi_debug_print_str(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
42
uint32_t cli_bcapi_debug_print_uint(struct cli_bc_ctx *ctx , uint32_t);
43
uint32_t cli_bcapi_disasm_x86(struct cli_bc_ctx *ctx , struct DISASM_RESULT*, uint32_t);
44
uint32_t cli_bcapi_trace_directory(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
45
uint32_t cli_bcapi_trace_scope(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
46
uint32_t cli_bcapi_trace_source(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
47
uint32_t cli_bcapi_trace_op(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
48
uint32_t cli_bcapi_trace_value(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
49
uint32_t cli_bcapi_trace_ptr(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
50
uint32_t cli_bcapi_pe_rawaddr(struct cli_bc_ctx *ctx , uint32_t);
51
int32_t cli_bcapi_file_find(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
52
int32_t cli_bcapi_file_byteat(struct cli_bc_ctx *ctx , uint32_t);
53
uint8_t* cli_bcapi_malloc(struct cli_bc_ctx *ctx , uint32_t);
54
uint32_t cli_bcapi_test2(struct cli_bc_ctx *ctx , uint32_t);
55
int32_t cli_bcapi_get_pe_section(struct cli_bc_ctx *ctx , struct cli_exe_section*, uint32_t);
56
int32_t cli_bcapi_fill_buffer(struct cli_bc_ctx *ctx , uint8_t*, uint32_t, uint32_t, uint32_t, uint32_t);
57
int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx , int32_t);
58
int32_t cli_bcapi_read_number(struct cli_bc_ctx *ctx , uint32_t);
59
int32_t cli_bcapi_hashset_new(struct cli_bc_ctx *ctx );
60
int32_t cli_bcapi_hashset_add(struct cli_bc_ctx *ctx , int32_t, uint32_t);
61
int32_t cli_bcapi_hashset_remove(struct cli_bc_ctx *ctx , int32_t, uint32_t);
62
int32_t cli_bcapi_hashset_contains(struct cli_bc_ctx *ctx , int32_t, uint32_t);
63
int32_t cli_bcapi_hashset_done(struct cli_bc_ctx *ctx , int32_t);
64
int32_t cli_bcapi_hashset_empty(struct cli_bc_ctx *ctx , int32_t);
65
int32_t cli_bcapi_buffer_pipe_new(struct cli_bc_ctx *ctx , uint32_t);
66
int32_t cli_bcapi_buffer_pipe_new_fromfile(struct cli_bc_ctx *ctx , uint32_t);
67
uint32_t cli_bcapi_buffer_pipe_read_avail(struct cli_bc_ctx *ctx , int32_t);
68
uint8_t* cli_bcapi_buffer_pipe_read_get(struct cli_bc_ctx *ctx , int32_t, uint32_t);
69
int32_t cli_bcapi_buffer_pipe_read_stopped(struct cli_bc_ctx *ctx , int32_t, uint32_t);
70
uint32_t cli_bcapi_buffer_pipe_write_avail(struct cli_bc_ctx *ctx , int32_t);
71
uint8_t* cli_bcapi_buffer_pipe_write_get(struct cli_bc_ctx *ctx , int32_t, uint32_t);
72
int32_t cli_bcapi_buffer_pipe_write_stopped(struct cli_bc_ctx *ctx , int32_t, uint32_t);
73
int32_t cli_bcapi_buffer_pipe_done(struct cli_bc_ctx *ctx , int32_t);
74
int32_t cli_bcapi_inflate_init(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t);
75
int32_t cli_bcapi_inflate_process(struct cli_bc_ctx *ctx , int32_t);
76
int32_t cli_bcapi_inflate_done(struct cli_bc_ctx *ctx , int32_t);
77
int32_t cli_bcapi_bytecode_rt_error(struct cli_bc_ctx *ctx , int32_t);
78
int32_t cli_bcapi_jsnorm_init(struct cli_bc_ctx *ctx , int32_t);
79
int32_t cli_bcapi_jsnorm_process(struct cli_bc_ctx *ctx , int32_t);
80
int32_t cli_bcapi_jsnorm_done(struct cli_bc_ctx *ctx , int32_t);
81
int32_t cli_bcapi_ilog2(struct cli_bc_ctx *ctx , uint32_t, uint32_t);
82
int32_t cli_bcapi_ipow(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t);
83
uint32_t cli_bcapi_iexp(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t);
84
int32_t cli_bcapi_isin(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t);
85
int32_t cli_bcapi_icos(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t);
86
int32_t cli_bcapi_memstr(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, const uint8_t*, int32_t);
87
int32_t cli_bcapi_hex2ui(struct cli_bc_ctx *ctx , uint32_t, uint32_t);
88
int32_t cli_bcapi_atoi(struct cli_bc_ctx *ctx , const uint8_t*, int32_t);
89
uint32_t cli_bcapi_debug_print_str_start(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
90
uint32_t cli_bcapi_debug_print_str_nonl(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t);
91
uint32_t cli_bcapi_entropy_buffer(struct cli_bc_ctx *ctx , uint8_t*, int32_t);
92
int32_t cli_bcapi_map_new(struct cli_bc_ctx *ctx , int32_t, int32_t);
93
int32_t cli_bcapi_map_addkey(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t);
94
int32_t cli_bcapi_map_setvalue(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t);
95
int32_t cli_bcapi_map_remove(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t);
96
int32_t cli_bcapi_map_find(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t);
97
int32_t cli_bcapi_map_getvaluesize(struct cli_bc_ctx *ctx , int32_t);
98
uint8_t* cli_bcapi_map_getvalue(struct cli_bc_ctx *ctx , int32_t, int32_t);
99
int32_t cli_bcapi_map_done(struct cli_bc_ctx *ctx , int32_t);
100
int32_t cli_bcapi_file_find_limit(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t, int32_t);
101
uint32_t cli_bcapi_engine_functionality_level(struct cli_bc_ctx *ctx );
102
uint32_t cli_bcapi_engine_dconf_level(struct cli_bc_ctx *ctx );
103
uint32_t cli_bcapi_engine_scan_options(struct cli_bc_ctx *ctx );
104
uint32_t cli_bcapi_engine_db_options(struct cli_bc_ctx *ctx );
105
int32_t cli_bcapi_extract_set_container(struct cli_bc_ctx *ctx , uint32_t);
106
int32_t cli_bcapi_input_switch(struct cli_bc_ctx *ctx , int32_t);
107
uint32_t cli_bcapi_get_environment(struct cli_bc_ctx *ctx , struct cli_environment*, uint32_t);
108
uint32_t cli_bcapi_disable_bytecode_if(struct cli_bc_ctx *ctx , const int8_t*, uint32_t, uint32_t);
109
uint32_t cli_bcapi_disable_jit_if(struct cli_bc_ctx *ctx , const int8_t*, uint32_t, uint32_t);
110
int32_t cli_bcapi_version_compare(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t, const uint8_t*, uint32_t);
111
uint32_t cli_bcapi_check_platform(struct cli_bc_ctx *ctx , uint32_t, uint32_t, uint32_t);
112
int32_t cli_bcapi_pdf_get_obj_num(struct cli_bc_ctx *ctx );
113
int32_t cli_bcapi_pdf_get_flags(struct cli_bc_ctx *ctx );
114
int32_t cli_bcapi_pdf_set_flags(struct cli_bc_ctx *ctx , int32_t);
115
int32_t cli_bcapi_pdf_lookupobj(struct cli_bc_ctx *ctx , uint32_t);
116
uint32_t cli_bcapi_pdf_getobjsize(struct cli_bc_ctx *ctx , int32_t);
117
uint8_t* cli_bcapi_pdf_getobj(struct cli_bc_ctx *ctx , int32_t, uint32_t);
118
int32_t cli_bcapi_pdf_getobjid(struct cli_bc_ctx *ctx , int32_t);
119
int32_t cli_bcapi_pdf_getobjflags(struct cli_bc_ctx *ctx , int32_t);
120
int32_t cli_bcapi_pdf_setobjflags(struct cli_bc_ctx *ctx , int32_t, int32_t);
121
int32_t cli_bcapi_pdf_get_offset(struct cli_bc_ctx *ctx , int32_t);
122
int32_t cli_bcapi_pdf_get_phase(struct cli_bc_ctx *ctx );
123
int32_t cli_bcapi_pdf_get_dumpedobjid(struct cli_bc_ctx *ctx );
124
int32_t cli_bcapi_matchicon(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, const uint8_t*, int32_t);
125
int32_t cli_bcapi_running_on_jit(struct cli_bc_ctx *ctx );
126
int32_t cli_bcapi_get_file_reliability(struct cli_bc_ctx *ctx );
128
const struct cli_apiglobal cli_globals[] = {
129
/* Bytecode globals BEGIN */
130
{"__clambc_match_offsets", GLOBAL_MATCH_OFFSETS, 76,
131
((char*)&((struct cli_bc_ctx*)0)->hooks.match_offsets - (char*)NULL)},
132
{"__clambc_kind", GLOBAL_KIND, 16,
133
((char*)&((struct cli_bc_ctx*)0)->hooks.kind - (char*)NULL)},
134
{"__clambc_match_counts", GLOBAL_MATCH_COUNTS, 76,
135
((char*)&((struct cli_bc_ctx*)0)->hooks.match_counts - (char*)NULL)},
136
{"__clambc_filesize", GLOBAL_FILESIZE, 75,
137
((char*)&((struct cli_bc_ctx*)0)->hooks.filesize - (char*)NULL)},
138
{"__clambc_pedata", GLOBAL_PEDATA, 69,
139
((char*)&((struct cli_bc_ctx*)0)->hooks.pedata - (char*)NULL)}
140
/* Bytecode globals END */
142
const unsigned cli_apicall_maxglobal = _LAST_GLOBAL-1;
143
static uint16_t cli_tmp0[]={32, 32, 16, 16, 74, 73, 32, 72, 70, 32, 32, 32, 32};
144
static uint16_t cli_tmp1[]={71};
145
static uint16_t cli_tmp2[]={32, 32};
146
static uint16_t cli_tmp3[]={16, 8, 8, 32, 32, 32, 32, 32, 64, 32, 32, 16, 16, 16, 16, 16, 16, 32, 32, 32, 32, 16, 16, 64, 64, 64, 64, 32, 32, 70};
147
static uint16_t cli_tmp4[]={16, 8, 8, 32, 32, 32, 32, 32, 32, 32, 32, 32, 16, 16, 16, 16, 16, 16, 32, 32, 32, 32, 16, 16, 32, 32, 32, 32, 32, 32, 70};
148
static uint16_t cli_tmp5[]={32, 16, 16, 32, 32, 32, 16, 16};
149
static uint16_t cli_tmp6[]={32};
150
static uint16_t cli_tmp7[]={32};
151
static uint16_t cli_tmp8[]={32};
152
static uint16_t cli_tmp9[]={32, 65, 32, 65, 32};
153
static uint16_t cli_tmp10[]={32, 32};
154
static uint16_t cli_tmp11[]={32, 32, 32};
155
static uint16_t cli_tmp12[]={65, 32, 32};
156
static uint16_t cli_tmp13[]={32, 32, 32, 32};
157
static uint16_t cli_tmp14[]={32, 65, 32, 32};
158
static uint16_t cli_tmp15[]={32, 85, 32};
159
static uint16_t cli_tmp16[]={86};
160
static uint16_t cli_tmp17[]={32, 32, 32, 32, 32, 32, 32, 87, 87, 87, 87, 87, 87, 87, 8, 8, 8, 8, 8, 8, 8, 8, 8};
161
static uint16_t cli_tmp18[]={8};
162
static uint16_t cli_tmp19[]={32, 65, 32};
163
static uint16_t cli_tmp20[]={32, 65, 32, 32, 32, 32};
164
static uint16_t cli_tmp21[]={32, 91, 32};
165
static uint16_t cli_tmp22[]={92};
166
static uint16_t cli_tmp23[]={32, 32, 32, 32, 32, 32, 32, 32, 32};
167
static uint16_t cli_tmp24[]={65, 32};
168
static uint16_t cli_tmp25[]={32, 95, 32};
169
static uint16_t cli_tmp26[]={96};
170
static uint16_t cli_tmp27[]={16, 8, 8, 8, 98, 97};
171
static uint16_t cli_tmp28[]={8};
172
static uint16_t cli_tmp29[]={99};
173
static uint16_t cli_tmp30[]={8};
175
const struct cli_bc_type cli_apicall_types[]={
176
{DStructType, cli_tmp0, 13, 0, 0},
177
{DArrayType, cli_tmp1, 16, 0, 0},
178
{DStructType, cli_tmp2, 2, 0, 0},
179
{DStructType, cli_tmp3, 30, 0, 0},
180
{DStructType, cli_tmp4, 31, 0, 0},
181
{DStructType, cli_tmp5, 8, 0, 0},
182
{DArrayType, cli_tmp6, 1, 0, 0},
183
{DArrayType, cli_tmp7, 64, 0, 0},
184
{DFunctionType, cli_tmp8, 1, 0, 0},
185
{DFunctionType, cli_tmp9, 5, 0, 0},
186
{DFunctionType, cli_tmp10, 2, 0, 0},
187
{DFunctionType, cli_tmp11, 3, 0, 0},
188
{DFunctionType, cli_tmp12, 3, 0, 0},
189
{DFunctionType, cli_tmp13, 4, 0, 0},
190
{DFunctionType, cli_tmp14, 4, 0, 0},
191
{DFunctionType, cli_tmp15, 3, 0, 0},
192
{DPointerType, cli_tmp16, 1, 0, 0},
193
{DStructType, cli_tmp17, 23, 0, 0},
194
{DArrayType, cli_tmp18, 65, 0, 0},
195
{DFunctionType, cli_tmp19, 3, 0, 0},
196
{DFunctionType, cli_tmp20, 6, 0, 0},
197
{DFunctionType, cli_tmp21, 3, 0, 0},
198
{DPointerType, cli_tmp22, 1, 0, 0},
199
{DStructType, cli_tmp23, 9, 0, 0},
200
{DFunctionType, cli_tmp24, 2, 0, 0},
201
{DFunctionType, cli_tmp25, 3, 0, 0},
202
{DPointerType, cli_tmp26, 1, 0, 0},
203
{DStructType, cli_tmp27, 6, 0, 0},
204
{DArrayType, cli_tmp28, 29, 0, 0},
205
{DArrayType, cli_tmp29, 3, 0, 0},
206
{DArrayType, cli_tmp30, 10, 0, 0}
209
const unsigned cli_apicall_maxtypes=sizeof(cli_apicall_types)/sizeof(cli_apicall_types[0]);
210
const struct cli_apicall cli_apicalls[]={
211
/* Bytecode APIcalls BEGIN */
216
{"setvirusname", 19, 2, 1},
217
{"debug_print_str", 19, 3, 1},
218
{"debug_print_uint", 10, 0, 2},
219
{"disasm_x86", 25, 4, 1},
220
{"trace_directory", 19, 5, 1},
221
{"trace_scope", 19, 6, 1},
222
{"trace_source", 19, 7, 1},
223
{"trace_op", 19, 8, 1},
224
{"trace_value", 19, 9, 1},
225
{"trace_ptr", 19, 10, 1},
226
{"pe_rawaddr", 10, 1, 2},
227
{"file_find", 19, 11, 1},
228
{"file_byteat", 10, 2, 2},
229
{"malloc", 24, 0, 3},
231
{"get_pe_section", 21, 12, 1},
232
{"fill_buffer", 20, 0, 4},
233
{"extract_new", 10, 4, 2},
234
{"read_number", 10, 5, 2},
235
{"hashset_new", 8, 0, 5},
236
{"hashset_add", 11, 2, 0},
237
{"hashset_remove", 11, 3, 0},
238
{"hashset_contains", 11, 4, 0},
239
{"hashset_done", 10, 6, 2},
240
{"hashset_empty", 10, 7, 2},
241
{"buffer_pipe_new", 10, 8, 2},
242
{"buffer_pipe_new_fromfile", 10, 9, 2},
243
{"buffer_pipe_read_avail", 10, 10, 2},
244
{"buffer_pipe_read_get", 12, 0, 6},
245
{"buffer_pipe_read_stopped", 11, 5, 0},
246
{"buffer_pipe_write_avail", 10, 11, 2},
247
{"buffer_pipe_write_get", 12, 1, 6},
248
{"buffer_pipe_write_stopped", 11, 6, 0},
249
{"buffer_pipe_done", 10, 12, 2},
250
{"inflate_init", 13, 0, 7},
251
{"inflate_process", 10, 13, 2},
252
{"inflate_done", 10, 14, 2},
253
{"bytecode_rt_error", 10, 15, 2},
254
{"jsnorm_init", 10, 16, 2},
255
{"jsnorm_process", 10, 17, 2},
256
{"jsnorm_done", 10, 18, 2},
263
{"hex2ui", 11, 8, 0},
265
{"debug_print_str_start", 19, 14, 1},
266
{"debug_print_str_nonl", 19, 15, 1},
267
{"entropy_buffer", 19, 16, 1},
268
{"map_new", 11, 9, 0},
269
{"map_addkey", 14, 0, 9},
270
{"map_setvalue", 14, 1, 9},
271
{"map_remove", 14, 2, 9},
272
{"map_find", 14, 3, 9},
273
{"map_getvaluesize", 10, 19, 2},
274
{"map_getvalue", 12, 2, 6},
275
{"map_done", 10, 20, 2},
276
{"file_find_limit", 14, 4, 9},
277
{"engine_functionality_level", 8, 1, 5},
278
{"engine_dconf_level", 8, 2, 5},
279
{"engine_scan_options", 8, 3, 5},
280
{"engine_db_options", 8, 4, 5},
281
{"extract_set_container", 10, 21, 2},
282
{"input_switch", 10, 22, 2},
283
{"get_environment", 15, 17, 1},
284
{"disable_bytecode_if", 14, 5, 9},
285
{"disable_jit_if", 14, 6, 9},
286
{"version_compare", 9, 1, 8},
287
{"check_platform", 13, 5, 7},
288
{"pdf_get_obj_num", 8, 5, 5},
289
{"pdf_get_flags", 8, 6, 5},
290
{"pdf_set_flags", 10, 23, 2},
291
{"pdf_lookupobj", 10, 24, 2},
292
{"pdf_getobjsize", 10, 25, 2},
293
{"pdf_getobj", 12, 3, 6},
294
{"pdf_getobjid", 10, 26, 2},
295
{"pdf_getobjflags", 10, 27, 2},
296
{"pdf_setobjflags", 11, 10, 0},
297
{"pdf_get_offset", 10, 28, 2},
298
{"pdf_get_phase", 8, 7, 5},
299
{"pdf_get_dumpedobjid", 8, 8, 5},
300
{"matchicon", 9, 2, 8},
301
{"running_on_jit", 8, 9, 5},
302
{"get_file_reliability", 8, 10, 5}
303
/* Bytecode APIcalls END */
305
const cli_apicall_int2 cli_apicalls0[] = {
306
(cli_apicall_int2)cli_bcapi_test1,
307
(cli_apicall_int2)cli_bcapi_seek,
308
(cli_apicall_int2)cli_bcapi_hashset_add,
309
(cli_apicall_int2)cli_bcapi_hashset_remove,
310
(cli_apicall_int2)cli_bcapi_hashset_contains,
311
(cli_apicall_int2)cli_bcapi_buffer_pipe_read_stopped,
312
(cli_apicall_int2)cli_bcapi_buffer_pipe_write_stopped,
313
(cli_apicall_int2)cli_bcapi_ilog2,
314
(cli_apicall_int2)cli_bcapi_hex2ui,
315
(cli_apicall_int2)cli_bcapi_map_new,
316
(cli_apicall_int2)cli_bcapi_pdf_setobjflags
318
const cli_apicall_pointer cli_apicalls1[] = {
319
(cli_apicall_pointer)cli_bcapi_read,
320
(cli_apicall_pointer)cli_bcapi_write,
321
(cli_apicall_pointer)cli_bcapi_setvirusname,
322
(cli_apicall_pointer)cli_bcapi_debug_print_str,
323
(cli_apicall_pointer)cli_bcapi_disasm_x86,
324
(cli_apicall_pointer)cli_bcapi_trace_directory,
325
(cli_apicall_pointer)cli_bcapi_trace_scope,
326
(cli_apicall_pointer)cli_bcapi_trace_source,
327
(cli_apicall_pointer)cli_bcapi_trace_op,
328
(cli_apicall_pointer)cli_bcapi_trace_value,
329
(cli_apicall_pointer)cli_bcapi_trace_ptr,
330
(cli_apicall_pointer)cli_bcapi_file_find,
331
(cli_apicall_pointer)cli_bcapi_get_pe_section,
332
(cli_apicall_pointer)cli_bcapi_atoi,
333
(cli_apicall_pointer)cli_bcapi_debug_print_str_start,
334
(cli_apicall_pointer)cli_bcapi_debug_print_str_nonl,
335
(cli_apicall_pointer)cli_bcapi_entropy_buffer,
336
(cli_apicall_pointer)cli_bcapi_get_environment
338
const cli_apicall_int1 cli_apicalls2[] = {
339
(cli_apicall_int1)cli_bcapi_debug_print_uint,
340
(cli_apicall_int1)cli_bcapi_pe_rawaddr,
341
(cli_apicall_int1)cli_bcapi_file_byteat,
342
(cli_apicall_int1)cli_bcapi_test2,
343
(cli_apicall_int1)cli_bcapi_extract_new,
344
(cli_apicall_int1)cli_bcapi_read_number,
345
(cli_apicall_int1)cli_bcapi_hashset_done,
346
(cli_apicall_int1)cli_bcapi_hashset_empty,
347
(cli_apicall_int1)cli_bcapi_buffer_pipe_new,
348
(cli_apicall_int1)cli_bcapi_buffer_pipe_new_fromfile,
349
(cli_apicall_int1)cli_bcapi_buffer_pipe_read_avail,
350
(cli_apicall_int1)cli_bcapi_buffer_pipe_write_avail,
351
(cli_apicall_int1)cli_bcapi_buffer_pipe_done,
352
(cli_apicall_int1)cli_bcapi_inflate_process,
353
(cli_apicall_int1)cli_bcapi_inflate_done,
354
(cli_apicall_int1)cli_bcapi_bytecode_rt_error,
355
(cli_apicall_int1)cli_bcapi_jsnorm_init,
356
(cli_apicall_int1)cli_bcapi_jsnorm_process,
357
(cli_apicall_int1)cli_bcapi_jsnorm_done,
358
(cli_apicall_int1)cli_bcapi_map_getvaluesize,
359
(cli_apicall_int1)cli_bcapi_map_done,
360
(cli_apicall_int1)cli_bcapi_extract_set_container,
361
(cli_apicall_int1)cli_bcapi_input_switch,
362
(cli_apicall_int1)cli_bcapi_pdf_set_flags,
363
(cli_apicall_int1)cli_bcapi_pdf_lookupobj,
364
(cli_apicall_int1)cli_bcapi_pdf_getobjsize,
365
(cli_apicall_int1)cli_bcapi_pdf_getobjid,
366
(cli_apicall_int1)cli_bcapi_pdf_getobjflags,
367
(cli_apicall_int1)cli_bcapi_pdf_get_offset
369
const cli_apicall_malloclike cli_apicalls3[] = {
370
(cli_apicall_malloclike)cli_bcapi_malloc
372
const cli_apicall_ptrbuffdata cli_apicalls4[] = {
373
(cli_apicall_ptrbuffdata)cli_bcapi_fill_buffer
375
const cli_apicall_allocobj cli_apicalls5[] = {
376
(cli_apicall_allocobj)cli_bcapi_hashset_new,
377
(cli_apicall_allocobj)cli_bcapi_engine_functionality_level,
378
(cli_apicall_allocobj)cli_bcapi_engine_dconf_level,
379
(cli_apicall_allocobj)cli_bcapi_engine_scan_options,
380
(cli_apicall_allocobj)cli_bcapi_engine_db_options,
381
(cli_apicall_allocobj)cli_bcapi_pdf_get_obj_num,
382
(cli_apicall_allocobj)cli_bcapi_pdf_get_flags,
383
(cli_apicall_allocobj)cli_bcapi_pdf_get_phase,
384
(cli_apicall_allocobj)cli_bcapi_pdf_get_dumpedobjid,
385
(cli_apicall_allocobj)cli_bcapi_running_on_jit,
386
(cli_apicall_allocobj)cli_bcapi_get_file_reliability
388
const cli_apicall_bufget cli_apicalls6[] = {
389
(cli_apicall_bufget)cli_bcapi_buffer_pipe_read_get,
390
(cli_apicall_bufget)cli_bcapi_buffer_pipe_write_get,
391
(cli_apicall_bufget)cli_bcapi_map_getvalue,
392
(cli_apicall_bufget)cli_bcapi_pdf_getobj
394
const cli_apicall_int3 cli_apicalls7[] = {
395
(cli_apicall_int3)cli_bcapi_inflate_init,
396
(cli_apicall_int3)cli_bcapi_ipow,
397
(cli_apicall_int3)cli_bcapi_iexp,
398
(cli_apicall_int3)cli_bcapi_isin,
399
(cli_apicall_int3)cli_bcapi_icos,
400
(cli_apicall_int3)cli_bcapi_check_platform
402
const cli_apicall_2bufs cli_apicalls8[] = {
403
(cli_apicall_2bufs)cli_bcapi_memstr,
404
(cli_apicall_2bufs)cli_bcapi_version_compare,
405
(cli_apicall_2bufs)cli_bcapi_matchicon
407
const cli_apicall_ptrbufid cli_apicalls9[] = {
408
(cli_apicall_ptrbufid)cli_bcapi_map_addkey,
409
(cli_apicall_ptrbufid)cli_bcapi_map_setvalue,
410
(cli_apicall_ptrbufid)cli_bcapi_map_remove,
411
(cli_apicall_ptrbufid)cli_bcapi_map_find,
412
(cli_apicall_ptrbufid)cli_bcapi_file_find_limit,
413
(cli_apicall_ptrbufid)cli_bcapi_disable_bytecode_if,
414
(cli_apicall_ptrbufid)cli_bcapi_disable_jit_if
416
const unsigned cli_apicall_maxapi = sizeof(cli_apicalls)/sizeof(cli_apicalls[0]);