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

Function show_compile_settings

server/main.c:95–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void show_compile_settings(void)
96{
97 printf("Server version: %s\n", ap_get_server_description());
98 printf("Server built: %s\n", ap_get_server_built());
99 printf("Server's Module Magic Number: %u:%u\n",
100 MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR);
101#if APR_MAJOR_VERSION >= 2
102 printf("Server loaded: APR %s, PCRE %s\n",
103 apr_version_string(), ap_pcre_version_string(AP_REG_PCRE_LOADED));
104 printf("Compiled using: APR %s, PCRE %s\n",
105 APR_VERSION_STRING, ap_pcre_version_string(AP_REG_PCRE_COMPILED));
106#else
107 printf("Server loaded: APR %s, APR-UTIL %s, PCRE %s\n",
108 apr_version_string(), apu_version_string(),
109 ap_pcre_version_string(AP_REG_PCRE_LOADED));
110 printf("Compiled using: APR %s, APR-UTIL %s, PCRE %s\n",
111 APR_VERSION_STRING, APU_VERSION_STRING,
112 ap_pcre_version_string(AP_REG_PCRE_COMPILED));
113#endif
114 /* sizeof(foo) is long on some platforms so we might as well
115 * make it long everywhere to keep the printf format
116 * consistent
117 */
118 printf("Architecture: %ld-bit\n", 8 * (long)sizeof(void *));
119
120 show_mpm_settings();
121
122 printf("Server compiled with....\n");
123#ifdef BIG_SECURITY_HOLE
124 printf(" -D BIG_SECURITY_HOLE\n");
125#endif
126
127#ifdef SECURITY_HOLE_PASS_AUTHORIZATION
128 printf(" -D SECURITY_HOLE_PASS_AUTHORIZATION\n");
129#endif
130
131#ifdef OS
132 printf(" -D OS=\"" OS "\"\n");
133#endif
134
135#ifdef HAVE_SHMGET
136 printf(" -D HAVE_SHMGET\n");
137#endif
138
139#if APR_FILE_BASED_SHM
140 printf(" -D APR_FILE_BASED_SHM\n");
141#endif
142
143#if APR_HAS_SENDFILE
144 printf(" -D APR_HAS_SENDFILE\n");
145#endif
146
147#if APR_HAS_MMAP
148 printf(" -D APR_HAS_MMAP\n");
149#endif
150
151#ifdef NO_WRITEV
152 printf(" -D NO_WRITEV\n");

Callers 1

mainFunction · 0.85

Calls 4

ap_get_server_builtFunction · 0.85
ap_pcre_version_stringFunction · 0.85
show_mpm_settingsFunction · 0.85

Tested by

no test coverage detected