Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Miscellaneous library routines


Defines

#define FALSE   0
#define TRUE   (!FALSE)
#define APR_ASCII_BLANK   '\040'
#define APR_ASCII_CR   '\015'
#define APR_ASCII_LF   '\012'
#define APR_ASCII_TAB   '\011'
#define APR_OFFSET(p_type, field)   ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
#define APR_OFFSETOF(s_type, field)   APR_OFFSET(s_type*,field)
#define APR_XtOffset   APR_OFFSET
#define APR_XtOffsetOf   APR_OFFSETOF
#define APR_ALIGN(size, boundary)   (((size) + ((boundary) - 1)) & ~((boundary) - 1))
#define APR_ALIGN_DEFAULT(size)   APR_ALIGN(size, 8)
#define APR_STRINGIFY(n)   APR_STRINGIFY_HELPER(n)
#define APR_STRINGIFY_HELPER(n)   #n
#define memmove(a, b, c)   bcopy(b,a,c)

Typedefs

typedef int apr_signum_t

Functions

int strcasecmp (const char *a, const char *b)
int strncasecmp (const char *a, const char *b, size_t n)
void * memchr (const void *s, int c, size_t n)

Detailed Description

This is collection of oddballs that didn't fit anywhere else, and might move to more appropriate headers with the release of APR 1.0.

Define Documentation

#define APR_ALIGN size,
boundary   )     (((size) + ((boundary) - 1)) & ~((boundary) - 1))
 

Alignment macros

Definition at line 142 of file apr_general.h.

Referenced by allocator_alloc(), APR_DECLARE(), and psprintf_flush().

#define APR_ALIGN_DEFAULT size   )     APR_ALIGN(size, 8)
 

Default alignment

Definition at line 146 of file apr_general.h.

Referenced by APR_DECLARE(), and APU_DECLARE().

#define APR_ASCII_BLANK   '\040'
 

a space

Definition at line 59 of file apr_general.h.

Referenced by AP_DECLARE().

#define APR_ASCII_CR   '\015'
 

a carrige return

Definition at line 61 of file apr_general.h.

Referenced by AP_DECLARE(), and core_input_filter().

#define APR_ASCII_LF   '\012'
 

a line feed

Definition at line 63 of file apr_general.h.

Referenced by AP_DECLARE(), ap_proxy_send_dir_filter(), core_input_filter(), PROXY_DECLARE(), ssl_io_input_getline(), and ssl_io_input_read().

#define APR_ASCII_TAB   '\011'
 

a tab

Definition at line 65 of file apr_general.h.

Referenced by AP_DECLARE().

#define APR_OFFSET p_type,
field   )     ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
 

Finding offsets of elements within structures. Taken from the X code... they've sweated portability of this stuff so we don't have to. Sigh...

Parameters:
p_type pointer type name
field data field within the structure pointed to
Returns:
offset

Definition at line 95 of file apr_general.h.

#define APR_OFFSETOF s_type,
field   )     APR_OFFSET(s_type*,field)
 

Finding offsets of elements within structures.

Parameters:
s_type structure type name
field data field within the structure
Returns:
offset

Definition at line 109 of file apr_general.h.

Referenced by unique_id_global_init().

#define APR_STRINGIFY n   )     APR_STRINGIFY_HELPER(n)
 

Properly quote a value as a string in the C preprocessor

Definition at line 154 of file apr_general.h.

#define APR_STRINGIFY_HELPER n   )     #n
 

Helper macro for APR_STRINGIFY

Definition at line 156 of file apr_general.h.

#define APR_XtOffset   APR_OFFSET
 

Deprecated:
See also:
APR_OFFSET

Definition at line 113 of file apr_general.h.

#define APR_XtOffsetOf   APR_OFFSETOF
 

Deprecated:
See also:
APR_OFFSETOF

Definition at line 116 of file apr_general.h.

#define FALSE   0
 

FALSE

Definition at line 51 of file apr_general.h.

#define memmove a,
b,
c   )     bcopy(b,a,c)
 

Definition at line 159 of file apr_general.h.

Referenced by dav_fs_remove_locknull_member(), delpair(), and XML_GetBuffer().

#define TRUE   (!FALSE)
 

TRUE

