Asterisk - The Open Source Telephony Project
18.5.0
|
General Definitions for Asterisk top level program Included by asterisk.h to handle platform-specific issues especially those related to header files. More...
#include "asterisk/compiler.h"
#include <inttypes.h>
#include <limits.h>
#include <unistd.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdarg.h>
#include <stdlib.h>
#include <alloca.h>
#include <stdio.h>
#include <string.h>
#include <poll.h>
#include <errno.h>
#include <glob.h>
Go to the source code of this file.
Macros | |
#define | __STDC_VERSION__ 0 |
#define | INFINITY (1.0/0.0) |
#define | LLONG_MAX 9223372036854775807LL |
#define | MY_GLOB_FLAGS GLOB_NOCHECK |
#define | NAN (0.0/0.0) |
#define | strlcat __use__ast_str__functions_not__strlcat__ |
#define | strlcpy __use__ast_copy_string__not__strlcpy__ |
Functions | |
int | asprintf (char **str, const char *fmt,...) |
void | closefrom (int lowfd) |
int | ffsll (long long n) |
int | getloadavg (double *list, int nelem) |
uint64_t | htonll (uint64_t host64) |
char * | mkdtemp (char *template_s) |
uint64_t | ntohll (uint64_t net64) |
float | roundf (float x) |
int | setenv (const char *name, const char *value, int overwrite) |
char * | strcasestr (const char *, const char *) |
char * | strndup (const char *, size_t) |
size_t | strnlen (const char *, size_t) |
char * | strsep (char **str, const char *delims) |
uint64_t | strtoq (const char *nptr, char **endptr, int base) |
void | timersub (struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff) |
int | unsetenv (const char *name) |
int | vasprintf (char **strp, const char *fmt, va_list ap) |
General Definitions for Asterisk top level program Included by asterisk.h to handle platform-specific issues especially those related to header files.
Definition in file include/asterisk/compat.h.
#define __STDC_VERSION__ 0 |
Definition at line 27 of file include/asterisk/compat.h.
#define INFINITY (1.0/0.0) |
Definition at line 210 of file include/asterisk/compat.h.
Referenced by cli_endpoint_print_body().
#define LLONG_MAX 9223372036854775807LL |
Definition at line 60 of file include/asterisk/compat.h.
Referenced by AST_TEST_DEFINE(), file_read(), and file_write().
#define MY_GLOB_FLAGS GLOB_NOCHECK |
Definition at line 196 of file include/asterisk/compat.h.
Referenced by ast_xmldoc_load_documentation(), and config_text_file_load().
#define NAN (0.0/0.0) |
Definition at line 214 of file include/asterisk/compat.h.
Referenced by cli_contact_print_body().
#define strlcat __use__ast_str__functions_not__strlcat__ |
Definition at line 127 of file include/asterisk/compat.h.
#define strlcpy __use__ast_copy_string__not__strlcpy__ |
Definition at line 128 of file include/asterisk/compat.h.
int asprintf | ( | char ** | str, |
const char * | fmt, | ||
... | |||
) |
Referenced by to_string(), and yyparse().
void closefrom | ( | int | lowfd | ) |
Definition at line 429 of file strcompat.c.
References ast_random(), errno, len(), mkdtemp(), NULL, POLL_SIZE, and roundf().
Referenced by ast_close_fds_above_n().
int ffsll | ( | long long | n | ) |
Referenced by htonll().
int getloadavg | ( | double * | list, |
int | nelem | ||
) |
Referenced by cli_prompt(), increase_call_count(), load_asterisk_conf(), and sysinfo_helper().
uint64_t htonll | ( | uint64_t | host64 | ) |
Definition at line 390 of file strcompat.c.
Referenced by ast_websocket_write(), and iax_ie_append_versioned_uint64().
char* mkdtemp | ( | char * | template_s | ) |
Referenced by add_email_attachment(), AST_TEST_DEFINE(), closefrom(), sendmail(), and test_files_create().
uint64_t ntohll | ( | uint64_t | net64 | ) |
Definition at line 364 of file strcompat.c.
References c.
Referenced by ast_websocket_read(), dump_versioned_codec(), and iax_parse_ies().
float roundf | ( | float | x | ) |
Referenced by ast_readaudio_callback(), closefrom(), dahdi_timer_set_rate(), and pthread_timer_set_rate().
int setenv | ( | const char * | name, |
const char * | value, | ||
int | overwrite | ||
) |
Referenced by env_init(), env_write(), launch_script(), load_odbc_config(), read_environment(), and rxqcheck().
char* strcasestr | ( | const char * | , |
const char * | |||
) |
Referenced by action_originate(), anti_injection(), ast_http_header_match_in(), ast_xmldoc_printable(), common_exec(), find_sdp(), find_table_cb(), frame_drop_helper(), frame_trace_helper(), get_rdnis(), get_refer_info(), gettag(), handle_request_invite(), handle_response_register(), handle_show_applications(), meetme_cmd_helper(), modlist_modentry(), parse_moved_contact(), parse_oli(), parse_register_contact(), playback_exec(), process_dahdi(), read_raw_content_length(), realtime_multi_odbc(), realtime_odbc(), register_verify(), reply_digest(), reqprep(), require_mysql(), respprep(), search_directory_sub(), set_destination(), sip_sipredirect(), sip_uri_headers_cmp(), vm_allocate_dh(), and word_match().
char* strndup | ( | const char * | , |
size_t | |||
) |
Referenced by __ast_repl_strndup().
size_t strnlen | ( | const char * | , |
size_t | |||
) |
char* strsep | ( | char ** | str, |
const char * | delims | ||
) |
Referenced by __analog_ss_thread(), __ast_play_and_record(), __ast_sorcery_apply_config(), _ast_device_state(), _build_port_config(), _macro_exec(), _parse(), acf_curl_helper(), action_command(), action_messagesend(), action_playback(), action_playback_and_continue(), actual_load_config(), add_hintdevice(), add_menu_entry(), add_peer_mailboxes(), add_redirect(), adsi_load(), adsi_message(), ami_sip_qualify(), aMYSQL_clear(), aMYSQL_disconnect(), aMYSQL_fetch(), analog_ss_thread(), announce_to_dial(), append_ha_core(), append_history_va(), append_mailbox(), append_mailbox_mapping(), apply_options(), apps_handler(), ari_channels_handle_originate_with_id(), ast_app_getdata(), ast_append_acl(), ast_ari_channels_create(), ast_ari_invoke(), ast_bridge_timelimit(), ast_build_timing(), ast_dns_test_write_domain(), ast_eivr_getvariable(), ast_eivr_setvariable(), ast_el_strtoarr(), ast_extension_state3(), ast_format_cap_update_by_allow_disallow(), ast_format_str_reduce(), ast_get_chan_applicationmap(), ast_get_group(), ast_get_namedgroups(), ast_http_get_auth(), ast_http_get_post_vars(), ast_http_header_parse(), ast_msg_send(), ast_parse_arg(), ast_parse_digest(), ast_playtones_start(), ast_presence_state_helper(), ast_read_image(), ast_remotecontrol(), ast_say_number_full_en(), ast_sip_auth_vector_init(), ast_sip_for_each_aor(), ast_sip_location_retrieve_contact_and_aor_from_list_filtered(), ast_sip_validate_uri_length(), ast_strings_match(), ast_utils_which(), ast_vector_string_split(), ast_websocket_uri_cb(), asterisk_publication_mailboxstate(), auth_exec(), authenticate_api_key(), authenticate_verify(), bridge_create_common(), build_calendar(), build_channels(), build_peer(), build_user(), chanavail_exec(), check_blacklist(), check_nonce(), check_user_full(), cleanup_stale_contexts(), cli_qualify(), cli_reload_qualify_endpoint(), cli_show_qualify_endpoint(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), conf_exec(), conf_run(), config_curl(), config_parse_variables(), console_dial(), create_queue_member(), create_unsolicited_mwi_subscriptions(), cut_internal(), decrypt_frame(), deltree_exec(), dial_exec_full(), dial_trunk(), do_say(), dtmf_info_incoming_request(), eval_exten_read(), events_handler(), ewscal_write_event(), exec_exec(), expand_gosub_args(), extstate_read(), filehelper(), find_aor(), find_aor_for_resource(), find_aor_name(), find_body_generator_accept(), forward_message(), free_zone(), freq_parser(), function_fieldnum_helper(), function_fieldqty_helper(), function_ooh323_write(), function_sippeer(), get_mid_bundle_group(), get_range(), get_rdnis(), get_timerange(), gettag(), global_loaded(), gosub_exec(), goto_parser(), h263_parse_sdp_fmtp(), h264_parse_sdp_fmtp(), handle_cli_dialplan_add_extension(), handle_common_options(), handle_debug_dialplan(), handle_request_invite(), handle_request_notify(), handle_show_dialplan(), handle_t38_options(), handle_uri(), has_voicemail(), hint_read(), http_request_headers_get(), iax2_register(), ident_handler(), iftime(), inboxcount2(), init_logger_chain(), ip_identify_match_handler(), is_prefix(), ivr_dispatch(), jack_handler(), json_array_from_list(), leave_voicemail(), list_item_handler(), load_column_config(), load_values_config(), load_zonemessages(), make_components(), make_email_file(), man_do_variable_value(), manager_dialplan_extension_add(), manager_dialplan_extension_remove(), mark_parsed_methods(), metermaidstate(), misdn_set_opt_exec(), msg_send_exec(), mwi_contact_changed(), mwi_has_voicemail(), mwi_inboxcount(), mwi_on_aor(), mwi_to_event(), mwi_validate_for_aor(), notify_endpoint(), notify_new_message(), orig_app(), orig_exten(), origin_allowed(), originate_exec(), page_exec(), parse_cookies(), parse_data(), parse_dial_string(), parse_empty_options(), parse_line(), parse_register_contact(), parse_session_expires(), parse_tone_uri(), parse_uri_full(), parse_via(), pbx_builtin_background(), pbx_builtin_execiftime(), pbx_builtin_gotoif(), pbx_builtin_gotoiftime(), pbx_builtin_importvar(), pbx_builtin_saynumber(), pbx_builtin_setvar(), pbx_find_extension(), pbx_load_config(), pbx_load_users(), pbx_parseable_goto(), permanent_uri_handler(), pickup_exec(), pickupchan_exec(), pjsip_acf_dial_contacts_read(), play_files_helper(), play_message(), playback_exec(), process_dahdi(), process_description_file(), process_echocancel(), process_sdp_o(), process_text_line(), publisher_start(), queue_set_param(), realtime_curl(), realtime_multi_curl(), realtime_multi_mysql(), realtime_multi_odbc(), realtime_multi_pgsql(), realtime_mysql(), realtime_odbc(), realtime_pgsql(), register_exten(), register_peer_exten(), register_verify(), reload_config(), reload_module(), reload_queue_members(), reply_digest(), res_sdp_crypto_parse_offer(), safe_scan_int(), say_character_str_full(), say_digit_str_full(), say_money_str_full(), say_phonetic_str_full(), search_directory_sub(), send_dial_tone(), send_unsolicited_mwi_notify(), sendfax_exec(), sendmail(), separate_mailbox(), set(), set_insecure_flags(), set_remote_mslabel_and_stream_group(), sip_digest_parser(), sip_get_cc_information(), sip_options_synchronize_endpoint(), sip_parse_nat_option(), sip_sendcustominfo(), sip_sipredirect(), sip_uri_cmp(), sip_uri_headers_cmp(), sip_uri_params_cmp(), skinny_call(), sla_add_trunk_to_station(), sla_check_device(), sla_queue_event_conf(), sla_ring_station(), sla_state(), sla_station_exec(), sorcery_config_open(), sorcery_memory_cache_open(), sorcery_realtime_open(), sort_internal(), spawn_mp3(), spawn_ras(), speech_background(), stat_read(), state_notify_build_xml(), store_tone_zone_ring_cadence(), test_cel_peer_strings_match(), timezone_add(), tls_method_to_str(), transmit_fake_auth_response(), tryexec_exec(), type_in_list(), unregister_exten(), user_event_hook_cb(), userevent_exec(), vm_allocate_dh(), vmauthenticate(), write_htmldump(), xml_translate(), xmpp_client_authenticate_sasl(), xmpp_pubsub_handle_event(), and xmpp_send_cb().
uint64_t strtoq | ( | const char * | nptr, |
char ** | endptr, | ||
int | base | ||
) |
void timersub | ( | struct timeval * | tvend, |
struct timeval * | tvstart, | ||
struct timeval * | tvdiff | ||
) |
Referenced by ast_rtcp_generate_report(), and ast_select().
int unsetenv | ( | const char * | name | ) |
Referenced by env_write(), and rxqcheck().
int vasprintf | ( | char ** | strp, |
const char * | fmt, | ||
va_list | ap | ||
) |
Referenced by __ast_repl_asprintf(), and __ast_repl_vasprintf().