#include "ap_config.h"#include "httpd.h"#include "http_config.h"#include "http_core.h"#include "http_protocol.h"#include "http_request.h"#include "http_log.h"#include "util_script.h"#include "mod_core.h"#include "apr_lib.h"#include "apr_strings.h"#include "apr_portable.h"#include "apr_buckets.h"#include "apr_thread_mutex.h"#include "apr_thread_rwlock.h"#include "apr_hash.h"#include "mod_isapi.h"Include dependency graph for mod_isapi.c:

Go to the source code of this file.
Defines | |
| #define | ISAPI_RETRY apr_time_from_sec(30) |
| #define | ISAPI_UNDEF -1 |
Typedefs | |
| typedef isapi_dir_conf | isapi_dir_conf |
| typedef isapi_loaded | isapi_loaded |
Functions | |
| apr_status_t | isapi_lookup (apr_pool_t *p, server_rec *s, request_rec *r, const char *fpath, isapi_loaded **isa) |
| static void * | create_isapi_dir_config (apr_pool_t *p, char *dummy) |
| static void * | merge_isapi_dir_configs (apr_pool_t *p, void *base_, void *add_) |
| static const char * | isapi_cmd_cachefile (cmd_parms *cmd, void *dummy, const char *filename) |
| static apr_status_t | isapi_unload (isapi_loaded *isa, int force) |
| static apr_status_t | cleanup_isapi (void *isa_) |
| static apr_status_t | isapi_load (apr_pool_t *p, server_rec *s, isapi_loaded *isa) |
| int APR_THREAD_FUNC | GetServerVariable (isapi_cid *cid, char *variable_name, void *buf_data, apr_uint32_t *buf_size) |
| int APR_THREAD_FUNC | ReadClient (isapi_cid *cid, void *buf_data, apr_uint32_t *buf_size) |
| static apr_ssize_t | send_response_header (isapi_cid *cid, const char *stat, const char *head, apr_size_t statlen, apr_size_t headlen) |
| int APR_THREAD_FUNC | WriteClient (isapi_cid *cid, void *buf_data, apr_uint32_t *size_arg, apr_uint32_t flags) |
| int APR_THREAD_FUNC | ServerSupportFunction (isapi_cid *cid, apr_uint32_t HSE_code, void *buf_data, apr_uint32_t *buf_size, apr_uint32_t *data_type) |
| apr_status_t | isapi_handler (request_rec *r) |
| static int | isapi_pre_config (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp) |
| static void | isapi_hooks (apr_pool_t *cont) |
Variables | |
| module AP_MODULE_DECLARE_DATA | isapi_module |
| static const command_rec | isapi_cmds [] |
| static struct isapi_global_conf | loaded |
|
|
Definition at line 57 of file mod_isapi.c. Referenced by isapi_lookup(). |
|
|
Definition at line 67 of file mod_isapi.c. Referenced by create_isapi_dir_config(), isapi_handler(), and merge_isapi_dir_configs(). |
|
|
|
|
|
Definition at line 78 of file mod_isapi.c. |
|
|
Definition at line 244 of file mod_isapi.c. References isapi_unload(). Referenced by isapi_load(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 83 of file mod_isapi.c. References dir, isapi_dir_conf::fake_async, ISAPI_UNDEF, isapi_dir_conf::log_to_errlog, isapi_dir_conf::log_to_query, isapi_dir_conf::log_unsupported, and isapi_dir_conf::read_ahead_buflen. |
|
||||||||||||||||||||
|
Definition at line 488 of file mod_isapi.c. References arr, apr_array_header_t::elts, ERROR_INSUFFICIENT_BUFFER, ERROR_INVALID_INDEX, request_rec::headers_in, key, len, nelts, isapi_cid::r, r, result, request_rec::subprocess_env, and val. Referenced by isapi_handler(). |
|
||||||||||||||||
|
Definition at line 121 of file mod_isapi.c. References APLOG_MARK, APLOG_WARNING, APR_EBADPATH, APR_FINFO_TYPE, APR_REG, APR_SUCCESS, apr_finfo_t::filetype, isapi_lookup(), NULL, cmd_parms_struct::pool, cmd_parms_struct::server, and cmd_parms_struct::temp_pool. Here is the call graph for this function: ![]() |
|
|
|
Definition at line 1633 of file mod_isapi.c. References APR_HOOK_MIDDLE, isapi_handler(), isapi_pre_config(), and NULL. Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 254 of file mod_isapi.c. References APLOG_ERR, APLOG_MARK, apr_get_os_error, apr_pcalloc, APR_SUCCESS, cleanup_isapi(), isapi_loaded::filename, isapi_loaded::GetExtensionVersion, isapi_loaded::handle, isapi_loaded::HttpExtensionProc, isapi_loaded::isapi_version, NULL, isapi_loaded::report_version, isapi_loaded::TerminateExtension, and isapi_loaded::timeout. Referenced by isapi_lookup(). Here is the call graph for this function: ![]() |
|
||||||||||||||||||||||||
|
Definition at line 326 of file mod_isapi.c. References APR_HASH_KEY_STRING, apr_pcalloc, APR_SUCCESS, isapi_global_conf::hash, isapi_load(), ISAPI_RETRY, key, loaded, isapi_global_conf::lock, NULL, isapi_global_conf::pool, and unlock. Referenced by isapi_cmd_cachefile(), and isapi_handler(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1605 of file mod_isapi.c. References APLOG_ERR, APLOG_MARK, APR_EGENERAL, apr_pool_sub_make, APR_SUCCESS, isapi_global_conf::hash, loaded, isapi_global_conf::lock, NULL, OK, and isapi_global_conf::pool. Referenced by isapi_hooks(). |
|
||||||||||||
|
Definition at line 220 of file mod_isapi.c. References APR_EGENERAL, APR_SUCCESS, isapi_loaded::handle, HSE_TERM_ADVISORY_UNLOAD, HSE_TERM_MUST_UNLOAD, NULL, and isapi_loaded::TerminateExtension. Referenced by cleanup_isapi(), and isapi_handler(). |
|
||||||||||||||||
|
Definition at line 96 of file mod_isapi.c. References base, dir, isapi_dir_conf::fake_async, ISAPI_UNDEF, isapi_dir_conf::log_to_errlog, isapi_dir_conf::log_to_query, isapi_dir_conf::log_unsupported, and isapi_dir_conf::read_ahead_buflen. |
|
||||||||||||||||
|
Definition at line 589 of file mod_isapi.c. References ERROR_READ_FAULT, isapi_cid::r, r, read, and request_rec::remaining. Referenced by isapi_handler(). |
|
||||||||||||||||||||||||
|
Definition at line 624 of file mod_isapi.c. References apr_isdigit, apr_isspace, EXTENSION_CONTROL_BLOCK::dwHttpStatusCode, isapi_cid::ecb, isapi_cid::headers_set, HTTP_INTERNAL_SERVER_ERROR, HTTP_OK, memchr(), NULL, request_rec::pool, isapi_cid::r, request_rec::status, request_rec::status_line, termarg, and termch. Referenced by ServerSupportFunction(), and WriteClient(). Here is the call graph for this function: ![]() |
|
||||||||||||||||||||||||
|
||||||||||||||||||||
|
Definition at line 762 of file mod_isapi.c. References APR_BRIGADE_INSERT_TAIL, b, bb, conn_rec::bucket_alloc, c, request_rec::connection, ERROR_INVALID_PARAMETER, ERROR_SUCCESS, ERROR_WRITE_FAULT, HSE_IO_ASYNC, NULL, OK, request_rec::output_filters, request_rec::pool, r, and send_response_header(). Referenced by isapi_handler(). Here is the call graph for this function: ![]() |
|
|
Initial value: {
AP_INIT_TAKE1("ISAPIReadAheadBuffer", ap_set_int_slot,
(void *)APR_OFFSETOF(isapi_dir_conf, read_ahead_buflen),
OR_FILEINFO, "Maximum client request body to initially pass to the"
" ISAPI handler (default: 49152)"),
AP_INIT_FLAG("ISAPILogNotSupported", ap_set_flag_slot,
(void *)APR_OFFSETOF(isapi_dir_conf, log_unsupported),
OR_FILEINFO, "Log requests not supported by the ISAPI server"
" on or off (default: off)"),
AP_INIT_FLAG("ISAPIAppendLogToErrors", ap_set_flag_slot,
(void *)APR_OFFSETOF(isapi_dir_conf, log_to_errlog),
OR_FILEINFO, "Send all Append Log requests to the error log"
" on or off (default: off)"),
AP_INIT_FLAG("ISAPIAppendLogToQuery", ap_set_flag_slot,
(void *)APR_OFFSETOF(isapi_dir_conf, log_to_query),
OR_FILEINFO, "Append Log requests are concatinated to the query args"
" on or off (default: on)"),
AP_INIT_FLAG("ISAPIFakeAsync", ap_set_flag_slot,
(void *)APR_OFFSETOF(isapi_dir_conf, fake_async),
OR_FILEINFO, "Fake Asynchronous support for isapi callbacks"
" on or off [Experimental] (default: off)"),
AP_INIT_ITERATE("ISAPICacheFile", isapi_cmd_cachefile, NULL,
RSRC_CONF, "Cache the specified ISAPI extension in-process"),
{NULL}
}
Definition at line 166 of file mod_isapi.c. |
|
|
Initial value: {
STANDARD20_MODULE_STUFF,
create_isapi_dir_config,
merge_isapi_dir_configs,
NULL,
NULL,
isapi_cmds,
isapi_hooks
}
Definition at line 1639 of file mod_isapi.c. Referenced by isapi_handler(). |
|
|
Referenced by isapi_lookup(), and isapi_pre_config(). |