Definition at line 55 of file apr_general.h.


Typedef Documentation

typedef int apr_signum_t
 

signal numbers typedef

Definition at line 68 of file apr_general.h.


Function Documentation

void* memchr const void *  s,
int  c,
size_t  n
 

Definition at line 217 of file apr_strings.c.

References NULL.

Referenced by ap_proxy_send_dir_filter(), apr_gethostname(), APU_DECLARE(), ascmagic(), PROXY_DECLARE(), send_response_header(), ssl_io_input_getline(), and ssl_io_input_read().

int strcasecmp const char *  a,
const char *  b
 

Definition at line 251 of file apr_cpystrn.c.

References apr_tolower, and p.

Referenced by add_auth_info(), add_charset_options(), add_include_vars_lazy(), add_options(), add_opts(), add_redirect_internal(), add_setenvif_core(), allow_cmd(), anon_authenticate_basic_user(), ap_build_config_sub(), AP_CORE_DECLARE(), AP_DECLARE(), ap_http_filter(), ap_proxy_ftp_handler(), ap_read_request(), APR_DECLARE(), APU_DECLARE(), authenticate_digest_user(), check_anon_access(), check_hostalias(), check_speling(), chk_filter_chain(), cmd_rewritecond_setflag(), cmd_rewriteoptions(), cmd_rewriterule_setflag(), configured_in_list(), dav_cmd_dav(), DAV_DECLARE(), dav_merge_dir_config(), define_filter(), deflate_in_filter(), deflate_out_filter(), deflate_set_note(), digest_check_auth(), display_info(), dsortf(), emit_head(), emit_tail(), find_parent(), find_title(), get_addresses(), get_digest_rec(), handle_echo(), header_cmd(), header_inout_cmd(), imap_handler_internal(), imap_reply(), imap_url(), in_domain(), init_filter_instance(), invoke_cmd(), log_header_out(), lookup_header(), lookup_map_program(), lookup_variable(), main(), matches_aliases(), menu_blank(), menu_comment(), menu_default(), menu_directive(), menu_header(), merge_ct_filters(), mod_auth_ldap_set_deref(), mod_info_module_cmds(), multiviews_match(), new_digest(), note_digest_auth_failure(), open_error_log(), order(), parse_command(), perchild_pre_config(), process_mkcol_body(), proxy_detect(), proxy_handler(), proxy_needsdomain(), read_request_line(), read_types_multi(), satisfy(), scan_meta_file(), set_accept_path_info(), set_add_default_charset(), set_algorithm(), set_bad_opt(), set_cache_removal_algorithm(), set_cookie_style(), set_default_order(), set_enable_mmap(), set_enable_sendfile(), set_etag_bits(), set_force_priority(), set_hostname_lookups(), set_keep_alive(), set_loglevel(), set_options(), set_override(), set_proxy_dirconn(), set_qop(), set_serv_tokens(), set_signature_flag(), set_use_canonical_name(), set_user_dir(), set_via_opt(), set_xbithack(), spdist(), table_mergesort(), uniq_field_values(), and vhost_alias_set().

int strncasecmp const char *  a,
const char *  b,
size_t  n
 

Definition at line 270 of file apr_cpystrn.c.

References apr_tolower, and p.

Referenced by add_charset_options(), add_custom_log(), add_ignore_header(), add_options(), add_opts(), allow_cmd(), ap_proxy_ftp_canon(), ap_proxy_ftp_handler(), ap_proxy_http_canon(), ap_proxy_http_handler(), ap_proxy_send_dir_filter(), ap_set_byterange(), APR_DECLARE(), CACHE_DECLARE(), check_code(), check_speling(), cmd_rewriteoptions(), dav_parse_range(), define_filter(), emit_head(), emit_tail(), escape_absolute_uri(), find_code_page(), find_fqdn(), get_header_line(), header_inout_cmd(), imap_handler_internal(), is_absolute_uri(), leader_pre_config(), lookup_variable(), main(), mod_auth_ldap_parse_url(), open_error_log(), PROXY_DECLARE(), proxy_handler(), proxy_match_domainname(), proxy_match_hostname(), proxysection(), read_types_multi(), reduce_uri(), set_cookie_exp(), splitout_queryargs(), and worker_pre_config().