MCPcopy Create free account
hub / github.com/apache/httpd / trace_startup

Function trace_startup

modules/examples/mod_example_hooks.c:349–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347 */
348
349static void trace_startup(apr_pool_t *p, server_rec *s, x_cfg *mconfig,
350 const char *note)
351{
352 const char *sofar;
353 char *where, *addon;
354
355#if EXAMPLE_LOG_EACH
356 example_log_each(p, s, note);
357#endif
358
359 /*
360 * If we weren't passed a configuration record, we can't figure out to
361 * what location this call applies. This only happens for co-routines
362 * that don't operate in a particular directory or server context. If we
363 * got a valid record, extract the location (directory or server) to which
364 * it applies.
365 */
366 where = (mconfig != NULL) ? mconfig->loc : "nowhere";
367 where = (where != NULL) ? where : "";
368
369 addon = apr_pstrcat(p,
370 " <li>\n"
371 " <dl>\n"
372 " <dt><samp>", note, "</samp></dt>\n"
373 " <dd><samp>[", where, "]</samp></dd>\n"
374 " </dl>\n"
375 " </li>\n",
376 NULL);
377
378 /*
379 * Make sure that we start with a valid string, even if we have never been
380 * called.
381 */
382 sofar = (trace == NULL) ? "" : trace;
383
384 trace = apr_pstrcat(p, sofar, addon, NULL);
385}
386
387
388/*

Callers 12

cmd_exampleFunction · 0.85
x_create_dir_configFunction · 0.85
x_merge_dir_configFunction · 0.85
x_create_server_configFunction · 0.85
x_merge_server_configFunction · 0.85
x_pre_configFunction · 0.85
x_check_configFunction · 0.85
x_test_configFunction · 0.85
x_open_logsFunction · 0.85
x_post_configFunction · 0.85
x_child_exitFunction · 0.85
x_child_initFunction · 0.85

Calls 1

example_log_eachFunction · 0.85

Tested by

no test coverage detected