Asterisk - The Open Source Telephony Project GIT-master-0644429
|
#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 nroot | __P ((BTREE *)) |
static int byteorder | __P ((void)) |
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, dbp, 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(), DB_BTREE, DB_LOCK, DB_SHMEM, DB_TXN, dbp, DEFMINKEYPAGE, EFTYPE, errno, F_CLR, F_ISSET, F_SET, _btree::flags, free(), __db::internal, LITTLE_ENDIAN, malloc(), MAX_PAGE_OFFSET, MINCACHE, MINPSIZE, mpool_filter(), mpool_open(), NBLEAFDBT, NOVFLSIZE, nroot(), NULL, P_INVALID, 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(), NULL, and set().
Referenced by __aco_option_register(), __ast_channel_alloc_ap(), __ast_channel_internal_alloc_with_initializers(), __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_read(), __ast_register_translator(), __ast_rwlock_rdlock(), __ast_rwlock_timedrdlock(), __ast_rwlock_timedwrlock(), __ast_rwlock_tryrdlock(), __ast_rwlock_trywrlock(), __ast_rwlock_wrlock(), __bt_open(), __has_voicemail(), acf_curlopt_write(), acf_odbc_read(), acf_rand_exec(), action_dahdishowchannels(), action_login(), action_originate(), actual_load_config(), add_calltoken_ignore(), add_crypto_to_stream(), add_menu_entry(), add_pri(), add_priority(), add_ssrc_to_stream(), adpcmtolin_framein(), adsi_process(), aes_helper(), app_notify(), 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_db_del2(), ast_format_def_unregister(), ast_get_enum(), ast_get_extension_data(), ast_get_hint(), ast_hashtab_hash_string(), ast_hashtab_hash_string_nocase(), ast_iax2_new(), ast_jb_read_conf(), ast_loader_register(), ast_localtime(), ast_media_cache_create_or_update(), ast_merge_contexts_and_delete(), ast_mkdir(), ast_mktime(), ast_parse_arg(), 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_sip_str_to_security_mechanism(), ast_sorcery_changeset_create(), ast_sorcery_objectset_create2(), ast_sorcery_objectset_json_create(), ast_srtp_policy_alloc(), ast_stopstream(), ast_str_encode_mime(), ast_str_get_hint(), ast_strftime(), 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_callno_limits(), build_channels(), build_extension(), build_peer(), build_radius_record(), build_rand_pad(), build_secret(), cache_lookup(), calc_metric(), calc_rxstamp_and_jitter(), caldav_add_event(), calendar_join_attendees(), channel_get_external_vars(), channel_spy(), chanspy_exec(), cli_alias_passthrough(), 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(), conf_run(), config_module(), configure_local_rtp(), controlplayback_exec(), copy_plain_file(), copy_rules(), cpeid_setstatus(), create_client(), create_followme_number(), create_foo_type_message(), create_jb(), create_outgoing_sdp_stream(), create_queue_member(), crypto_get_cert_extension_data(), custom_presence_callback(), dahdi_new(), dahdi_request(), dahdi_set_hwgain(), dahdi_set_swgain(), dahdi_show_channel(), dahdi_show_channels(), dial_exec_full(), dialgroup_read(), disa_exec(), dnsmgr_refresh(), 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(), extenspy_exec(), fetch_response_reader(), find_by_mark(), find_calendar(), find_event(), find_policy(), find_queue_by_name_rt(), find_result(), function_enum(), g722tolin16_new(), g722tolin_framein(), g722tolin_new(), g726_open(), g726aal2tolin_framein(), g726tolin_framein(), generate_fmtp_attr(), generate_rtpmap_attr(), generate_rtpmap_attr2(), generator_force(), get_multiple_fields_as_var_list(), get_single_field_as_var_list(), get_token(), gmtsub(), gr_say_number_female(), gsm_destroy_stuff(), gsm_new(), gsmtolin_framein(), handle_call_forward(), handle_cli_check_permissions(), handle_cli_confbridge_show_bridge_profile(), handle_cli_database_get(), handle_cli_iax2_show_cache(), handle_cli_keys_init(), handle_dahdi_show_cadences(), handle_minivm_show_users(), handle_select_option(), handle_setcallerid(), handle_speechrecognize(), handle_voicemail_show_users(), has_voicemail(), hash_string(), hashkeys_read2(), heap_swap(), hook_event_cb(), 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(), 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(), jingle_alloc(), jingle_enable_video(), json_decode_read(), 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_column_config(), load_config(), load_module(), load_password(), load_users(), load_values_config(), local_read(), localsub(), loopback_subst(), lpc10_dec_new(), lpc10_enc_new(), lpc10tolin_framein(), lua_pbx_exec(), mailbox_to_num(), main(), manage_calls(), manager_action(), manager_dbget(), manager_login(), minivm_accmess_exec(), minivm_greet_exec(), minivm_mwi_exec(), minivm_notify_exec(), minivm_record_exec(), mixmonitor_save_prep(), mkintf(), moh_files_write_format_change(), msg_data_find(), named_acl_find(), new_iax(), normalise_history(), odbc_load_module(), odbc_log(), ogg_vorbis_rewrite(), ooh323_get_rtp_peer(), ooh323_request(), open_history(), optimize_transactions(), P2(), page_exec(), parse_hint_device(), parse_hint_presence(), parse_tag(), parse_uri_cb(), pbx_builtin_saynumber(), pbx_builtin_sayordinal(), pbx_extension_helper(), pbx_find_extension(), pbx_load_users(), pbx_outgoing_attempt(), pbx_substitute_variables_helper_full(), peer_set_srcaddr(), peercnt_add(), peercnt_modify(), peercnt_remove_by_addr(), phoneprov_callback(), playback_exec(), pp_each_user_helper(), presence_write(), process_dahdi(), process_my_load_module(), prov_ver_calc(), publish_fully_booted(), 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_user(), rebuild_channels(), record_exec(), refer_send(), reload_config(), reload_followme(), reload_module(), reload_single_member(), request(), res_sdp_crypto_parse_offer(), res_sdp_srtp_get_attr(), ring_entry(), rxqcheck(), save_secret(), sched_alloc(), sched_delay_remove(), sched_release(), send_eivr_event(), send_raw_client(), sendmail(), sendpage(), set_config(), set_remote_mslabel_and_stream_group(), setup_rtp_connection(), setup_rtp_remote(), show_doing(), show_phone_number(), sip_dialog_create_contact(), sip_dialog_create_from(), sip_outbound_publisher_set_uri(), sip_outbound_registration_regc_alloc(), skel_exec(), 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_resource(), StateConstructW(), StateSearchW(), store_tone_zone_ring_cadence(), time1(), time2(), time2sub(), timesub(), to_string(), transfer_redirect(), transfer_refer(), try_calling(), try_redirect(), unistim_line_copy(), unistim_new(), unistim_request(), unistim_sendtext(), unistim_set_rtp_peer(), unistim_sp(), unistimsock_read(), uri_parse_and_default(), ustmtext(), validate_data(), 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().