Wed Oct 28 11:53:02 2009

Asterisk developer's documentation


private.h File Reference

#include "sys/types.h"
#include "stdio.h"
#include "errno.h"
#include "string.h"
#include "limits.h"
#include "time.h"
#include "stdlib.h"
#include <sys/wait.h>
#include "unistd.h"

Include dependency graph for private.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _(msgid)   msgid
#define AVGSECSPERYEAR   31556952L
#define EXIT_FAILURE   1
#define EXIT_SUCCESS   0
#define FALSE   0
#define FILENAME_MAX   1024
#define GNUC_or_lint
#define GRANDPARENTED   "Local time zone must be set--see zic manual page"
#define HAVE_ADJTIME   1
#define HAVE_GETTEXT   0
#define HAVE_INCOMPATIBLE_CTIME_R   0
#define HAVE_SETTIMEOFDAY   3
#define HAVE_STDINT_H
#define HAVE_STRERROR   1
#define HAVE_SYMLINK   1
#define HAVE_SYS_STAT_H   1
#define HAVE_SYS_WAIT_H   1
#define HAVE_UNISTD_H   1
#define HAVE_UTMPX_H   0
#define INITIALIZE(x)   ((x) = 0)
#define INT32_MAX   0x7fffffff
#define INT32_MIN   (-1 - INT32_MAX)
#define INT_STRLEN_MAXIMUM(type)
#define is_digit(c)   ((unsigned)(c) - '0' <= 9)
#define LOCALE_HOME   "/usr/lib/locale"
#define P(x)   x
#define remove   unlink
#define SECSPERREPEAT   ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR)
#define SECSPERREPEAT_BITS   34
#define TRUE   1
#define TYPE_BIT(type)   (sizeof (type) * CHAR_BIT)
#define TYPE_INTEGRAL(type)   (((type) 0.5) != 0.5)
#define TYPE_SIGNED(type)   (((type) -1) < 0)
#define TZ_DOMAIN   "tz"
#define WEXITSTATUS(status)   (((status) >> 8) & 0xff)
#define WIFEXITED(status)   (((status) & 0xff) == 0)
#define YEARSPERREPEAT   400

Typedefs

typedef long int_fast64_t

Functions

const char *scheck P ((const char *string, const char *format))
void icfree P ((char *pointer))
void *irealloc P ((void *pointer, int size))
char *imalloc P ((int n))
char *icpyalloc P ((const char *string))
char *icatalloc P ((char *old, const char *new))
char *icalloc P ((int nelem, int elsize))
int unlink P ((const char *filename))

Variables

int errno
static char privatehid [] = "@(#)private.h 8.3"


Define Documentation

#define _ ( msgid   )     msgid

Definition at line 319 of file private.h.

#define AVGSECSPERYEAR   31556952L

Definition at line 343 of file private.h.

Referenced by ast_get_dst_info(), and localsub().

#define EXIT_FAILURE   1

Definition at line 188 of file private.h.

#define EXIT_SUCCESS   0

Definition at line 180 of file private.h.

#define FALSE   0

Definition at line 253 of file private.h.

#define FILENAME_MAX   1024

Definition at line 207 of file private.h.

Referenced by ast_monitor_start(), ast_monitor_stop(), and tzload().

#define GNUC_or_lint

Definition at line 295 of file private.h.

#define GRANDPARENTED   "Local time zone must be set--see zic manual page"

Definition at line 28 of file private.h.

#define HAVE_ADJTIME   1

Definition at line 36 of file private.h.

#define HAVE_GETTEXT   0

Definition at line 40 of file private.h.

#define HAVE_INCOMPATIBLE_CTIME_R   0

Definition at line 44 of file private.h.

#define HAVE_SETTIMEOFDAY   3

Definition at line 48 of file private.h.

#define HAVE_STDINT_H

Value:

(199901 <= __STDC_VERSION__ || \
   2 < (__GLIBC__ + (0 < __GLIBC_MINOR__)))

Definition at line 134 of file private.h.

#define HAVE_STRERROR   1

Definition at line 52 of file private.h.

#define HAVE_SYMLINK   1

Definition at line 56 of file private.h.

#define HAVE_SYS_STAT_H   1

Definition at line 60 of file private.h.

#define HAVE_SYS_WAIT_H   1

Definition at line 64 of file private.h.

#define HAVE_UNISTD_H   1

Definition at line 68 of file private.h.

#define HAVE_UTMPX_H   0

Definition at line 72 of file private.h.

#define INITIALIZE (  )     ((x) = 0)

Definition at line 302 of file private.h.

Referenced by transtime(), and tzparse().

#define INT32_MAX   0x7fffffff

Definition at line 157 of file private.h.

#define INT32_MIN   (-1 - INT32_MAX)

Definition at line 160 of file private.h.

