0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-16 08:58:20 +02:00

ircd::info: Add glibc related to info.

This commit is contained in:
Jason Volk 2018-06-09 13:42:35 -07:00
parent 960553f279
commit feb1aa5d2f
2 changed files with 10 additions and 0 deletions

View file

@ -48,6 +48,8 @@ namespace ircd::info
extern const size_t rlimit_data;
extern const size_t rlimit_rss;
extern const size_t rlimit_nofile;
extern const int glibc[3];
#ifdef HAVE_SYS_UTSNAME_H
extern const ::utsname utsname;
#endif

View file

@ -183,6 +183,14 @@ ircd::info::startup
// System / platform information
//
const int
glibc[3]
{
__GNU_LIBRARY__,
__GLIBC__,
__GLIBC_MINOR__,
};
#ifdef HAVE_SYS_UTSNAME_H
decltype(ircd::info::utsname)
ircd::info::utsname{[]