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

Error Codes

Collaboration diagram for Error Codes:


Modules

 APR Error Values
 Status Value Tests

Defines

#define APR_OS_START_ERROR   20000
#define APR_OS_ERRSPACE_SIZE   50000
#define APR_OS_START_STATUS   (APR_OS_START_ERROR + APR_OS_ERRSPACE_SIZE)
#define APR_OS_START_USERERR   (APR_OS_START_STATUS + APR_OS_ERRSPACE_SIZE)
#define APR_OS_START_USEERR   APR_OS_START_USERERR
#define APR_OS_START_CANONERR
#define APR_OS_START_EAIERR   (APR_OS_START_CANONERR + APR_OS_ERRSPACE_SIZE)
#define APR_OS_START_SYSERR   (APR_OS_START_EAIERR + APR_OS_ERRSPACE_SIZE)
#define APR_SUCCESS   0
#define APR_FROM_OS_ERROR(e)   (e)
#define APR_TO_OS_ERROR(e)   (e)
#define apr_get_os_error()   (errno)
#define apr_set_os_error(e)   (errno = (e))
#define apr_get_netos_error()   (errno)
#define apr_set_netos_error(e)   (errno = (e))

Typedefs

typedef int apr_status_t

Functions

 APR_DECLARE (char *) apr_strerror(apr_status_t statcode

Variables

char * buf
char apr_size_t bufsize

Define Documentation

#define APR_FROM_OS_ERROR e   )     (e)
 

Definition at line 1101 of file apr_errno.h.

Referenced by ap_mpm_child_main(), APR_DECLARE(), apr_file_check_read(), apr_thread_rwlock_rdlock_core(), apr_thread_rwlock_wrlock_core(), file_dup(), filepath_drive_get(), handle_type(), master_main(), read_with_timeout(), server_maintenance(), setptr(), spawn_child(), and worker_main().

 
#define apr_get_netos_error  )     (errno)
 

Definition at line 1109 of file apr_errno.h.

Referenced by APR_DECLARE(), apr_socket_atmark(), find_addresses(), get_local_addr(), get_remote_addr(), soblock(), socket_cleanup(), and sononblock().

 
#define apr_get_os_error  )     (errno)
 

Definition at line 1104 of file apr_errno.h.

Referenced by AP_DECLARE(), apr_create_nt_pipe(), APR_DECLARE(), apr_thread_rwlock_rdlock_core(), apr_thread_rwlock_wrlock_core(), dir_cleanup(), filepath_drive_get(), filepath_root_case(), GetNullACL(), isapi_load(), monitor_service_9x_thread(), mpm_service_install(), mpm_service_start(), mpm_service_uninstall(), mpm_signal_service(), proc_mutex_cleanup(), read_with_timeout(), service_nt_dispatch_thread(), service_nt_main_fn(), setptr(), shm_cleanup(), and thread_mutex_cleanup().

#define APR_OS_ERRSPACE_SIZE   50000
 

APR_OS_ERRSPACE_SIZE is the maximum number of errors you can fit into one of the error/status ranges below -- except for APR_OS_START_USERERR, which see.

Definition at line 123 of file apr_errno.h.

#define APR_OS_START_CANONERR
 

Value:

APR_OS_START_CANONERR is where APR versions of errno values are defined on systems which don't have the corresponding errno.

Definition at line 145 of file apr_errno.h.

#define APR_OS_START_EAIERR   (APR_OS_START_CANONERR + APR_OS_ERRSPACE_SIZE)
 

APR_OS_START_EAIERR folds EAI_ error codes from getaddrinfo() into apr_status_t values.

Definition at line 151 of file apr_errno.h.

Referenced by APR_DECLARE(), and log_error_core().

#define APR_OS_START_ERROR   20000
 

APR_OS_START_ERROR is where the APR specific error values start.

Definition at line 117 of file apr_errno.h.

Referenced by APR_DECLARE().

#define APR_OS_START_STATUS   (APR_OS_START_ERROR + APR_OS_ERRSPACE_SIZE)
 

APR_OS_START_STATUS is where the APR specific status codes start.

Definition at line 127 of file apr_errno.h.

#define APR_OS_START_SYSERR   (APR_OS_START_EAIERR + APR_OS_ERRSPACE_SIZE)
 

APR_OS_START_SYSERR folds platform-specific system error values into apr_status_t values.

Definition at line 156 of file apr_errno.h.

Referenced by apr_canonical_error(), APR_DECLARE(), find_addresses(), and log_error_core().

#define APR_OS_START_USEERR   APR_OS_START_USERERR
 

APR_OS_START_USEERR is obsolete, defined for compatibility only. Use APR_OS_START_USERERR instead.

Definition at line 140 of file apr_errno.h.

#define APR_OS_START_USERERR   (APR_OS_START_STATUS + APR_OS_ERRSPACE_SIZE)
 

APR_OS_START_USERERR are reserved for applications that use APR that layer their own error codes along with APR's. Note that the error immediately following this one is set ten times farther away than usual, so that users of apr have a lot of room in which to declare custom error codes.

Definition at line 135 of file apr_errno.h.

Referenced by APR_DECLARE().

#define apr_set_netos_error e   )     (errno = (e))
 

Definition at line 1110 of file apr_errno.h.

#define apr_set_os_error e   )     (errno = (e))
 

Definition at line 1105 of file apr_errno.h.

Referenced by GetNullACL().

#define APR_SUCCESS   0
 

no error.

See also:
APR_STATUS_IS_SUCCESS

Definition at line 159 of file apr_errno.h.

Referenced by _file_dup(), _NonAppStart(), _proc_mutex_cleanup(), _thread_mutex_cleanup(), _thread_rw_cleanup(), accept_mutex_off(), accept_mutex_on(), accessible(), add_cern_meta_data(), add_include_vars_lazy(), add_password(), add_sockets_pollset(), alloc_cleanup(), alloc_listener(), allow_cmd(), anon_authenticate_basic_user(), ap_buffered_log_writer(), ap_cleanup_scoreboard(), ap_cleanup_shared_mem(), AP_CORE_DECLARE(), AP_CORE_DECLARE_NONSTD(), AP_DECLARE(), AP_DECLARE_NONSTD(), ap_default_log_writer_init(), ap_http_filter(), ap_listen_open(), ap_method_registry_destroy(), ap_mpm_child_main(), ap_mpm_run(), ap_open_logs(), ap_proxy_canon_netloc(), ap_proxy_connect_handler(), ap_proxy_ftp_handler(), ap_proxy_http_determine_connection(), ap_proxy_http_process_response(), ap_proxy_http_request(), ap_proxy_send_dir_filter(), ap_queue_destroy(), ap_queue_info_create(), ap_queue_info_set_idle(), ap_queue_info_term(), ap_queue_info_wait_for_idler(), ap_queue_init(), ap_queue_interrupt_all(), ap_queue_pop(), ap_queue_push(), ap_queue_term(), ap_registry_get_server_root(), ap_reopen_scoreboard(), ap_rfc1413(), ap_set_listener(), apply_rewrite_cond(), apprentice(), apr_assert_success(), apr_atomic_add(), apr_atomic_cas(), apr_atomic_casptr(), apr_atomic_dec(), apr_atomic_inc(), apr_atomic_init(), apr_atomic_set(), apr_create_nt_pipe(), apr_ctime(), APR_DECLARE(), APR_DECLARE_NONSTD(), apr_dir_make(), apr_dir_make_recursive(), apr_dir_open(), apr_dir_read(), apr_dir_remove(), apr_dir_rewind(), apr_file_check_read(), apr_file_lock(), apr_file_transfer_contents(), apr_file_unlock(), apr_filepath_list_merge_impl(), apr_filepath_list_split_impl(), apr_get_curtime(), apr_get_hour(), apr_get_mday(), apr_get_min(), apr_get_mon(), apr_get_oslevel(), apr_get_sec(), apr_get_wday(), apr_get_year(), apr_gethostname(), APR_HOOK_STRUCT(), apr_netware_proc_cleanup(), APR_OPTIONAL_FN_TYPE(), apr_os_dir_get(), apr_os_dir_put(), apr_os_sock_get(), apr_os_sock_make(), apr_os_sock_put(), apr_os_threadkey_get(), apr_os_threadkey_put(), apr_proc_detach(), apr_rfc822_date(), apr_set_hour(), apr_set_mday(), apr_set_min(), apr_set_mon(), apr_set_sec(), apr_set_wday(), apr_set_year(), apr_socket_accept(), apr_socket_atmark(), apr_socket_bind(), apr_socket_connect(), apr_socket_create_ex(), apr_socket_data_get(), apr_socket_data_set(), apr_socket_listen(), apr_socket_opt_get(), apr_socket_opt_set(), apr_socket_protocol_get(), apr_socket_recv(), apr_socket_recvfrom(), apr_socket_send(), apr_socket_sendto(), apr_socket_shutdown(), apr_socket_timeout_get(), apr_socket_timeout_set(), apr_strftime(), apr_thread_create(), apr_thread_detach(), apr_thread_exit(), apr_thread_join(), apr_thread_rwlock_rdlock_core(), apr_thread_rwlock_wrlock_core(), apr_threadattr_create(), apr_threadattr_detach_set(), apr_threadkey_private_delete(), apr_threadkey_private_get(), apr_threadkey_private_set(), apr_unix_file_cleanup(), apr_wait_for_io_or_timeout(), APU_DECLARE(), APU_DECLARE_NONSTD(), asis_handler(), auth_ldap_post_config(), authenticate_basic_user(), authenticate_digest_user(), beos_pre_config(), bio_filter_in_read(), bio_filter_out_flush(), brigade_consume(), brigade_flush(), bucketeer_out_filter(), buffer_output(), cache_create_entity(), CACHE_DECLARE(), cache_generate_key_default(), cache_out_filter(), cache_pq_insert(), cache_pq_remove(), cache_save_filter(), cache_select_url(), cache_the_file(), cached_explode(), CaseFilterInFilter(), cfg_getch(), cfg_getstr(), cgi_handler(), cgid_handler(), cgid_server(), check_basic_atomics(), check_pipe_of_death(), check_pipeline_flush(), check_rv(), check_sockets(), check_speling(), child_main(), child_pool(), chunk_filter(), cleanup_cache_mem(), cleanup_global_providers(), cleanup_nonchild_process(), cleanup_parser(), cleanup_script(), cleanup_tables(), clock_restore(), close_all_sockets(), close_listeners_on_exec(), close_pipe(), close_socket(), cmd_rewritemap(), collapse_iovec(), core_create_conn(), core_input_filter(), corkable(), create_dummy_file(), create_dummy_file_error(), create_listener_thread(), create_namebased_scoreboard(), create_pipe(), create_process(), create_socket(), create_uncompress_child(), database_cleanup(), dav_cleanup_liveprops(), dav_dbm_open_direct(), DAV_DECLARE(), dav_fs_build_key(), dav_fs_close_stream(), dav_fs_copymove_file(), dav_fs_copymove_state(), dav_fs_copymove_walker(), dav_fs_create_collection(), dav_fs_dbm_error(), dav_fs_delete_walker(), dav_fs_deleteset(), dav_fs_dir_file_name(), dav_fs_get_parent_resource(), dav_fs_load_lock_record(), dav_fs_load_locknull_list(), dav_fs_move_resource(), dav_fs_open_stream(), dav_fs_patch_exec(), dav_fs_patch_rollback(), dav_fs_remove_resource(), dav_fs_save_locknull_list(), dav_fs_seek_stream(), dav_fs_walker(), dav_fs_write_stream(), dav_method_put(), dav_process_if_header(), dbm_authenticate_basic_user(), dead_yet(), decrement_refcount(), default_build_command(), default_handler(), deflate_in_filter(), deflate_out_filter(), dir_cleanup(), dir_make_parent(), dirsection(), discard_script_output(), do_double_reverse(), do_emit_plain(), do_parse(), do_read(), do_wait(), do_write(), doit(), drain_available_output(), dso_cleanup(), dumpio_input_filter(), dumpit(), ef_output_filter(), emit_head(), emit_tail(), emulate_sendfile(), eoc_bucket_read(), eos_bucket_read(), error_bucket_read(), exists_and_readable(), file_bucket_read(), file_bucket_setaside(), file_cache_el_final(), file_cache_errorcleanup(), file_cache_recall_mydata(), file_cleanup(), file_dup(), filepath_drive_get(), filepath_root_case(), filepath_root_test(), filesection(), filter_cleanup(), find_addresses(), find_code_page(), find_content_length(), find_default_family(), find_file(), find_title(), finish_partial_char(), fix_hostname(), flush_all_logs(), flush_bucket_read(), free_localheap(), free_proc_chain(), ftp_getrc_msg(), get_addresses(), get_body(), get_conv_set(), get_dbm_pw(), get_hash(), get_header_line(), get_line(), get_local_addr(), get_nonexistkey(), get_pw(), get_remote_addr(), get_req(), get_suexec_id_doer(), get_userdata(), getdbit(), getnext(), getpage(), getpwnam_safe(), getsfunc_FILE(), gettemp(), global_mutex_cleanup(), groups_for_user(), handle_exec(), handle_include(), handle_type(), heap_bucket_read(), htdbm_init(), htdbm_list(), htdbm_make(), htdbm_save(), htdbm_valid_username(), htdbm_verify(), imap_handler_internal(), include_cmd(), includes_filter(), index_directory(), init_cache(), init_child(), init_ext_filter_process(), init_filter_instance(), init_server_config(), initialize_child(), initialize_module(), initialize_secret(), isapi_cmd_cachefile(), isapi_handler(), isapi_load(), isapi_lookup(), isapi_pre_config(), isapi_unload(), join_start_thread(), join_workers(), LDAP_DECLARE(), LDAP_DECLARE_NONSTD(), leader_pre_config(), limit_proc(), list_merge_multi(), list_merge_single(), list_split_multi(), list_split_single(), listener_thread(), load_file(), load_module(), log_after(), log_before(), log_child(), log_script(), log_script_err(), log_scripterror(), lookup_map(), lookup_map_dbmfile(), lookup_map_program(), lookup_map_txtfile(), magic_process(), main(), make_autoindex_entry(), make_child(), make_sock(), make_socket(), makroom(), MDFile(), MDFilter(), merge_belowroot(), merge_dotdot(), merge_noflag(), merge_notabs(), merge_notrel(), merge_secure(), mime_post_config(), mkdir_structure(), mmap_handler(), mod_auth_ldap_build_filter(), mod_auth_ldap_cleanup_connection_close(), more_finfo(), mpm_merge_service_args(), mpm_service_install(), mpm_service_set_name(), mpm_service_start(), mpm_service_started(), mpm_service_to_start(), mpm_service_uninstall(), netware_rewrite_args(), no_options(), no_options_found(), nwssl_post_config(), nwssl_socket_cleanup(), oops(), open_entity(), open_error_log(), open_log(), open_postfile(), open_rewritelog(), open_scoreboard(), optional_option(), optional_option_notgiven(), os2_fn_link(), os2_socket_init(), parent_pool(), parse_cmd(), parse_ip(), parse_network(), parse_url(), pass_data_to_filter(), pass_request(), perchild_open_logs(), perchild_pre_config(), pipe_bucket_read(), pipe_get_passwd_cb(), pipeblock(), piped_log_cleanup(), pipenonblock(), pod_signal_internal(), pollset_remove(), pool_bucket_cleanup(), pool_bucket_read(), post_config(), post_pool_clear(), prefix_stat(), prefork_pre_config(), prep(), proc_mutex_choose_method(), proc_mutex_cleanup(), proc_mutex_create(), process_echo_connection(), process_resource_config_nofnmatch(), process_socket(), PROXY_DECLARE(), proxy_match_ipaddr(), queue_info_cleanup(), r_flush(), read_connection(), read_from(), read_request_line(), read_table(), read_type_map(), read_types_multi(), read_with_timeout(), read_write(), read_write_notimeout(), recall_body(), recall_headers(), recv_1_send_0(), recv_2_send_1(), recv_msg(), regex_cleanup(), remove_keepalive(), ReportStatusToSCMgr(), required_option(), required_option_notgiven(), reset_request_notes(), reset_version(), resolve_ident(), resolve_symlink(), rewritelock_create(), rewritelock_remove(), rewritelog(), rewritemap_program_child(), rfc1413_connect(), rfc1413_query(), root_absolute(), run_basic_test(), run_cgi_child(), run_rewritemap_programs(), run_sendfile(), scan_meta_file(), send0_pollset(), send_2(), send_2_signaled_1(), send_all_header_fields(), send_downstream(), send_eos(), send_large_pollarray(), send_last_pollset(), send_middle_pollset(), send_msg(), send_parsed_content(), send_req(), sendfile_handler(), sendto_receivefrom(), serialize_table(), ServerSupportFunction(), service_nt_dispatch_thread(), service_stderr_thread(), set_aside_partial_char(), set_document_root(), set_keepalive(), set_proxy_exclude(), set_resource_limits(), set_server_root(), set_service_description(), set_timeout(), set_userdata(), setdbit(), setptr(), setup_large_poll(), setup_pollset(), setup_small_poll(), shm_cleanup(), shm_cleanup_attach(), shm_cleanup_owner(), simple_bucket_read(), soblock(), sock_read(), sock_write(), socket_bucket_read(), socket_cleanup(), socket_userdata(), sononblock(), ssl_expr_eval_func_file(), ssl_filter_io_shutdown(), ssl_filter_write(), ssl_hook_pre_connection(), ssl_init_ModuleKill(), ssl_io_filter_cleanup(), ssl_io_filter_connect(), ssl_io_filter_error(), ssl_io_filter_input(), ssl_io_filter_output(), ssl_io_input_add_filter(), ssl_io_input_getline(), ssl_io_input_read(), ssl_mutex_init(), ssl_mutex_off(), ssl_mutex_on(), ssl_mutex_reinit(), ssl_pipe_child_create(), ssl_pphrase_Handle(), ssl_pphrase_Handle_CB(), ssl_rand_feedfp(), ssl_rand_seed(), ssl_scache_dbm_expire(), ssl_scache_dbm_init(), ssl_scache_dbm_remove(), ssl_scache_dbm_retrieve(), ssl_scache_dbm_status(), ssl_scache_dbm_store(), ssl_scache_shmcb_init(), ssl_scache_shmht_init(), ssl_util_ppopen(), ssl_util_readfilter(), SSL_X509_INFO_load_path(), STACK_OF(), start_connect(), start_thread(), start_threads(), store_body(), store_headers(), store_table(), string_cleanup(), tcp6_socket(), tcp_socket(), tell_workers_to_exit(), test(), test_aup(), test_bad_input(), test_bigread(), test_closedir(), test_create_proc(), test_ctime(), test_dso_sym(), test_dso_sym_library(), test_dso_sym_return_value(), test_dso_sym_return_value_library(), test_dup2(), test_dup2_readwrite(), test_exclusive(), test_exp_get_gmt(), test_exp_get_lt(), test_exp_lt(), test_exp_tz(), test_file_dup(), test_file_readwrite(), test_file_redir(), test_file_remove(), test_fileclose(), test_filename(), test_getc(), test_gets(), test_gmtstr(), test_imp_gmt(), test_info_get(), test_interesting_subnets(), test_load_library(), test_load_module(), test_mkdir(), test_mkdir_recurs(), test_mkdir_twice(), test_mod_neg(), test_nrange(), test_open_excl(), test_open_noreadwrite(), test_open_read(), test_open_readwrite(), test_open_writecreate(), test_opendir(), test_pipe_writefull(), test_read(), test_remove(), test_removeall(), test_rfcstr(), test_safe_name(), test_seek(), test_singleton_subnets(), test_stat(), test_stat_eq_finfo(), test_strftime(), test_strftimeoffset(), test_strftimesmall(), test_tempdir(), test_truncate(), test_uncleared_errno(), test_ungetc(), test_unload_library(), test_unload_module(), test_uph(), test_userdata_get(), test_userdata_getnokey(), test_userdata_set(), test_wrange(), test_write(), thread_cond_cleanup(), thread_mutex_cleanup(), thread_once_cleanup(), thread_rwlock_cleanup(), transient_bucket_setaside(), translate_userdir(), true_random(), udp6_socket(), udp_socket(), uncompress(), unique_id_global_init(), unload_module(), unserialize_table(), util_ldap_child_init(), util_ldap_cleanup_module(), util_ldap_post_config(), util_ldap_set_cert_auth(), wakeup_listener(), worker_main(), worker_pre_config(), worker_stack_awaken_next(), worker_stack_create(), worker_stack_pop(), worker_stack_term(), worker_stack_terminate(), worker_stack_wait(), worker_thread(), worker_wakeup_create(), write_page(), write_request(), writev_it_all(), x_child_exit(), xlate_brigade(), xlate_in_filter(), and xlate_out_filter().

#define APR_TO_OS_ERROR e   )     (e)
 

Definition at line 1102 of file apr_errno.h.


Typedef Documentation

typedef int apr_status_t
 

Type for specifying an error or status code.

Definition at line 44 of file apr_errno.h.


Function Documentation

APR_DECLARE char *   ) 
 

Return a human readable string describing the specified error.

Parameters:
statcode The error code the get a string for.
buf A buffer to hold the error string.
bufsize Size of the buffer to hold the string.

Definition at line 225 of file apr_cpystrn.c.

References apr_isspace.


Variable Documentation

char* buf
 

Definition at line 52 of file apr_errno.h.

char apr_size_t bufsize
 

Definition at line 52 of file apr_errno.h.