0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-08-25 19:12:08 +02:00
Commit graph

4818 commits

Author SHA1 Message Date
Jason Volk
6968f24921 ircd::db: Add compaction period parameter to descriptor. 2020-06-07 05:46:24 -07:00
Jason Volk
b8521117c1 ircd::db::row: Add valid_all() to interface. 2020-06-07 03:26:31 -07:00
Jason Volk
7af4e85631 ircd:Ⓜ️ Throw better errcode for unverifiable sig; use 403 for failed verify. 2020-06-07 02:24:49 -07:00
Jason Volk
22eb9b514b ircd::fs::dev: Add block device information system w/ sysfs. 2020-06-07 01:51:19 -07:00
Jason Volk
680c29601e ircd::fs::dev: Cleanup returned string data from sysfs read. 2020-06-07 01:51:19 -07:00
Jason Volk
6e1d58c2e6 ircd::buffer: Improve the overlap tool. 2020-06-07 01:51:19 -07:00
Jason Volk
58d15e6852 ircd::spirit: Add template option for truncation behavior to generate.
ircd::fmt: Add internal generate template; enable truncation.
2020-06-05 12:15:11 -07:00
Jason Volk
268d4265ca ircd::spirit: Improve generator overflow counting. 2020-06-05 09:15:15 -07:00
Jason Volk
be07ae05b2 ircd::portable: Optimize redefined macro if conditions are favorable. 2020-06-05 04:32:57 -07:00
Jason Volk
04020a91b7 ircd::buffer: lte range assertion on ctor; remove attr; minor reorg.
ircd::buffer::window_buffer: Assertion on consumption increments.
2020-06-05 04:32:57 -07:00
Jason Volk
1ef26f113f ircd::strlcpy: Use character copy; remove branch. 2020-06-04 19:19:06 -07:00
Jason Volk
da43ac3d95 ircd:Ⓜ️:sync: Add flag to trigger re-request forcing focused full_state. 2020-06-03 23:26:08 -07:00
Jason Volk
9e96863922 ircd:Ⓜ️:sync: Add flags component to since token. 2020-06-03 22:36:58 -07:00
Jason Volk
d662bdaa3e ircd:Ⓜ️:sync: Add document comments for sync::data members. 2020-06-03 22:36:58 -07:00
Jason Volk
fcd488b409 ircd:Ⓜ️:sync: Centralize all since token related into library suite. 2020-06-03 22:36:58 -07:00
Jason Volk
b8c4bf85e5 ircd:Ⓜ️:sync: Split up sync.h header into directory; move sync::data definition. 2020-06-03 19:39:55 -07:00
Jason Volk
a70a6164be ircd::net: Convey ALPN selection to socket instance. 2020-05-30 23:19:03 -07:00
Jason Volk
47d1ac40c3 ircd::net::acceptor: Carry pointer to our socket instance in ssl opaque. 2020-05-30 22:47:03 -07:00
Jason Volk
5fa1e524a4 ircd::openssl: Add interface wrapping get/set app_data. 2020-05-30 22:17:11 -07:00
Jason Volk
489cf7a560 ircd::allocator: Add a graceful getter/setter for RLIMIT_MEMLOCK. 2020-05-29 23:40:24 -07:00
Jason Volk
ed5228610f ircd::allocator: Add void specialization to mallctl suite. 2020-05-29 23:40:24 -07:00
Jason Volk
e70284c03f ircd::allocator: Add more flexibility to mallctl template. 2020-05-29 23:40:24 -07:00
Jason Volk
6eb54341ef ircd::spirit: Fix signedness and displacements in generator state; add assertions. 2020-05-29 23:40:24 -07:00
Jason Volk
d9cf74ebd6 modules/client/publicrooms: Convey search term to any federation query. 2020-05-29 01:39:25 -07:00
Jason Volk
761ff66464 ircd:Ⓜ️:fed: Generate POST /publicRooms content by default; add console search param. 2020-05-29 01:34:19 -07:00
Jason Volk
aead45402d ircd:Ⓜ️:sync: Introduce item prefetch feature for polylog mode. 2020-05-28 21:31:28 -07:00
Jason Volk
4d32122fa8 ircd::spirit: Quench the generator's default position policy. 2020-05-28 20:09:14 -07:00
Jason Volk
6beb93b1c1 ircd::spirit: Improve pseudo-buffering; generator state and interface related. 2020-05-28 20:09:14 -07:00
Jason Volk
7064e4f349 ircd::util: Improve some comments; minor cleanup. 2020-05-28 15:20:32 -07:00
Jason Volk
876f28f1df ircd::spirit: Specify inline storage for util templates. 2020-05-27 20:03:03 -07:00
Jason Volk
8b3760b57f ircd::spirit: Minor rename error buffer. 2020-05-27 20:03:02 -07:00
Jason Volk
d58921f756 ircd::spirit: Add exceptions; move epsilon into generate abstraction; minor cleanup. 2020-05-27 20:03:02 -07:00
Jason Volk
3b485d79f1 ircd::buffer: Return bytes consumed from consume(). 2020-05-27 10:50:56 -07:00
Jason Volk
b698f80067 ircd::spirit: Abstract common generator call into template. 2020-05-26 04:54:52 -07:00
Jason Volk
93ee6a9f04 ircd::allocator: Add templated info get()/set() to suite. 2020-05-26 02:10:09 -07:00
Jason Volk
ef022a215f ircd:Ⓜ️🪝 Use nothrow disable_interruption; propagate by default. 2020-05-24 21:06:17 -07:00
Jason Volk
31dfedbcd7 ircd::json: Add suite for type optimized type query; refactor grammars. 2020-05-24 19:03:00 -07:00
Jason Volk
e938081404 ircd::ctx: Add watchdog log facility. 2020-05-24 17:42:32 -07:00
Jason Volk
ac42d4df13 ircd::ctx: Measure and report epoch span for slice_usage_warning. 2020-05-24 17:14:02 -07:00
Jason Volk
f070e3b706 ircd::ctx: Condition on RB_DEBUG rather than NDEBUG for slice_usage_warning tool. 2020-05-24 17:14:02 -07:00
Jason Volk
24d73428c8 ircd::json: Fix overzealous escape cases. (fixes #152) (fixes #17) 2020-05-24 15:32:40 -07:00
Jason Volk
2f51b01008 ircd::fs: Integrate fd::opts extending fs::opts. 2020-05-24 15:32:40 -07:00
Jason Volk
c7b473485b ircd::allocator: Add argument for options string to info() interface. 2020-05-22 16:37:05 -07:00
Jason Volk
54a72532b6 ircd::json: Eliminate output validation for release builds. 2020-05-22 16:37:05 -07:00
Jason Volk
c73636f950 ircd::json: Add output validation to base stringify() template. 2020-05-22 16:37:05 -07:00
Jason Volk
a57469fbd6 ircd::spirit: Add convenience templates for semantic context access. 2020-05-20 20:52:32 -07:00
Jason Volk
4d5c006003 ircd::fs: Simplify read suite overloads. 2020-05-20 20:40:48 -07:00
Jason Volk
a1de7e8e08 ircd::fs::fd: Replace open(2) with openat(2); additional constructor. 2020-05-20 20:40:48 -07:00
Jason Volk
82485b9aa9 ircd::fs: Minor cleanup. 2020-05-20 18:28:42 -07:00
Jason Volk
0c1e2be81a ircd::spirit: Add substring_view; additional imports. 2020-05-20 17:16:23 -07:00
Jason Volk
f2bdcd7859 ircd::spirit: Expand boost::fusion header selection. 2020-05-19 16:54:10 -07:00
Jason Volk
9213d31f1d ircd::ctx: Inline interruptible(ctx, ...) manipulators. 2020-05-19 15:55:18 -07:00
Jason Volk
3c96120e72 ircd::ctx: Add some noexcept; minor comment justification. 2020-05-18 19:57:54 -07:00
Jason Volk
00fe4baa2a ircd::ctx: Add direct flags reference accessor to interface. 2020-05-18 19:57:54 -07:00
Jason Volk
215a0148b4 ircd:Ⓜ️🪝:site: Add interrupt masking feature. 2020-05-18 19:02:49 -07:00
Jason Volk
ce3a57bfce ircd::ctx::uninterruptible: Add defaulted runtime bool construction. 2020-05-18 18:43:17 -07:00
Jason Volk
648d6e42b4 ircd::json: Inline vector::const_iterator related. 2020-05-18 18:12:34 -07:00
Jason Volk
8b3cc178ae ircd::spirit: Import qi::seek, qi::subrule; minor reorg. 2020-05-13 04:15:10 -07:00
Jason Volk
b91c768c57 ircd:Ⓜ️:vm::eval: Remove sequence_shared state. 2020-05-12 22:27:53 -07:00
Jason Volk
987a3eeb6b ircd:Ⓜ️:vm::eval: Add pointer to parent eval; related utils.
ircd:Ⓜ️:vm::eval: Add pointer to child evals; maintain stack.
2020-05-12 22:27:53 -07:00
Jason Volk
13003986bc ircd:Ⓜ️:vm::eval: Minor static interface reorg. 2020-05-12 22:27:53 -07:00
Jason Volk
3bd3173db0 ircd:Ⓜ️:vm: Replace eval hook::site member with entered hook ptr; add id to console cmd. 2020-05-12 22:27:53 -07:00
Jason Volk
adde714df4 ircd:Ⓜ️🪝 Add callsite overloads which maintain pointer to current hfn. 2020-05-12 19:21:58 -07:00
Jason Volk
38a12ec0f7 ircd:Ⓜ️🪝 Add integer for easier ident; improve log msgs; console cmd. 2020-05-12 19:21:58 -07:00
Jason Volk
a247334744 ircd:Ⓜ️🪝 Minor interface reorg. 2020-05-12 19:21:58 -07:00
Jason Volk
23b7dc62d6 ircd:Ⓜ️🪝 Add documenting comments on namespace, some primary structures. 2020-05-12 19:21:58 -07:00
Jason Volk
46cea198a2 ircd:Ⓜ️:vm: Remove explicit assignments in phase enumeration. 2020-05-12 19:21:58 -07:00
Jason Volk
b764e75692 ircd:Ⓜ️:vm: Additional fetch phases; split fetch hook sites. 2020-05-11 21:14:25 -07:00
Jason Volk
0fd5570c14 ircd:Ⓜ️:vm: Add enumeration for evaluation phases. 2020-05-11 21:14:25 -07:00
Jason Volk
a1708a687e ircd:Ⓜ️:vm: Rename eval.phase to eval.phase_hook. 2020-05-11 19:25:07 -07:00
Jason Volk
db4e0af8a9 ircd::tokens: Modernize all remaining interface delims to string_view. 2020-05-11 16:31:48 -07:00
Jason Volk
aae7f7e545 ircd::allocator::je: Add runtime query for linked library at initialization. 2020-05-10 18:53:45 -07:00
Jason Volk
b0776fd0f8 ircd:Ⓜ️:homeserver: Preliminary bootstrap from event vector. 2020-05-10 03:52:28 -07:00
Jason Volk
554478da49 ircd:Ⓜ️:homeserver: Consolidate/simplify ctor/dtor for now. 2020-05-10 03:02:20 -07:00
Jason Volk
0bd1d03bbc ircd:Ⓜ️:homeserver: Unload any loaded modules for ctor error. 2020-05-09 19:56:20 -07:00
Jason Volk
befe43f45a ircd:Ⓜ️:acquire: Add options to toggle operations. 2020-05-09 19:01:25 -07:00
Jason Volk
8c15247efc ircd::fs: Add options to fadvise() on fd open(). 2020-05-09 18:42:05 -07:00
Jason Volk
32192bf439 ircd::prof::psi: Additional state relative to last refresh. 2020-05-09 17:28:34 -07:00
Jason Volk
19f4917d9f ircd::prof::psi: Add threshold triggering mechanism to interface. 2020-05-09 17:28:34 -07:00
Jason Volk
05e384d315 ircd::prof::psi: Add interface to poll for PSI linux>=5.2. (#144) 2020-05-09 17:28:34 -07:00
Jason Volk
a0476b8a9c ircd::fs: Add a select()'ish multi-fd yielding device. 2020-05-09 17:28:34 -07:00
Jason Volk
47800ba094 ircd::allocator: Add interface to fetch some resource limits. 2020-05-08 00:44:13 -07:00
Jason Volk
52831893da ircd::util: Add next_powerof2(u64) constexpr. 2020-05-07 21:31:02 -07:00
Jason Volk
aaa5e785aa ircd::fs: Implement synchronous parallel-read interface. 2020-05-07 00:28:27 -07:00
Jason Volk
f34cc52043 ircd::util: Allow variable increment for scope_count. 2020-05-06 17:30:12 -07:00
Jason Volk
b448156da4 ircd::db: Interface to get the charge value of cache entry. 2020-05-05 19:58:37 -07:00
Jason Volk
36a0394184 ircd::db::database: Add custom allocator stub; apply per-cache allocators. 2020-05-05 19:58:37 -07:00
Jason Volk
63e0543175 ircd::http: Use unsigned 32bit type for chunk size. 2020-05-05 17:32:41 -07:00
Jason Volk
b3dbf0cd01 ircd::ctx: Start an interpositionable posix thread interface. 2020-05-04 16:09:39 -07:00
Jason Volk
18f215d3f0 ircd: Move main_thread assertion related to ctx; adjust condition. 2020-05-04 16:09:39 -07:00
Jason Volk
77dc612735 ircd::ctx: Various assertions for current context. 2020-05-04 13:15:45 -07:00
Jason Volk
a776565ce0 ircd::ctx: Fixes and assertions for shared_mutex upgrade lockable semantics. 2020-05-04 13:15:45 -07:00
Jason Volk
926795f01a ircd::ctx: Use context pointer for mutex/shared_mutex acquisition state. 2020-05-04 13:15:45 -07:00
Jason Volk
d72124f7c6 ircd::ctx: Bring condition_variable up to parity with ctx::dock. 2020-05-04 13:15:45 -07:00
Jason Volk
51cb09c31a ircd::mods::ldso: Add strtab lookup convenience. 2020-05-02 23:57:53 -07:00
Jason Volk
747bc99987 ircd::mods::ldso: Add util for base addr from link map. 2020-05-02 23:57:53 -07:00
Jason Volk
6f3e051563 ircd::mods::ldso: Add wrapper for dlinfo(3). 2020-05-02 23:57:53 -07:00
Jason Volk
52ad7a29ad ircd::backtrace: Add array template construction overload. 2020-05-02 23:57:53 -07:00
Jason Volk
9962d80c6e ircd::backtrace: Increase constness. 2020-05-02 23:57:53 -07:00
Jason Volk
f9015b8336 ircd::ctx::dock: Minor reorg. 2020-05-02 23:57:53 -07:00
Jason Volk
ff96eb803d ircd:Ⓜ️:user: Move is_active() to adl'ed active(). 2020-05-02 23:57:53 -07:00
Jason Volk
4e9664ebce ircd:Ⓜ️:room::auth: Allow an incorrect fifth event; warning remains. 2020-05-01 10:10:17 -07:00
Jason Volk
84347857c6 ircd:Ⓜ️:room::power: Use conf items to seed all default values. 2020-05-01 10:10:17 -07:00
Jason Volk
6bc0d48a38 ircd:Ⓜ️:pretty: Move part of console event cmd into lib util. 2020-05-01 10:10:16 -07:00
Jason Volk
78ea123004 ircd:Ⓜ️:room::power: Consistent integer level and string level conversions. 2020-04-30 18:52:43 -07:00
Jason Volk
cfb9362744 ircd:Ⓜ️:user: Add is_oper() to interface; minor cleanup. 2020-04-30 01:06:01 -07:00
Jason Volk
5fae1f36cf ircd::buffer: Use buffer::empty() rather than buffer::null() for bool operators. 2020-04-29 01:58:29 -07:00
Jason Volk
398fb026b0 ircd::info: Additional execution specific; reorg hardware/system related.
ircd::info: Sample hardware cache characteristics.
2020-04-28 20:18:48 -07:00
Jason Volk
c4149eba47 ircd:Ⓜ️:sync: Inline apropos() suite. 2020-04-28 03:07:13 -07:00
Jason Volk
9c61677b0b ircd:Ⓜ️:room::auth: Split out event::idx fetch tools; minor reorg. 2020-04-27 22:37:36 -07:00
Jason Volk
cefee45147 ircd: Add portable __is_identifier(); add convenience typedef for long long. 2020-04-27 14:03:06 -07:00
Jason Volk
c027a567ce ircd:Ⓜ️:sync: Move args structure to central lib; eliminate local module header. 2020-04-27 00:16:58 -07:00
Jason Volk
9bbc5834af ircd: Add missing globular_imatch. 2020-04-26 17:02:21 -07:00
Jason Volk
e87a26c142 ircd:Ⓜ️:fed: Use single codepath for request target; use canonize rewrite. 2020-04-26 16:19:37 -07:00
Jason Volk
267e978247 ircd:Ⓜ️:fed: Add indirection interface. 2020-04-25 21:13:57 -07:00
Jason Volk
4960912848 ircd::server: Additional convenience query for linked peers. 2020-04-25 19:30:21 -07:00
Jason Volk
f9df9bfbda ircd:Ⓜ️:typing: Move remaining assets into namespace; minor reorg. 2020-04-25 17:34:02 -07:00
Jason Volk
637b6ecede ircd::net::dns::cache: Move cache waiter calling out of module. 2020-04-25 00:28:39 -07:00
Jason Volk
e08fc4b99f ircd::buffer: non-call copy and move. 2020-04-25 00:28:39 -07:00
Jason Volk
11f2eff4d9 Add -defaults program option to restore from broken configurations. 2020-04-24 21:58:57 -07:00
Jason Volk
6bbc78116d ircd: Add portable macro for __has_builtin(). 2020-04-24 21:58:57 -07:00
Jason Volk
0b2152a136 ircd:Ⓜ️ Split init::backfill into acquire interface. 2020-04-24 15:24:37 -07:00
Jason Volk
32230ed2d4 ircd::ctx: Profile peak stack usage at slice leave event. 2020-04-23 12:41:39 -07:00
Jason Volk
5a27958fa0 ircd::ctx: Unify access to ctx::stack, expose structure; remove cruft. 2020-04-23 12:41:38 -07:00
Jason Volk
ba06958d69 ircd:Ⓜ️ Start a netburst interface; move cache_warm_origin; invoke from resource. 2020-04-23 05:16:48 -07:00
Jason Volk
32d624e3e9 ircd::util: Add overload for what() on std::exception value-type. 2020-04-23 04:19:53 -07:00
Jason Volk
87f873ad45 ircd:Ⓜ️:init::backfill: Split gossip routine into separate interface. 2020-04-23 04:19:53 -07:00
Jason Volk
2e2c85902e ircd:Ⓜ️ Add additional membership multi-test convenience tool. 2020-04-23 01:42:41 -07:00
Jason Volk
1882f7b507 ircd:Ⓜ️:node: Start preliminary mitsein interface. 2020-04-23 01:21:55 -07:00
Jason Volk
c2ba27ace7 ircd::http: Add X-Forwarded-For support to request header. 2020-04-22 23:39:56 -07:00
Jason Volk
cbce88e34e ircd::json::tuple: Fix type=NUMBER serial=true tuple assignment. 2020-04-22 05:34:12 -07:00
Jason Volk
0c1a54864c ircd:Ⓜ️:dbs::init: Copy string to save original dbpath. 2020-04-22 02:09:32 -07:00
Jason Volk
e57ae30791 ircd::logger: Remove noreturn attribute. 2020-04-22 01:51:55 -07:00
Jason Volk
5ecc9f99d8 ircd::server: Add avail() convenience to interface. 2020-04-21 23:05:28 -07:00
Jason Volk
83e1bcd17b ircd::vector_view: Add constructor for reasonable implicit const conversion of value_type. 2020-04-21 23:05:28 -07:00
Jason Volk
acbbb08d3c ircd::http: Add convenience query string array tool w/ decode. 2020-04-21 23:05:28 -07:00
Jason Volk
17d73eeae7 ircd:Ⓜ️:node: Cleanup/reorg node interface related. 2020-04-21 19:22:07 -07:00
Jason Volk
ebeb60a84a ircd:Ⓜ️:keys: Consistent boolean return values from interface. 2020-04-21 19:22:06 -07:00
Jason Volk
538a2dab5c ircd:Ⓜ️:room::bootstrap: Adjust interface allowing for multiple remote server arguments. 2020-04-21 19:22:06 -07:00
Jason Volk
b979a20457 ircd:Ⓜ️:room::bootstrap: Move util to bootstrap::required(). 2020-04-21 00:12:04 -07:00
Jason Volk
69f4c2b224 ircd:Ⓜ️:resource: Obtain version information for request if possible. 2020-04-19 20:20:43 -07:00
Jason Volk
f86a938a8a ircd::magic: Add conf item for magic file path; default to $MAGIC from environment. #138 2020-04-19 18:29:08 -07:00
Jason Volk
a063b4a681 ircd::fs::base: Make all items have persist=false behavior. 2020-04-19 17:53:22 -07:00
Jason Volk
764a723704 ircd: Rename formerly conflicting header files. 2020-04-19 16:45:30 -07:00
Jason Volk
8fda624be2 ircd:Ⓜ️:room::power: Add grant/revoke suite. 2020-04-19 06:13:23 -07:00
Jason Volk
2bf38286ba ircd::fs: Callsite changes for fs::base reorg. 2020-04-19 06:13:23 -07:00
Jason Volk
2c7af26bdc ircd:Ⓜ️:room::power: Add collection iteration. 2020-04-19 06:13:23 -07:00
Jason Volk
0b41a1e78d ircd:Ⓜ️:room::power: Simplify iteration interface. 2020-04-19 06:13:23 -07:00
Jason Volk
a6cf4c3c91 ircd::fs: Refactor base paths into conf::items. 2020-04-19 06:13:23 -07:00
Jason Volk
2d14956c64 ircd::fs: Improve path_cstr() internal util related. 2020-04-18 19:06:13 -07:00