Asterisk - The Open Source Telephony Project
18.5.0
|
#include <sys/param.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "../include/db.h"
#include "btree.h"
Go to the source code of this file.
Functions | |
int | __bt_fd (DB *dbp) const |
DB * | __bt_open (char *fname, int flags, int mode, const BTREEINFO *openinfo, int dflags) const |
static int byteorder | __P ((void)) |
static int nroot | __P ((BTREE *)) |
static int | byteorder () |
static int | nroot (BTREE *t) |
static int | tmp () |
int __bt_fd | ( | DB * | dbp | ) | const |
Definition at line 439 of file bt_open.c.
References B_INMEM, _btree::bt_fd, _btree::bt_mp, _btree::bt_pinned, errno, F_ISSET, __db::internal, mpool_put(), and NULL.
Referenced by __bt_open().
Definition at line 90 of file bt_open.c.
References __bt_close(), __bt_defcmp(), __bt_defpfx(), __bt_delete(), __bt_fd(), __bt_get(), __bt_pgin(), __bt_pgout(), __bt_put(), __bt_seq(), __bt_sync(), b, B_DB_LOCK, B_DB_SHMEM, B_DB_TXN, B_INMEM, B_METADIRTY, B_NEEDSWAP, B_NODUPS, B_RDONLY, BIG_ENDIAN, _btree::bt_dbp, _btree::bt_fd, _btree::bt_free, _btree::bt_lorder, _btree::bt_mp, _btree::bt_nrecs, _btree::bt_order, _btree::bt_ovflsize, _btree::bt_psize, _btree::bt_rfd, BTDATAOFF, BTREEMAGIC, BTREEVERSION, byteorder(), BTREEINFO::cachesize, DB_BTREE, DB_LOCK, DB_SHMEM, DB_TXN, dbp, DEFMINKEYPAGE, EFTYPE, errno, F_CLR, F_ISSET, F_SET, BTREEINFO::flags, _btree::flags, free(), __db::internal, LITTLE_ENDIAN, BTREEINFO::lorder, malloc(), MAX_PAGE_OFFSET, MINCACHE, BTREEINFO::minkeypage, MINPSIZE, mpool_filter(), mpool_open(), NBLEAFDBT, NOVFLSIZE, nroot(), NULL, P_INVALID, BTREEINFO::psize, R_DUP, RET_ERROR, SAVEMETA, tmp(), and __db::type.
Referenced by __rec_open(), and dbopen().
|
static |
|
static |
Definition at line 421 of file bt_open.c.
References BIG_ENDIAN, and LITTLE_ENDIAN.
Referenced by __bt_open().
|
static |
Definition at line 355 of file bt_open.c.
References _btree::bt_mp, _btree::bt_psize, BTDATAOFF, errno, _page::flags, _page::lower, env::meta, MPOOL_DIRTY, mpool_get(), mpool_new(), mpool_put(), _page::nextpg, NULL, P_BLEAF, P_INVALID, P_ROOT, _page::pgno, _page::prevpg, RET_ERROR, RET_SUCCESS, and _page::upper.
Referenced by __bt_open().
|
static |
Definition at line 389 of file bt_open.c.
References free(), malloc(), and NULL.
Referenced by __aco_option_register(), __ast_channel_alloc_ap(), __ast_channel_internal_alloc(), __ast_context_create(), __ast_context_destroy(), __ast_dummy_channel_alloc(), __ast_format_def_register(), __ast_internal_context_destroy(), __ast_pthread_mutex_lock(), __ast_pthread_mutex_trylock(), __ast_register_translator(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), __ast_rwlock_wrlock(), __bt_open(), _build_port_config(), _macro_exec(), _parse(), _sip_tcp_helper_thread(), acf_curlopt_write(), acf_odbc_read(), acf_rand_exec(), action_dahdishowchannels(), action_login(), action_originate(), actual_load_config(), add_crypto_to_stream(), add_date(), add_digit(), add_expires(), add_menu_entry(), add_pri(), add_priority(), add_rpid(), add_ssrc_to_stream(), adpcmtolin_framein(), adsi_process(), aes_helper(), alsa_new(), alsa_request(), aMYSQL_set(), append_date(), append_event(), append_ha_core(), append_int(), append_mailbox(), aqm_exec(), ast_add_extension2(), ast_add_extension2_lockopt(), ast_alertpipe_flush(), ast_alertpipe_read(), ast_alertpipe_write(), ast_app_group_split_group(), ast_append_acl(), ast_ari_asterisk_get_global_var(), ast_bucket_alloc(), ast_bucket_file_alloc(), ast_callerid_parse(), ast_callerid_split(), ast_callid_threadstorage_auto(), ast_cli_command_full(), ast_config_hook_unregister(), ast_config_option(), ast_context_find(), ast_context_find_or_create(), ast_format_def_unregister(), ast_get_enum(), ast_get_hint(), ast_hashtab_hash_string(), ast_hashtab_hash_string_nocase(), ast_iax2_new(), ast_jb_read_conf(), ast_loader_register(), ast_media_cache_create_or_update(), ast_merge_contexts_and_delete(), ast_mkdir(), ast_monitor_stop(), ast_privacy_check(), ast_privacy_set(), ast_read_image(), ast_register_application2(), ast_register_switch(), ast_remotecontrol(), ast_sched_add_variable(), ast_sched_context_create(), ast_sip_create_dialog_uac(), ast_sip_create_rdata_with_contact(), ast_sip_set_outbound_proxy(), ast_sorcery_changeset_create(), ast_sorcery_objectset_create2(), ast_sorcery_objectset_json_create(), ast_srtp_policy_alloc(), ast_str_encode_mime(), ast_str_get_hint(), ast_strftime_locale(), AST_TEST_DEFINE(), ast_unregister_translator(), ast_uri_decode(), ast_utf8_validator_new(), ast_variables_dup(), ast_xmldoc_printable(), auth_exec(), background_detect_exec(), bucket_file_wizard_retrieve(), bucket_wizard_retrieve(), build_channels(), build_contact(), build_peer(), build_radius_record(), build_rand_pad(), build_secret(), cache_lookup(), caldav_add_event(), calendar_join_attendees(), callstate2str(), cb_events(), cdr_handler(), chan_misdn_log(), channel_spy(), chanspy_exec(), check_peer_ok(), check_user_full(), check_via(), cli_fax_show_session(), cli_prompt(), cli_show_module_options(), cli_show_module_type(), cli_show_module_types(), codec2_destroy_stuff(), codec2_new(), codec2tolin_framein(), common_exec(), complete_queue_remove_member(), conf_get_pin(), config_module(), console_dial(), console_transfer(), control2str(), controlplayback_exec(), copy_all_header(), copy_header(), copy_plain_file(), copy_rules(), copy_vars(), cpeid_setstatus(), create_client(), create_followme_number(), create_jb(), create_outgoing_sdp_stream(), create_queue_member(), crypto_get_attrib(), custom_presence_callback(), dahdi_cc_callback(), dahdi_new(), dahdi_request(), dahdi_set_hwgain(), dahdi_set_swgain(), dahdi_show_channel(), dahdi_show_channels(), device2str(), dial_exec_full(), dialgroup_read(), disa_exec(), do_monitor(), do_pktccops(), dump_answer(), dump_ies(), dump_prov_ies(), dump_samprate(), dundi_do_lookup(), dundi_do_precache(), dundi_do_query(), dundi_ie_append_answer(), dundi_ie_append_cause(), dundi_ie_append_encdata(), dundi_ie_append_hint(), dundi_ie_append_raw(), dundi_lookup_local(), dundi_parse_ies(), dundi_reject(), dundi_showframe(), eivr_comm(), epoch_to_exchange_time(), export_ch(), extenspy_exec(), fetch_response_reader(), find_by_mark(), find_channel(), find_queue_by_name_rt(), find_result(), find_subchannel_and_lock(), free_zone(), function_enum(), g722tolin16_new(), g722tolin_framein(), g722tolin_new(), g726aal2tolin_framein(), g726tolin_framein(), generate_fmtp_attr(), generate_rtpmap_attr(), generator_force(), get_also_info(), get_chan_by_ast_name(), get_destination(), get_extension_data(), get_in_brackets(), get_in_brackets_full(), get_multiple_fields_as_var_list(), get_name_from_variable(), get_rdnis(), get_rpid(), get_single_field_as_var_list(), get_token(), gr_say_number_female(), gsm_destroy_stuff(), gsm_new(), gsmtolin_framein(), handle_call_forward(), handle_characters(), handle_cli_check_permissions(), handle_cli_confbridge_show_bridge_profile(), handle_cli_database_get(), handle_cli_iax2_show_cache(), handle_cli_keys_init(), handle_cli_misdn_send_digit(), handle_cli_misdn_send_display(), handle_cli_misdn_send_facility(), handle_cli_misdn_toggle_echocancel(), handle_dahdi_show_cadences(), handle_minivm_show_users(), handle_request_info(), handle_select_option(), handle_setcallerid(), handle_speechrecognize(), has_voicemail(), hash_string(), hashkeys_read2(), heap_swap(), iax2_call(), iax2_datetime(), iax2_devicestate(), iax2_transfer(), iax2_trunk_queue(), iax_ie_append_raw(), iax_parse_ies(), iax_provision_build(), iax_provision_version(), iax_showframe(), iax_template_parse(), icalendar_add_event(), ilbctolin_framein(), ilbctolin_new(), import_ch(), inboxcount2(), init_acf_query(), init_phone_step2(), internal_format_cap_identical(), io_context_create(), io_grow(), jingle_add_ice_udp_candidates_to_transport(), jingle_add_payloads_to_description(), launch_script(), leave_voicemail(), lin16tog722_new(), lintoadpcm_framein(), lintoadpcm_frameout(), lintocodec2_framein(), lintocodec2_frameout(), lintog722_framein(), lintog722_new(), lintog726_framein(), lintog726_new(), lintog726aal2_framein(), lintogsm_framein(), lintogsm_frameout(), lintoilbc_framein(), lintoilbc_frameout(), lintoilbc_new(), lintolpc10_framein(), lintolpc10_frameout(), lintospeex_feedback(), lintospeex_framein(), lintospeex_frameout(), load_config(), load_module(), load_password(), load_values_config(), local_read(), loopback_subst(), lpc10_dec_new(), lpc10_enc_new(), lpc10tolin_framein(), lua_pbx_exec(), main(), manage_calls(), manager_action(), manager_dbget(), manager_login(), mgcp_devicestate(), mgcp_new(), mgcp_request(), mgcp_senddigit_end(), minivm_accmess_exec(), minivm_greet_exec(), minivm_mwi_exec(), minivm_notify_exec(), minivm_record_exec(), misdn_answer(), misdn_call(), misdn_cfg_get_ports_string(), misdn_chan_is_valid(), misdn_new(), misdn_read(), misdn_send_text(), misdn_set_opt_exec(), mixmonitor_save_prep(), mkif(), mkintf(), moh_files_write_format_change(), my_load_config_number(), my_load_config_string(), nbs_new(), nbs_request(), new_iax(), normalise_history(), odbc_load_module(), odbc_log(), ogg_vorbis_rewrite(), ooh323_request(), open_history(), optimize_transactions(), osp_create_uuid(), osp_get_varfloat(), osp_get_varint(), osp_lookup(), osp_report_qos(), ospauth_exec(), ospfinished_exec(), osplookup_exec(), ospnext_exec(), P2(), page_exec(), parse_hint_device(), parse_hint_presence(), parse_tag(), parse_uri_cb(), pbx_builtin_importvar(), pbx_builtin_saynumber(), pbx_extension_helper(), pbx_find_extension(), pbx_load_users(), pbx_outgoing_attempt(), pbx_substitute_variables_helper_full(), peer_set_srcaddr(), phone_new(), phone_request(), playback_exec(), presence_write(), process_dahdi(), process_my_load_module(), process_sdp_a_audio(), prov_ver_calc(), pw_cb(), random_binaural_pos_change(), rcv_mac_addr(), read_exec(), read_mf_exec(), read_sf_exec(), realtime_directory(), realtime_ldap_base_ap(), realtime_ldap_result_to_vars(), realtime_peer(), realtime_peer_by_name(), realtime_user(), rebuild_channels(), record_exec(), register_verify(), reload_config(), reload_followme(), reload_module(), reload_single_member(), reply_digest(), reqprep(), request(), res_sdp_crypto_parse_offer(), res_sdp_srtp_get_attr(), restart_monitor(), rxqcheck(), save_secret(), sched_alloc(), send_eivr_event(), send_raw_client(), send_request(), send_response(), sendmail(), sendurl_exec(), set_config(), set_remote_mslabel_and_stream_group(), show_config_description(), show_phone_number(), sip_devicestate(), sip_dialog_create_contact(), sip_dialog_create_from(), sip_new(), sip_outbound_publisher_set_uri(), sip_outbound_registration_regc_alloc(), sip_prune_realtime(), sip_request_call(), sip_tcptls_write(), skel_exec(), skinny_devicestate(), skinny_new(), skinny_request(), skinny_senddigit_end(), smb_pitch_shift(), socket_receive_file_to_buff(), softmix_mixing_array_grow(), sorcery_config_open(), sorcery_realtime_open(), sort_items(), speech_background(), speech_read(), speech_score(), speex_decoder_construct(), speex_encoder_construct(), speextolin_framein(), sqlite3_escape_column_op(), sqlite3_escape_string_helper(), start_monitor_exec(), start_resource(), StateConstructW(), StateSearchW(), store_tone_zone_ring_cadence(), substate2str(), time2sub(), timesub(), to_string(), transfer_redirect(), transfer_refer(), transmit_connect(), transmit_connect_with_sdp(), transmit_modify_request(), transmit_modify_with_sdp(), transmit_notify_with_sipfrag(), transmit_register(), transmit_response_with_auth(), transmit_response_with_minexpires(), transmit_state_notify(), try_calling(), try_redirect(), unistim_line_copy(), unistim_new(), unistim_request(), unistim_sendtext(), unistim_sp(), unistimsock_read(), uri_parse_and_default(), ustmtext(), vm_allocate_dh(), vm_change_password(), vm_exec(), vq(), wav_open(), wav_read(), wav_rewrite(), wav_write(), while_continue_exec(), write_history(), xml_encode_str(), xmldoc_get_formatted(), xmldoc_get_syntax_config_object(), xmldoc_parse_para(), xmldoc_parse_variable(), xmldoc_parse_variablelist(), xmldoc_reverse_helper(), xmldoc_string_wrap(), and xmldoc_update_config_type().