* 20050127.0 (2.1.3-dev) renamed regex_t->ap_regex_t, regmatch_t->ap_regmatch_t,
* REG_*->AP_REG_*, removed reg* in place of ap_reg*;
* added ap_regex.h
+ * 20050217.0 (2.1.3-dev) Axed find_child_by_pid, mpm_*_completion_context (winnt mpm)
+ * symbols from the public sector, and decorated real_exit_code
+ * with ap_ in the win32 os.h.
*/
#define MODULE_MAGIC_COOKIE 0x41503230UL /* "AP20" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
-#define MODULE_MAGIC_NUMBER_MAJOR 20050127
+#define MODULE_MAGIC_NUMBER_MAJOR 20050217
#endif
#define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */
#ifndef AP_RELEASE_H
#define AP_RELEASE_H
+/* The numeric compile-time version constants. These constants are the
+ * authoritative version numbers for APR.
+ */
/** Properly quote a value as a string in the C preprocessor */
#define AP_STRINGIFY(n) AP_STRINGIFY_HELPER(n)
/** Helper macro for AP_STRINGIFY */
AP_DECLARE(void) ap_create_sb_handle(ap_sb_handle_t **new_sbh, apr_pool_t *p,
int child_num, int thread_num);
-AP_DECLARE(int) find_child_by_pid(apr_proc_t *pid);
+int find_child_by_pid(apr_proc_t *pid);
AP_DECLARE(int) ap_update_child_status(ap_sb_handle_t *sbh, int status, request_rec *r);
AP_DECLARE(int) ap_update_child_status_from_indexes(int child_num, int thread_num,
int status, request_rec *r);
static HANDLE qwait_event = NULL;
-AP_DECLARE(void) mpm_recycle_completion_context(PCOMP_CONTEXT context)
+void mpm_recycle_completion_context(PCOMP_CONTEXT context)
{
/* Recycle the completion context.
* - clear the ptrans pool
}
}
-AP_DECLARE(PCOMP_CONTEXT) mpm_get_completion_context(void)
+PCOMP_CONTEXT mpm_get_completion_context(void)
{
apr_status_t rv;
PCOMP_CONTEXT context = NULL;
return context;
}
-AP_DECLARE(apr_status_t) mpm_post_completion_context(PCOMP_CONTEXT context,
- io_state_e state)
+apr_status_t mpm_post_completion_context(PCOMP_CONTEXT context,
+ io_state_e state)
{
LPOVERLAPPED pOverlapped;
if (context)
parent_pid = (DWORD) atol(pid);
/* Prevent holding open the (nonexistant) console */
- real_exit_code = 0;
+ ap_real_exit_code = 0;
/* The parent is responsible for providing the
* COMPLETE ARGUMENTS REQUIRED to the child.
switch (optbuf[1]) {
/* Shortcuts; include the -w option to hold the window open on error.
- * This must not be toggled once we reset real_exit_code to 0!
+ * This must not be toggled once we reset ap_real_exit_code to 0!
*/
case 'w':
- if (real_exit_code)
- real_exit_code = 2;
+ if (ap_real_exit_code)
+ ap_real_exit_code = 2;
break;
case 'n':
IOCP_SHUTDOWN = 4
} io_state_e;
-AP_DECLARE(PCOMP_CONTEXT) mpm_get_completion_context(void);
-AP_DECLARE(void) mpm_recycle_completion_context(PCOMP_CONTEXT pCompContext);
-AP_DECLARE(apr_status_t) mpm_post_completion_context(PCOMP_CONTEXT pCompContext, io_state_e state);
+PCOMP_CONTEXT mpm_get_completion_context(void);
+void mpm_recycle_completion_context(PCOMP_CONTEXT pCompContext);
+apr_status_t mpm_post_completion_context(PCOMP_CONTEXT pCompContext, io_state_e state);
void hold_console_open_on_error(void);
#endif /* APACHE_MPM_WINNT_H */
* the service.h header, so we best assume it's an error to exit from
* _any_ other module.
*
- * If real_exit_code is reset to 0, it will not be set or trigger this
+ * If ap_real_exit_code is reset to 0, it will not be set or trigger this
* behavior on exit. All service and child processes are expected to
* reset this flag to zero to avoid undesireable side effects.
*/
-AP_DECLARE_DATA int real_exit_code = 1;
+AP_DECLARE_DATA int ap_real_exit_code = 1;
void hold_console_open_on_error(void)
{
INPUT_RECORD in;
char count[16];
- if (!real_exit_code)
+ if (!ap_real_exit_code)
return;
hConIn = GetStdHandle(STD_INPUT_HANDLE);
hConErr = GetStdHandle(STD_ERROR_HANDLE);
HANDLE waitfor[2];
/* Prevent holding open the (hidden) console */
- real_exit_code = 0;
+ ap_real_exit_code = 0;
/* GetCurrentThread returns a psuedo-handle, we need
* a real handle for another thread to wait upon.
ws->conn_bytes += r->bytes_sent;
}
-AP_DECLARE(int) find_child_by_pid(apr_proc_t *pid)
+int find_child_by_pid(apr_proc_t *pid)
{
int i;
int max_daemons_limit;