mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
79 lines
2.1 KiB
C++
79 lines
2.1 KiB
C++
// Matrix Construct
|
|
//
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
|
|
//
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
|
|
#pragma once
|
|
#define HAVE_IRCD_INFO_H
|
|
|
|
// legacy
|
|
extern "C" const char *const ircd_name;
|
|
extern "C" const char *const ircd_version;
|
|
|
|
/// Information & metadata about the library.
|
|
namespace ircd::info
|
|
{
|
|
struct line;
|
|
struct tc_version;
|
|
|
|
// Build information
|
|
extern const string_view tag;
|
|
extern const string_view branch;
|
|
extern const string_view commit;
|
|
extern const time_t configured_time;
|
|
extern const time_t startup_time;
|
|
extern const string_view configured;
|
|
extern const string_view compiled;
|
|
extern const string_view startup;
|
|
|
|
// Platform information
|
|
extern const size_t max_align;
|
|
extern const size_t hardware_concurrency;
|
|
extern const size_t destructive_interference;
|
|
extern const size_t constructive_interference;
|
|
extern const uint128_t cpuid[8];
|
|
extern const string_view cpuvendor;
|
|
|
|
// System information
|
|
extern const size_t page_size;
|
|
extern const size_t iov_max;
|
|
extern const size_t aio_max;
|
|
extern const size_t aio_reqprio_max;
|
|
extern const size_t clk_tck;
|
|
extern const size_t rlimit_as;
|
|
extern const size_t rlimit_data;
|
|
extern const size_t rlimit_rss;
|
|
extern const size_t rlimit_nofile;
|
|
extern const size_t rlimit_rttime;
|
|
|
|
// Host information
|
|
#ifdef HAVE_SYS_UTSNAME_H
|
|
extern const ::utsname utsname;
|
|
#endif
|
|
extern const string_view kname;
|
|
extern const string_view kversion_str;
|
|
extern const int kversion[3];
|
|
|
|
// Third-party information
|
|
extern const int glibc_version[3];
|
|
extern const string_view glibc_version_str;
|
|
|
|
// Primary information
|
|
extern const string_view name;
|
|
extern const string_view version;
|
|
extern const string_view user_agent;
|
|
extern const string_view server_agent;
|
|
|
|
// Extended information
|
|
extern const string_view credits[];
|
|
|
|
// Util
|
|
void dump();
|
|
void init();
|
|
}
|