summaryrefslogtreecommitdiff
path: root/src/include/extern.h
blob: 607dbf9588954035eb22299bf7b3e688c615d4aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
/* DO NOT EDIT: automatically built by dist/s_prototypes. */

extern int __wt_block_buffer_to_addr(WT_BLOCK *block,
    const uint8_t *p,
    off_t *offsetp,
    uint32_t *sizep,
    uint32_t *cksump);
extern int __wt_block_addr_to_buffer(WT_BLOCK *block,
    uint8_t **p,
    off_t offset,
    uint32_t size,
    uint32_t cksum);
extern int __wt_block_addr_valid(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_block_addr_string(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    WT_ITEM *buf,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_block_alloc( WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    off_t *offsetp,
    off_t size);
extern int __wt_block_free_buf(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_block_free( WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    off_t off,
    off_t size);
extern void __wt_block_freelist_open(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern int __wt_block_freelist_read(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern void __wt_block_freelist_close(WT_SESSION_IMPL *session,
    WT_BLOCK *block);
extern int __wt_block_freelist_write(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern void __wt_block_discard(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern void __wt_block_stat(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern void __wt_block_dump(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern uint32_t __wt_cksum(const void *chunk, size_t len);
extern int __wt_bm_addr_valid( WT_SESSION_IMPL *session,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_bm_addr_stderr( WT_SESSION_IMPL *session,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_bm_addr_string(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_bm_create(WT_SESSION_IMPL *session, const char *filename);
extern int __wt_bm_open(WT_SESSION_IMPL *session,
    const char *filename,
    const char *config,
    const char *cfg[],
    int salvage);
extern int __wt_bm_close(WT_SESSION_IMPL *session);
extern int __wt_bm_truncate(WT_SESSION_IMPL *session, const char *filename);
extern int __wt_bm_free(WT_SESSION_IMPL *session,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_bm_read(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_bm_block_header(WT_SESSION_IMPL *session, uint32_t *headerp);
extern int __wt_bm_write_size(WT_SESSION_IMPL *session, uint32_t *sizep);
extern int __wt_bm_write( WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    uint8_t *addr,
    uint32_t *addr_size);
extern int __wt_bm_stat(WT_SESSION_IMPL *session);
extern int __wt_bm_salvage_start(WT_SESSION_IMPL *session);
extern int __wt_bm_salvage_next(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    uint8_t *addr,
    uint32_t *addr_sizep,
    uint64_t *write_genp,
    int *eofp);
extern int __wt_bm_salvage_end(WT_SESSION_IMPL *session, int success);
extern int __wt_bm_verify_start(WT_SESSION_IMPL *session, int *emptyp);
extern int __wt_bm_verify_end(WT_SESSION_IMPL *session);
extern int __wt_bm_verify_addr(WT_SESSION_IMPL *session,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_block_truncate(WT_SESSION_IMPL *session, const char *filename);
extern int __wt_block_create(WT_SESSION_IMPL *session, const char *filename);
extern int __wt_block_open(WT_SESSION_IMPL *session,
    const char *filename,
    const char *config,
    const char *cfg[],
    int salvage,
    void *retp);
extern int __wt_block_close(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern int __wt_desc_init(WT_SESSION_IMPL *session, WT_FH *fh);
extern int __wt_block_read_buf(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    WT_ITEM *buf,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_block_read(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    WT_ITEM *buf,
    off_t offset,
    uint32_t size,
    uint32_t cksum);
extern int __wt_block_salvage_start(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern int __wt_block_salvage_end(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    int success);
extern int __wt_block_salvage_next( WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    WT_ITEM *buf,
    uint8_t *addr,
    uint32_t *addr_sizep,
    uint64_t *write_genp,
    int *eofp);
extern int __wt_block_verify_start(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    int *emptyp);
extern int __wt_block_verify_end(WT_SESSION_IMPL *session, WT_BLOCK *block);
extern int __wt_block_verify_addr(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    const uint8_t *addr,
    uint32_t addr_size);
extern int __wt_block_header(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    uint32_t *headerp);
extern int __wt_block_write_size( WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    uint32_t *sizep);
extern int __wt_block_write_buf(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    WT_ITEM *buf,
    uint8_t *addr,
    uint32_t *addr_size);
extern int __wt_block_write(WT_SESSION_IMPL *session,
    WT_BLOCK *block,
    WT_ITEM *buf,
    off_t *offsetp,
    uint32_t *sizep,
    uint32_t *cksump);
extern int __wt_bulk_init(WT_CURSOR_BULK *cbulk);
extern int __wt_bulk_insert(WT_CURSOR_BULK *cbulk);
extern int __wt_bulk_end(WT_CURSOR_BULK *cbulk);
extern int __wt_cache_create(WT_CONNECTION_IMPL *conn, const char *cfg[]);
extern void __wt_cache_stats_update(WT_CONNECTION_IMPL *conn);
extern void __wt_cache_destroy(WT_CONNECTION_IMPL *conn);
extern int __wt_cell_copy(WT_SESSION_IMPL *session,
    WT_CELL *cell,
    WT_ITEM *retb);
extern int __wt_cell_unpack_copy( WT_SESSION_IMPL *session,
    WT_CELL_UNPACK *unpack,
    WT_ITEM *retb);
extern void __wt_btcur_iterate_setup(WT_CURSOR_BTREE *cbt, int next);
extern int __wt_btcur_next(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_prev(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_reset(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_search(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_search_near(WT_CURSOR_BTREE *cbt, int *exact);
extern int __wt_btcur_insert(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_remove(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_update(WT_CURSOR_BTREE *cbt);
extern int __wt_btcur_close(WT_CURSOR_BTREE *cbt);
extern int __wt_debug_addr( WT_SESSION_IMPL *session,
    uint32_t addr,
    uint32_t size,
    const char *ofile);
extern int __wt_debug_disk( WT_SESSION_IMPL *session,
    WT_PAGE_HEADER *dsk,
    const char *ofile);
extern int __wt_debug_tree_all(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    const char *ofile);
extern int __wt_debug_tree(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    const char *ofile);
extern int __wt_debug_page(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    const char *ofile);
extern void __wt_page_out(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    uint32_t flags);
extern void __wt_evict_server_wake(WT_SESSION_IMPL *session);
extern void __wt_evict_file_serial_func(WT_SESSION_IMPL *session);
extern int __wt_evict_page_request(WT_SESSION_IMPL *session, WT_PAGE *page);
extern void *__wt_cache_evict_server(void *arg);
extern int __wt_evict_lru_page(WT_SESSION_IMPL *session, int is_app);
extern int __wt_btree_create(WT_SESSION_IMPL *session, const char *filename);
extern int __wt_btree_truncate(WT_SESSION_IMPL *session, const char *filename);
extern int __wt_btree_open(WT_SESSION_IMPL *session,
    const char *name,
    const char *filename,
    const char *config,
    const char *cfg[],
    uint32_t flags);
extern int __wt_btree_reopen(WT_SESSION_IMPL *session, uint32_t flags);
extern int __wt_btree_root_init(WT_SESSION_IMPL *session, WT_ITEM *addr);
extern int __wt_btree_root_empty(WT_SESSION_IMPL *session, WT_PAGE **leafp);
extern int __wt_btree_close(WT_SESSION_IMPL *session);
extern int __wt_btree_huffman_open(WT_SESSION_IMPL *session,
    const char *config);
extern void __wt_btree_huffman_close(WT_SESSION_IMPL *session);
extern const char *__wt_page_type_string(u_int type);
extern const char *__wt_cell_type_string(uint8_t type);
extern const char *__wt_page_addr_string(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    WT_PAGE *page);
extern const char *__wt_addr_string( WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const uint8_t *addr,
    uint32_t size);
extern int __wt_ovfl_in( WT_SESSION_IMPL *session,
    WT_ITEM *store,
    const uint8_t *addr,
    uint32_t len);
extern int
__wt_page_in_func(
 WT_SESSION_IMPL *session, WT_PAGE *parent, WT_REF *ref
#ifdef HAVE_DIAGNOSTIC
 , const char *file, int line
#endif
 );
extern int __wt_page_inmem(WT_SESSION_IMPL *session,
    WT_PAGE *parent,
    WT_REF *parent_ref,
    WT_PAGE_HEADER *dsk,
    WT_PAGE **pagep);
extern int __wt_page_modify_init(WT_SESSION_IMPL *session, WT_PAGE *page);
extern int __wt_cache_read(WT_SESSION_IMPL *session,
    WT_PAGE *parent,
    WT_REF *ref);
extern int __wt_kv_return(WT_SESSION_IMPL *session,
    WT_CURSOR_BTREE *cbt,
    int key_ret);
extern int __wt_btree_get_root(WT_SESSION_IMPL *session, WT_ITEM *addr);
extern int __wt_btree_free_root(WT_SESSION_IMPL *session);
extern int __wt_btree_set_root(WT_SESSION_IMPL *session,
    uint8_t *addr,
    uint32_t size);
extern int __wt_salvage(WT_SESSION_IMPL *session, const char *cfg[]);
extern int __wt_btree_stat_init(WT_SESSION_IMPL *session);
extern int __wt_btree_sync(WT_SESSION_IMPL *session, const char *cfg[]);
extern int __wt_upgrade(WT_SESSION_IMPL *session, const char *cfg[]);
extern int __wt_verify(WT_SESSION_IMPL *session, const char *cfg[]);
extern int __wt_dumpfile(WT_SESSION_IMPL *session, const char *cfg[]);
extern int __wt_verify_dsk(WT_SESSION_IMPL *session,
    const char *addr,
    WT_PAGE_HEADER *dsk,
    uint32_t size);
extern int __wt_tree_np(WT_SESSION_IMPL *session,
    WT_PAGE **pagep,
    int cacheonly,
    int next);
extern int __wt_col_modify(WT_SESSION_IMPL *session,
    WT_CURSOR_BTREE *cbt,
    int op);
extern void __wt_col_append_serial_func(WT_SESSION_IMPL *session);
extern int __wt_col_search(WT_SESSION_IMPL *session,
    WT_CURSOR_BTREE *cbt,
    int is_modify);
extern int __wt_rec_evict(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    uint32_t flags);
extern int __wt_rec_track_block(WT_SESSION_IMPL *session,
    __wt_pt_type_t type,
    WT_PAGE *page,
    const uint8_t *addr,
    uint32_t size);
extern int __wt_rec_track_ovfl(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    uint8_t *addr,
    uint32_t addr_size,
    const void *data,
    uint32_t data_size);
extern int __wt_rec_track_ovfl_reuse(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    const void *data,
    uint32_t size,
    uint8_t **addrp,
    uint32_t *sizep);
extern int __wt_rec_track_init(WT_SESSION_IMPL *session, WT_PAGE *page);
extern int __wt_rec_track_wrapup(WT_SESSION_IMPL *session,
    WT_PAGE *page,
    int final);
extern int __wt_rec_write( WT_SESSION_IMPL *session,
    WT_PAGE *page,
    WT_SALVAGE_COOKIE *salvage);
extern void __wt_rec_destroy(WT_SESSION_IMPL *session);
extern int __wt_rec_bulk_init(WT_CURSOR_BULK *cbulk);
extern int __wt_rec_bulk_wrapup(WT_CURSOR_BULK *cbulk);
extern int __wt_rec_row_bulk_insert(WT_CURSOR_BULK *cbulk);
extern int __wt_rec_col_fix_bulk_insert(WT_CURSOR_BULK *cbulk);
extern int __wt_rec_col_var_bulk_insert(WT_CURSOR_BULK *cbulk);
extern int __wt_row_leaf_keys(WT_SESSION_IMPL *session, WT_PAGE *page);
extern int __wt_row_key( WT_SESSION_IMPL *session,
    WT_PAGE *page,
    WT_ROW *rip_arg,
    WT_ITEM *retb);
extern WT_CELL *__wt_row_value(WT_PAGE *page, WT_ROW *rip);
extern int __wt_row_ikey_alloc(WT_SESSION_IMPL *session,
    uint32_t cell_offset,
    const void *key,
    uint32_t size,
    WT_IKEY **ikeyp);
extern void __wt_row_key_serial_func(WT_SESSION_IMPL *session);
extern int __wt_row_modify(WT_SESSION_IMPL *session,
    WT_CURSOR_BTREE *cbt,
    int is_remove);
extern int __wt_row_insert_alloc(WT_SESSION_IMPL *session,
    WT_ITEM *key,
    u_int skipdepth,
    WT_INSERT **insp,
    size_t *ins_sizep);
extern void __wt_insert_serial_func(WT_SESSION_IMPL *session);
extern int __wt_update_alloc(WT_SESSION_IMPL *session,
    WT_ITEM *value,
    WT_UPDATE **updp,
    size_t *sizep);
extern void __wt_update_serial_func(WT_SESSION_IMPL *session);
extern WT_INSERT *__wt_search_insert(WT_SESSION_IMPL *session,
    WT_CURSOR_BTREE *cbt,
    WT_INSERT_HEAD *inshead,
    WT_ITEM *srch_key);
extern int __wt_row_search(WT_SESSION_IMPL *session,
    WT_CURSOR_BTREE *cbt,
    int is_modify);
extern int __wt_config_initn( WT_SESSION_IMPL *session,
    WT_CONFIG *conf,
    const char *str,
    size_t len);
extern int __wt_config_init(WT_SESSION_IMPL *session,
    WT_CONFIG *conf,
    const char *str);
extern int __wt_config_subinit( WT_SESSION_IMPL *session,
    WT_CONFIG *conf,
    WT_CONFIG_ITEM *item);
extern int __wt_config_next(WT_CONFIG *conf,
    WT_CONFIG_ITEM *key,
    WT_CONFIG_ITEM *value);
extern int __wt_config_getraw( WT_CONFIG *cparser,
    WT_CONFIG_ITEM *key,
    WT_CONFIG_ITEM *value);
extern int __wt_config_get(WT_SESSION_IMPL *session,
    const char **cfg,
    WT_CONFIG_ITEM *key,
    WT_CONFIG_ITEM *value);
extern int __wt_config_gets(WT_SESSION_IMPL *session,
    const char **cfg,
    const char *key,
    WT_CONFIG_ITEM *value);
extern  int __wt_config_getone(WT_SESSION_IMPL *session,
    const char *cfg,
    WT_CONFIG_ITEM *key,
    WT_CONFIG_ITEM *value);
extern  int __wt_config_getones(WT_SESSION_IMPL *session,
    const char *cfg,
    const char *key,
    WT_CONFIG_ITEM *value);
extern  int __wt_config_subgetraw(WT_SESSION_IMPL *session,
    WT_CONFIG_ITEM *cfg,
    WT_CONFIG_ITEM *key,
    WT_CONFIG_ITEM *value);
extern  int __wt_config_subgets(WT_SESSION_IMPL *session,
    WT_CONFIG_ITEM *cfg,
    const char *key,
    WT_CONFIG_ITEM *value);
extern int __wt_config_check(WT_SESSION_IMPL *session,
    const char *checks,
    const char *config);
extern int __wt_config_collapse(WT_SESSION_IMPL *session,
    const char **cfg,
    const char **config_ret);
extern int __wt_config_concat( WT_SESSION_IMPL *session,
    const char **cfg,
    const char **config_ret);
extern const char *__wt_confdfl_colgroup_meta;
extern const char *__wt_confchk_colgroup_meta;
extern const char *__wt_confdfl_connection_add_collator;
extern const char *__wt_confchk_connection_add_collator;
extern const char *__wt_confdfl_connection_add_compressor;
extern const char *__wt_confchk_connection_add_compressor;
extern const char *__wt_confdfl_connection_add_cursor_type;
extern const char *__wt_confchk_connection_add_cursor_type;
extern const char *__wt_confdfl_connection_add_extractor;
extern const char *__wt_confchk_connection_add_extractor;
extern const char *__wt_confdfl_connection_close;
extern const char *__wt_confchk_connection_close;
extern const char *__wt_confdfl_connection_load_extension;
extern const char *__wt_confchk_connection_load_extension;
extern const char *__wt_confdfl_connection_open_session;
extern const char *__wt_confchk_connection_open_session;
extern const char *__wt_confdfl_cursor_close;
extern const char *__wt_confchk_cursor_close;
extern const char *__wt_confdfl_file_meta;
extern const char *__wt_confchk_file_meta;
extern const char *__wt_confdfl_index_meta;
extern const char *__wt_confchk_index_meta;
extern const char *__wt_confdfl_session_begin_transaction;
extern const char *__wt_confchk_session_begin_transaction;
extern const char *__wt_confdfl_session_checkpoint;
extern const char *__wt_confchk_session_checkpoint;
extern const char *__wt_confdfl_session_close;
extern const char *__wt_confchk_session_close;
extern const char *__wt_confdfl_session_commit_transaction;
extern const char *__wt_confchk_session_commit_transaction;
extern const char *__wt_confdfl_session_create;
extern const char *__wt_confchk_session_create;
extern const char *__wt_confdfl_session_drop;
extern const char *__wt_confchk_session_drop;
extern const char *__wt_confdfl_session_dumpfile;
extern const char *__wt_confchk_session_dumpfile;
extern const char *__wt_confdfl_session_log_printf;
extern const char *__wt_confchk_session_log_printf;
extern const char *__wt_confdfl_session_open_cursor;
extern const char *__wt_confchk_session_open_cursor;
extern const char *__wt_confdfl_session_rename;
extern const char *__wt_confchk_session_rename;
extern const char *__wt_confdfl_session_rollback_transaction;
extern const char *__wt_confchk_session_rollback_transaction;
extern const char *__wt_confdfl_session_salvage;
extern const char *__wt_confchk_session_salvage;
extern const char *__wt_confdfl_session_sync;
extern const char *__wt_confchk_session_sync;
extern const char *__wt_confdfl_session_truncate;
extern const char *__wt_confchk_session_truncate;
extern const char *__wt_confdfl_session_upgrade;
extern const char *__wt_confchk_session_upgrade;
extern const char *__wt_confdfl_session_verify;
extern const char *__wt_confchk_session_verify;
extern const char *__wt_confdfl_table_meta;
extern const char *__wt_confchk_table_meta;
extern const char *__wt_confdfl_wiredtiger_open;
extern const char *__wt_confchk_wiredtiger_open;
extern int __wt_connection_init(WT_CONNECTION_IMPL *conn);
extern void __wt_connection_destroy(WT_CONNECTION_IMPL *conn);
extern int __wt_connection_open(WT_CONNECTION_IMPL *conn, const char *cfg[]);
extern int __wt_connection_close(WT_CONNECTION_IMPL *conn);
extern void __wt_conn_stat_init(WT_SESSION_IMPL *session);
extern int __wt_curbulk_init(WT_CURSOR_BULK *cbulk);
extern int __wt_curconfig_open(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[],
    WT_CURSOR **cursorp);
extern void __wt_curdump_init(WT_CURSOR *cursor);
extern int __wt_curfile_create(WT_SESSION_IMPL *session,
    const char *cfg[],
    WT_CURSOR **cursorp);
extern int __wt_curfile_open(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[],
    WT_CURSOR **cursorp);
extern int __wt_curindex_open(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[],
    WT_CURSOR **cursorp);
extern int __wt_curstat_open(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[],
    WT_CURSOR **cursorp);
extern int __wt_cursor_notsup(WT_CURSOR *cursor);
extern int __wt_cursor_get_key(WT_CURSOR *cursor, ...);
extern int __wt_cursor_get_keyv(WT_CURSOR *cursor, uint32_t flags, va_list ap);
extern int __wt_cursor_get_value(WT_CURSOR *cursor, ...);
extern void __wt_cursor_set_key(WT_CURSOR *cursor, ...);
extern void __wt_cursor_set_keyv(WT_CURSOR *cursor, uint32_t flags, va_list ap);
extern void __wt_cursor_set_value(WT_CURSOR *cursor, ...);
extern int __wt_cursor_close(WT_CURSOR *cursor);
extern int __wt_cursor_init(WT_CURSOR *cursor,
    const char *uri,
    int is_file,
    int is_public,
    const char *cfg[]) 	WT_GCC_ATTRIBUTE((warn_unused_result));
extern int __wt_cursor_kv_not_set(WT_CURSOR *cursor, int key);
extern int __wt_curtable_get_key(WT_CURSOR *cursor, ...);
extern int __wt_curtable_get_value(WT_CURSOR *cursor, ...);
extern void __wt_curtable_set_key(WT_CURSOR *cursor, ...);
extern void __wt_curtable_set_value(WT_CURSOR *cursor, ...);
extern int __wt_curtable_open(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[],
    WT_CURSOR **cursorp);
extern int __wt_log_put(WT_SESSION_IMPL *session, WT_LOGREC_DESC *recdesc, ...);
extern int __wt_log_vprintf(WT_SESSION_IMPL *session,
    const char *fmt,
    va_list ap);
extern int __wt_log_printf(WT_SESSION_IMPL *session,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    2,
    3)));
extern WT_LOGREC_DESC __wt_logdesc_debug;
extern void __wt_abort(WT_SESSION_IMPL *session);
extern int __wt_calloc(WT_SESSION_IMPL *session,
    size_t number,
    size_t size,
    void *retp);
extern int __wt_realloc(WT_SESSION_IMPL *session,
    size_t *bytes_allocated_ret,
    size_t bytes_to_allocate,
    void *retp);
extern int __wt_strndup(WT_SESSION_IMPL *session,
    const char *str,
    size_t len,
    void *retp);
extern int __wt_strdup(WT_SESSION_IMPL *session, const char *str, void *retp);
extern void __wt_free_int(WT_SESSION_IMPL *session, void *p_arg);
extern int __wt_dlopen(WT_SESSION_IMPL *session,
    const char *path,
    WT_DLH **dlhp);
extern int __wt_dlsym( WT_SESSION_IMPL *session,
    WT_DLH *dlh,
    const char *name,
    void *sym_ret);
extern int __wt_dlclose(WT_SESSION_IMPL *session, WT_DLH *dlh);
extern int __wt_errno(void);
extern int __wt_exist(WT_SESSION_IMPL *session, const char *name, int *existp);
extern int __wt_filesize(WT_SESSION_IMPL *session, WT_FH *fh, off_t *sizep);
extern int __wt_bytelock(WT_FH *fhp, off_t byte, int lock);
extern int __wt_fsync(WT_SESSION_IMPL *session, WT_FH *fh);
extern int __wt_ftruncate(WT_SESSION_IMPL *session, WT_FH *fh, off_t len);
extern int __wt_cond_alloc(WT_SESSION_IMPL *session,
    const char *name,
    int is_locked,
    WT_CONDVAR **condp);
extern void __wt_cond_wait(WT_SESSION_IMPL *session, WT_CONDVAR *cond);
extern void __wt_cond_signal(WT_SESSION_IMPL *session, WT_CONDVAR *cond);
extern int __wt_cond_destroy(WT_SESSION_IMPL *session, WT_CONDVAR *cond);
extern int __wt_rwlock_alloc( WT_SESSION_IMPL *session,
    const char *name,
    WT_RWLOCK **rwlockp);
extern void __wt_readlock(WT_SESSION_IMPL *session, WT_RWLOCK *rwlock);
extern int __wt_try_writelock(WT_SESSION_IMPL *session, WT_RWLOCK *rwlock);
extern void __wt_writelock(WT_SESSION_IMPL *session, WT_RWLOCK *rwlock);
extern void __wt_rwunlock(WT_SESSION_IMPL *session, WT_RWLOCK *rwlock);
extern int __wt_rwlock_destroy(WT_SESSION_IMPL *session, WT_RWLOCK *rwlock);
extern int __wt_open(WT_SESSION_IMPL *session,
    const char *name,
    int create,
    WT_FH **fhp);
extern int __wt_close(WT_SESSION_IMPL *session, WT_FH *fh);
extern int __wt_has_priv(void);
extern int __wt_remove(WT_SESSION_IMPL *session, const char *name);
extern int __wt_rename(WT_SESSION_IMPL *session,
    const char *from,
    const char *to);
extern int __wt_read(WT_SESSION_IMPL *session,
    WT_FH *fh,
    off_t offset,
    uint32_t bytes,
    void *buf);
extern int __wt_write(WT_SESSION_IMPL *session,
    WT_FH *fh,
    off_t offset,
    uint32_t bytes,
    const void *buf);
extern void __wt_sleep(long seconds, long micro_seconds);
extern int __wt_thread_create(pthread_t *tidret,
    void *(*func)(void *),
    void *arg);
extern int __wt_thread_join(pthread_t tid);
extern void __wt_yield(void);
extern int __wt_struct_check(WT_SESSION_IMPL *session,
    const char *fmt,
    size_t len,
    int *fixedp,
    uint32_t *fixed_lenp);
extern size_t __wt_struct_sizev(WT_SESSION_IMPL *session,
    const char *fmt,
    va_list ap);
extern size_t __wt_struct_size(WT_SESSION_IMPL *session, const char *fmt, ...);
extern int __wt_struct_packv(WT_SESSION_IMPL *session,
    void *buffer,
    size_t size,
    const char *fmt,
    va_list ap);
extern int __wt_struct_pack(WT_SESSION_IMPL *session,
    void *buffer,
    size_t size,
    const char *fmt,
    ...);
extern int __wt_struct_unpackv(WT_SESSION_IMPL *session,
    const void *buffer,
    size_t size,
    const char *fmt,
    va_list ap);
extern int __wt_struct_unpack(WT_SESSION_IMPL *session,
    const void *buffer,
    size_t size,
    const char *fmt,
    ...);
extern int __wt_create_file(WT_SESSION_IMPL *session,
    const char *name,
    const char *fileuri,
    const char *config);
extern int __wt_schema_create( WT_SESSION_IMPL *session,
    const char *name,
    const char *config);
extern int __wt_schema_drop(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[]);
extern int __wt_schema_add_table( WT_SESSION_IMPL *session, WT_TABLE *table);
extern int __wt_schema_find_table(WT_SESSION_IMPL *session,
    const char *name,
    size_t namelen,
    WT_TABLE **tablep);
extern int __wt_schema_get_table(WT_SESSION_IMPL *session,
    const char *name,
    size_t namelen,
    WT_TABLE **tablep);
extern void __wt_schema_destroy_table(WT_SESSION_IMPL *session,
    WT_TABLE *table);
extern int __wt_schema_remove_table( WT_SESSION_IMPL *session, WT_TABLE *table);
extern int __wt_schema_close_tables(WT_SESSION_IMPL *session);
extern void __wt_schema_detach_tree(WT_SESSION_IMPL *session, WT_BTREE *btree);
extern int __wt_schema_colgroup_name(WT_SESSION_IMPL *session,
    WT_TABLE *table,
    const char *cgname,
    size_t len,
    char **namebufp);
extern int __wt_schema_get_btree(WT_SESSION_IMPL *session,
    const char *objname,
    size_t len,
    const char *cfg[],
    uint32_t flags);
extern int __wt_schema_open_colgroups(WT_SESSION_IMPL *session,
    WT_TABLE *table);
extern int __wt_schema_open_index( WT_SESSION_IMPL *session,
    WT_TABLE *table,
    const char *idxname,
    size_t len);
extern int __wt_schema_open_table(WT_SESSION_IMPL *session,
    const char *name,
    size_t namelen,
    WT_TABLE **tablep);
extern int __wt_schema_colcheck(WT_SESSION_IMPL *session,
    const char *key_format,
    const char *value_format,
    WT_CONFIG_ITEM *colconf,
    int *kcolsp,
    int *vcolsp);
extern int __wt_table_check(WT_SESSION_IMPL *session, WT_TABLE *table);
extern int __wt_struct_plan(WT_SESSION_IMPL *session,
    WT_TABLE *table,
    const char *columns,
    size_t len,
    int value_only,
    WT_ITEM *plan);
extern int __wt_struct_reformat(WT_SESSION_IMPL *session,
    WT_TABLE *table,
    const char *columns,
    size_t len,
    const char *extra_cols,
    int value_only,
    WT_ITEM *format);
extern int __wt_struct_truncate(WT_SESSION_IMPL *session,
    const char *input_fmt,
    u_int ncols,
    WT_ITEM *format);
extern int __wt_schema_project_in(WT_SESSION_IMPL *session,
    WT_CURSOR **cp,
    const char *proj_arg,
    va_list ap);
extern int __wt_schema_project_out(WT_SESSION_IMPL *session,
    WT_CURSOR **cp,
    const char *proj_arg,
    va_list ap);
extern int __wt_schema_project_slice(WT_SESSION_IMPL *session,
    WT_CURSOR **cp,
    const char *proj_arg,
    int key_only,
    const char *vformat,
    WT_ITEM *value);
extern int __wt_schema_project_merge(WT_SESSION_IMPL *session,
    WT_CURSOR **cp,
    const char *proj_arg,
    const char *vformat,
    WT_ITEM *value);
extern int __wt_schema_rename(WT_SESSION_IMPL *session,
    const char *uri,
    const char *newuri,
    const char *cfg[]);
extern int __wt_schema_table_cursor( WT_SESSION_IMPL *session,
    const char *config,
    WT_CURSOR **cursorp);
extern int __wt_schema_table_insert( WT_SESSION_IMPL *session,
    const char *key,
    const char *value);
extern int __wt_schema_table_update( WT_SESSION_IMPL *session,
    const char *key,
    const char *value);
extern int __wt_schema_table_remove(WT_SESSION_IMPL *session, const char *key);
extern int __wt_schema_table_read( WT_SESSION_IMPL *session,
    const char *key,
    const char **valuep);
extern int __wt_schema_table_track_on(WT_SESSION_IMPL *session);
extern int __wt_schema_table_track_off(WT_SESSION_IMPL *session, int unroll);
extern int __wt_schema_table_track_insert(WT_SESSION_IMPL *session,
    const char *key);
extern int __wt_schema_table_track_update(WT_SESSION_IMPL *session,
    const char *key);
extern int __wt_schema_table_track_fileop( WT_SESSION_IMPL *session,
    const char *oldname,
    const char *newname);
extern int __wt_schema_truncate( WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[]);
extern int __wt_schema_name_check(WT_SESSION_IMPL *session, const char *uri);
extern int __wt_schema_worker(WT_SESSION_IMPL *session,
    const char *uri,
    const char *cfg[],
    int (*func)(WT_SESSION_IMPL *,
    const char *[]),
    uint32_t open_flags);
extern int __wt_open_session(WT_CONNECTION_IMPL *conn,
    int internal,
    WT_EVENT_HANDLER *event_handler,
    const char *config,
    WT_SESSION_IMPL **sessionp);
extern int __wt_session_add_btree( WT_SESSION_IMPL *session,
    WT_BTREE_SESSION **btree_sessionp);
extern int __wt_session_has_btree(WT_SESSION_IMPL *session, WT_BTREE *btree);
extern int __wt_session_lock_btree( WT_SESSION_IMPL *session,
    const char *cfg[],
    uint32_t flags);
extern int __wt_session_release_btree(WT_SESSION_IMPL *session);
extern int __wt_session_find_btree(WT_SESSION_IMPL *session,
    const char *filename,
    size_t namelen,
    const char *cfg[],
    uint32_t flags,
    WT_BTREE_SESSION **btree_sessionp);
extern int __wt_session_get_btree(WT_SESSION_IMPL *session,
    const char *name,
    const char *fileuri,
    const char *tconfig,
    const char *cfg[],
    uint32_t flags);
extern int __wt_session_remove_btree( WT_SESSION_IMPL *session,
    WT_BTREE_SESSION *btree_session);
extern int __wt_session_close_any_open_btree(WT_SESSION_IMPL *session,
    const char *name);
extern void __wt_eventv(WT_SESSION_IMPL *session,
    int msg_event,
    int error,
    const char *file_name,
    int line_number,
    const char *fmt,
    va_list ap);
extern void __wt_err(WT_SESSION_IMPL *session,
    int error,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    3,
    4)));
extern void __wt_errx(WT_SESSION_IMPL *session,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    2,
    3)));
extern void __wt_msgv(WT_SESSION_IMPL *session, const char *fmt, va_list ap);
extern void __wt_verbose(WT_SESSION_IMPL *session,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    2,
    3)));
extern void __wt_msg(WT_SESSION_IMPL *session,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    2,
    3)));
extern int __wt_assert(WT_SESSION_IMPL *session,
    int error,
    const char *file_name,
    int line_number,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    5,
    6)));
extern int __wt_illegal_value(WT_SESSION_IMPL *session);
extern int __wt_unknown_object_type(WT_SESSION_IMPL *session, const char *uri);
extern int __wt_filename(WT_SESSION_IMPL *session,
    const char *name,
    const char **path);
extern int __wt_library_init(void);
extern int __wt_breakpoint(void);
extern void __wt_attach(WT_SESSION_IMPL *session);
extern int
__wt_hazard_set(WT_SESSION_IMPL *session, WT_REF *ref
#ifdef HAVE_DIAGNOSTIC
 , const char *file, int line
#endif
 );
extern void __wt_hazard_clear(WT_SESSION_IMPL *session, WT_PAGE *page);
extern void __wt_hazard_empty(WT_SESSION_IMPL *session);
extern void __wt_hazard_validate(WT_SESSION_IMPL *session, WT_PAGE *page);
extern void __wt_raw_to_hex(const void *from, void *to, uint32_t *sizep);
extern void __wt_raw_to_esc_hex(const void *from, void *to, uint32_t *sizep);
extern int __wt_hex_to_raw( WT_SESSION_IMPL *session,
    void *from,
    void *to,
    uint32_t *sizep);
extern int __wt_esc_hex_to_raw( WT_SESSION_IMPL *session,
    void *from,
    void *to,
    uint32_t *sizep);
extern int __wt_huffman_open(WT_SESSION_IMPL *session,
    void *symbol_frequency_array,
    u_int symcnt,
    u_int numbytes,
    void *retp);
extern void __wt_huffman_close(WT_SESSION_IMPL *session, void *huffman_arg);
extern int __wt_print_huffman_code(void *huffman_arg, uint16_t symbol);
extern int __wt_huffman_encode(WT_SESSION_IMPL *session,
    void *huffman_arg,
    const uint8_t *from_arg,
    uint32_t from_len,
    WT_ITEM *to_buf);
extern int __wt_huffman_decode(WT_SESSION_IMPL *session,
    void *huffman_arg,
    const uint8_t *from_arg,
    uint32_t from_len,
    WT_ITEM *to_buf);
extern uint32_t __wt_nlpo2_round(uint32_t v);
extern uint32_t __wt_nlpo2(uint32_t v);
extern int __wt_ispo2(uint32_t v);
extern uint32_t __wt_random(void);
extern int __wt_buf_init(WT_SESSION_IMPL *session, WT_ITEM *buf, size_t size);
extern int __wt_buf_initsize(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    size_t size);
extern int __wt_buf_grow(WT_SESSION_IMPL *session, WT_ITEM *buf, size_t size);
extern int __wt_buf_set( WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const void *data,
    size_t size);
extern int __wt_buf_set_printable( WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const void *from_arg,
    size_t size);
extern void *__wt_buf_steal(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    uint32_t *sizep);
extern void __wt_buf_swap(WT_ITEM *a, WT_ITEM *b);
extern void __wt_buf_free(WT_SESSION_IMPL *session, WT_ITEM *buf);
extern int __wt_buf_fmt(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    3,
    4)));
extern int __wt_buf_catfmt(WT_SESSION_IMPL *session,
    WT_ITEM *buf,
    const char *fmt,
    ...) WT_GCC_ATTRIBUTE((format (printf,
    3,
    4)));
extern int __wt_scr_alloc(WT_SESSION_IMPL *session,
    uint32_t size,
    WT_ITEM **scratchp);
extern void __wt_scr_free(WT_ITEM **bufp);
extern void __wt_scr_discard(WT_SESSION_IMPL *session);
extern void *__wt_scr_alloc_ext(WT_SESSION *wt_session, size_t size);
extern void __wt_scr_free_ext(WT_SESSION *wt_session, void *p);
extern void __wt_session_dump_all(WT_SESSION_IMPL *session);
extern void __wt_session_dump(WT_SESSION_IMPL *session);
extern int __wt_stat_alloc_btree_stats(WT_SESSION_IMPL *session,
    WT_BTREE_STATS **statsp);
extern void __wt_stat_clear_btree_stats(WT_STATS *stats_arg);
extern int __wt_stat_alloc_connection_stats(WT_SESSION_IMPL *session,
    WT_CONNECTION_STATS **statsp);
extern void __wt_stat_clear_connection_stats(WT_STATS *stats_arg);