#define INT_STRLEN_MAXIMUM ( type   ) 

Value:

((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + \
   1 + TYPE_SIGNED(type))

Definition at line 280 of file private.h.

#define is_digit (  )     ((unsigned)(c) - '0' <= 9)

Definition at line 125 of file private.h.

Referenced by getnum(), getrule(), and getzname().

#define LOCALE_HOME   "/usr/lib/locale"

Definition at line 76 of file private.h.

#define P (  )     x

Definition at line 172 of file private.h.

#define remove   unlink

Definition at line 218 of file private.h.

#define SECSPERREPEAT   ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR)

Definition at line 347 of file private.h.

Referenced by differ_by_repeat().

#define SECSPERREPEAT_BITS   34

Definition at line 351 of file private.h.

Referenced by differ_by_repeat().

#define TRUE   1

Definition at line 249 of file private.h.

#define TYPE_BIT ( type   )     (sizeof (type) * CHAR_BIT)

Definition at line 257 of file private.h.

Referenced by differ_by_repeat(), and time2sub().

#define TYPE_INTEGRAL ( type   )     (((type) 0.5) != 0.5)

Definition at line 270 of file private.h.

Referenced by differ_by_repeat(), time2sub(), and tzload().

#define TYPE_SIGNED ( type   )     (((type) -1) < 0)

Definition at line 261 of file private.h.

Referenced by differ_by_repeat(), time2sub(), and tzload().

#define TZ_DOMAIN   "tz"

Definition at line 324 of file private.h.

#define WEXITSTATUS ( status   )     (((status) >> 8) & 0xff)

Definition at line 108 of file private.h.

Referenced by ast_safe_system(), and run_ras().

#define WIFEXITED ( status   )     (((status) & 0xff) == 0)

Definition at line 105 of file private.h.

Referenced by ast_safe_system(), and run_ras().

#define YEARSPERREPEAT   400

Definition at line 335 of file private.h.

Referenced by ast_get_dst_info(), localsub(), and tzload().


Typedef Documentation

typedef long int_fast64_t

Definition at line 152 of file private.h.


Function Documentation

const char* scheck P ( (const char *string, const char *format  ) 

void ifree P ( (char *pointer)   ) 

void* irealloc P ( (void *pointer, int size)   ) 

char* imalloc P ( (int n)   ) 

char* icpyalloc P ( (const char *string)   ) 

char* icatalloc P ( (char *old, const char *new)   ) 

char* icalloc P ( (int nelem, int elsize)   ) 

int unlink P ( (const char *filename)   ) 


Variable Documentation

int errno

Referenced by __adsi_transmit_messages(), __ast_answer(), __ast_channel_alloc_ap(), __ast_queue_frame(), __ast_read(), __mgcp_xmit(), __oh323_rtp_create(), __quit_handler(), __sip_xmit(), _sip_tcp_helper_thread(), accept_thread(), access_counter_file(), action_bridge(), action_command(), action_createconfig(), alloc_sub(), app_exec(), ast_add_extension2_lockopt(), ast_careful_fwrite(), ast_carefulwrite(), ast_channel_queryoption(), ast_channel_setoption(), ast_context_add_ignorepat2(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_remove_ignorepat2(), ast_do_masquerade(), ast_el_read_char(), ast_filehelper(), ast_get_enum(), ast_get_txt(), ast_linear_stream(), ast_lock_path_flock(), ast_lock_path_lockfile(), ast_makesocket(), ast_mkdir(), ast_moh_files_next(), ast_netsock_bindaddr(), ast_pbx_outgoing_app(), ast_pthread_create_detached_stack(), ast_pthread_create_stack(), ast_read_image(), ast_read_textfile(), ast_readfile(), ast_remotecontrol(), ast_rtcp_read(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_new_with_bindaddr(), ast_rtp_raw_write(), ast_rtp_read(), ast_rtp_sendcng(), ast_rtp_senddigit_begin(), ast_rtp_senddigit_continuation(), ast_rtp_senddigit_end(), ast_safe_fork(), ast_safe_system(), ast_streamfile(), ast_tcptls_client_create(), ast_tcptls_client_start(), ast_tcptls_server_read(), ast_tcptls_server_root(), ast_tcptls_server_start(), ast_tcptls_server_write(), ast_tryconnect(), ast_udptl_new_with_bindaddr(), ast_udptl_read(), ast_udptl_write(), ast_unlock_path_lockfile(), ast_wait_for_output(), ast_waitfor_nandfds(), ast_waitfordigit_full(), ast_writefile(), ast_yy_init_buffer(), ast_yylex_init(), ast_yylex_init_extra(), auth_exec(), available(), base_encode(), bridge_p2p_rtp_write(), build_filename(), build_peer(), bump_gains(), careful_write(), cb_events(), chan_misdn_log(), chandup(), check_for_conference(), check_srcaddr(), complete_dialplan_remove_extension(), conf_add(), conf_del(), conf_run(), config_text_file_load(), config_text_file_save(), connect_sphinx(), copy(), csv_log(), custom_log(), dahdi_call(), dahdi_confmute(), dahdi_decoder_frameout(), dahdi_digit_begin(), dahdi_disable_ec(), dahdi_enable_ec(), dahdi_encoder_frameout(), dahdi_handle_event(), dahdi_hangup(), dahdi_indicate(), dahdi_new(), dahdi_open(), dahdi_read(), dahdi_ring_phone(), dahdi_sendtext(), dahdi_set_hook(), dahdi_set_hwgain(), dahdi_setoption(), dahdi_show_channel(), dahdi_show_status(), dahdi_show_version(), dahdi_train_ec(), dahdi_translate(), dahdi_write(), dahdi_write_frame(), dbinit(), destroy_trans(), dial_exec_full(), dispatch_thread_handler(), display_last_error(), do_monitor(), dundi_lookup_internal(), dundi_precache_internal(), dundi_xmit(), eivr_comm(), fax_generator_generate(), festival_exec(), fetch_msg(), find_cache(), find_table(), find_transcoders(), flash_exec(), g723_read(), g723_write(), g726_read(), g726_write(), g729_read(), g729_write(), gen_generate(), gen_nextfile(), get_alarms(), get_input(), get_to_address(), gsm_read(), gsm_seek(), gsm_write(), h263_read(), h263_write(), h264_read(), h264_write(), handle_bchan(), handle_callforward_button(), handle_cli_dialplan_add_extension(), handle_cli_dialplan_add_ignorepat(), handle_cli_dialplan_add_include(), handle_cli_dialplan_remove_ignorepat(), handle_cli_ulimit(), handle_enbloc_call_message(), handle_error(), handle_gosub(), handle_hd_hf(), handle_init_event(), handle_offhook_message(), handle_register_message(), handle_soft_key_event_message(), handle_stimulus_message(), handle_transfer_button(), hidthread(), http_post_callback(), httpd_helper_thread(), hup_handler(), iax2_setoption(), iax2_write(), ices_exec(), iconv_read(), ilbc_read(), ilbc_write(), init_acf_query(), init_logger(), init_logger_chain(), isdn_port_info(), jpeg_read_image(), jpeg_write_image(), kickptt(), launch_netscript(), launch_script(), leave_voicemail(), listener(), load_config(), load_module(), logger_print_normal(), lookup_iface(), lua_read_extensions_file(), main(), make_logchannel(), mgcpsock_read(), milliwatt_generate(), misdn_cfg_update_ptp(), misdn_read(), misdn_tx_jitter(), mkif(), mkintf(), moh_files_generator(), moh_generate(), moh_scan_files(), mohalloc(), mwi_send_thread(), mwi_thread(), my_dahdi_write(), netconsole(), ogg_vorbis_rewrite(), openserial(), pcm_read(), pcm_write(), phone_answer(), phone_hangup(), phone_mini_packet(), phone_read(), phone_write(), phoneprov_callback(), process_dahdi(), pthread_timer_disable_continuous(), pthread_timer_enable_continuous(), pthread_timer_open(), pthread_timer_set_rate(), pw_cb(), read_pipe(), reload_config(), reload_firmware(), reload_logger(), reload_queue_members(), reset_conf(), restore_conference(), restore_gains(), rtp_socket(), run_agi(), run_ras(), safe_append(), save_conference(), scan_service(), scan_thread(), send_callerid(), send_packet(), send_waveform_to_fd(), set_actual_rxgain(), set_actual_txgain(), set_config(), set_ulimit(), setdtr(), setformat(), setup_bc(), sip_alloc(), sip_tcptls_write(), sip_threadinfo_create(), sipsock_read(), skinny_session(), slinear_read(), slinear_write(), smdi_load(), smdi_toggle_mwi(), sms_generate(), sms_log(), socket_read(), spawn_mp3(), spy_generate(), ss_thread(), start_rtp(), static_callback(), store_config(), system_exec_helper(), t38_tx_packet_handler(), te_lib_init(), timing_test(), to_number(), transmit_response(), transmit_trunk(), try_calling(), try_firmware(), try_load_key(), unistimsock_read(), usbradio_read(), usbradio_write(), vm_check_password_shell(), vox_read(), vox_write(), wait_result(), waitstream_core(), wav_close(), wav_read(), wav_seek(), wav_write(), write_byte(), write_history(), write_stream(), and writefile().

char privatehid[] = "@(#)private.h 8.3" [static]

Definition at line 24 of file private.h.


Generated on Wed Oct 28 11:53:02 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6