Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 111 lines (103 sloc) 2.725 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

/* Cherokee
*
* Authors:
* Alvaro Lopez Ortega <alvaro@alobbs.com>
*
* Copyright (C) 2001-2010 Alvaro Lopez Ortega
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/

#include "common-internal.h"
#include "info.h"
#include "plugin_loader.h"
#include "server-protected.h"

void
cherokee_info_build_print (cherokee_server_t *srv)
{
cherokee_buffer_t builtin = CHEROKEE_BUF_INIT;

/* Basic info
*/
printf ("Compilation\n");
printf (" Version: " PACKAGE_VERSION "\n");
printf (" Compiled on: " __DATE__ " " __TIME__ "\n");
printf (" Arguments to configure: " CHEROKEE_CONFIG_ARGS "\n");
printf ("\n");

/* Paths
*/
printf ("Installation\n");
printf (" Deps dir: " CHEROKEE_DEPSDIR "\n");
printf (" Data dir: " CHEROKEE_DATADIR "\n");
printf (" Icons dir: " CHEROKEE_ICONSDIR "\n");
printf (" Themes dir: " CHEROKEE_THEMEDIR "\n");
printf (" Plug-in dir: " CHEROKEE_PLUGINDIR "\n");
printf (" Temporal dir: " TMPDIR "\n");
printf ("\n");

/* Print plug-ins information
*/
printf ("Plug-ins\n");
cherokee_plugin_loader_get_mods_info (&srv->loader, &builtin);
printf (" Built-in: %s\n", builtin.buf ? builtin.buf : "");
printf ("\n");
cherokee_buffer_mrproper (&builtin);

/* Support
*/
printf ("Support\n");
#ifdef HAVE_IPV6
printf (" IPv6: yes\n");
#else
printf (" IPv6: no\n");
#endif
#ifdef HAVE_PTHREAD
printf (" Pthreads: yes\n");
#else
printf (" Pthreads: no\n");
#endif
#ifdef TRACE_ENABLED
printf (" Tracing: yes\n");
#else
printf (" Tracing: no\n");
#endif
#ifdef WITH_SENDFILE
printf (" sendfile(): yes\n");
#else
printf (" sendfile(): no\n");
#endif
#ifdef HAVE_SYSLOG
printf (" syslog(): yes\n");
#else
printf (" syslog(): no\n");
#endif

printf (" Polling methods: ");
#ifdef HAVE_PORT
printf ("ports ");
#endif
#ifdef HAVE_SELECT
printf ("select ");
#endif
#ifdef HAVE_WIN32_SELECT
printf ("win32-select ");
#endif
#ifdef HAVE_POLL
printf ("poll ");
#endif
#ifdef HAVE_EPOLL
printf ("epoll ");
#endif
#ifdef HAVE_KQUEUE
printf ("kqueue");
#endif
printf ("\n\n");
}
Something went wrong with that request. Please try again.