Commit Graph

1247 Commits

Author SHA1 Message Date
8a6183e470 fix: createDirRecursively won't create last level directory if dir is not ended with '/' 2024-03-14 23:39:17 +08:00
d7e29edd02 fix: force clear stream state introduced by rdbuf 2024-03-13 19:05:30 +08:00
d573c588b0 feat: add memory related stats 2024-03-13 17:58:33 +08:00
25ba8d7076 feat: add dump_stats support 2024-03-13 16:35:47 +08:00
a6ec85c1a0 chore: ignore .idea 2024-03-13 15:54:14 +08:00
cf5d6387df fix: google::protobuf::SetLogHandler is no longer available since protobuf 22 2024-03-13 15:52:11 +08:00
Wiktor Garbacz
a00a0efabc Update kafel 2024-02-14 13:00:54 +01:00
Robert Swiecki
b740dcf57a make indent 2023-12-02 23:24:16 +01:00
happyCoder92
d68db32b06
Fix deleted brace 2023-11-28 14:16:17 +01:00
happyCoder92
23a1b85087
Make util::gerlimit compatible with MSAN 2023-11-28 14:11:08 +01:00
robertswiecki
3d9a5b2307
Merge pull request #227 from philwo/philwo-1
Fix typo (SIKGILL -> SIGKILL)
2023-11-19 16:59:56 +01:00
Philipp Wollermann
727caf9d4a
Fix typo (SIKGILL -> SIGKILL). 2023-11-19 21:39:23 +09:00
Robert Swiecki
3ff69c0f56 config: use proper namespace for SetLogHandler 2023-10-25 13:41:31 +02:00
Robert Swiecki
78110d184e net: initialize some structs with {} 2023-10-22 23:19:37 +02:00
Robert Swiecki
61250ea20b pid: more logging 2023-10-22 22:39:30 +02:00
Robert Swiecki
e67e8dc2f1 sandbox: better logging 2023-10-21 23:36:00 +02:00
Robert Swiecki
84f6d75d26 convert strcmp() to util::StrEq 2023-10-21 18:37:57 +02:00
Robert Swiecki
98ec95ca85 Use nullptr where appropriate 2023-10-20 18:01:36 +02:00
Robert Swiecki
94b022fece util: implement rLimName() to use in cmdline/config 2023-10-10 01:23:52 +02:00
Robert Swiecki
e7c7583aaa .clangd: Add -Ikafel/include for kafel 2023-10-05 15:39:34 +02:00
Wiktor Garbacz
0c9f755764 update kafel 2023-10-04 15:02:38 +02:00
Robert Swiecki
079d70dda4 .cland: add include to libnl3 2023-10-04 08:34:57 +02:00
Robert Swiecki
3d0bbf6927 cgroups2: make a function declaration-less by moving it earlier 2023-10-04 08:28:18 +02:00
Robert Swiecki
c0e13eebca .clangd: remove unnecessary empty line 2023-10-03 23:22:49 +02:00
Robert Swiecki
ca29f292b6 mnt: reformat messages for PLOG 2023-10-03 23:16:55 +02:00
Robert Swiecki
d99e530134 cmdline: log to stdout if -h or --help was used 2023-10-02 21:12:08 +02:00
Robert Swiecki
50a741cf65 config: adjust identifiers, so they don't repeat config::config.. in method names 2023-10-01 12:57:40 +02:00
Robert Swiecki
fd9a7029d4 .clangd: for nvim/clangd 2023-10-01 12:51:04 +02:00
Robert Swiecki
c1515459d7 contain: fail of fcntl(F_GETFD) fails for a fd with something else then EBADFD 2023-10-01 00:32:29 +02:00
Robert Swiecki
f388cad3e0 contain: use prlimit64 instead of setrlimit64 which seems to be glibc-specific, so it compiles with musl too 2023-09-29 18:11:40 +02:00
Robert Swiecki
fbeac46568 .clang-format: proto specific section 2023-09-22 17:02:01 +02:00
Robert Swiecki
db7f0d0a23 .clang-format: use formatting based on .clang-format 2023-09-22 16:52:19 +02:00
Robert Swiecki
29f0a5b985 Makefile: indent .proto with the same cmd as *.cc *.h 2023-09-22 16:46:52 +02:00
Robert Swiecki
275de833ba indent: use 'AlignEscapedNewlines: Right' to put backslashed in macros at ends of lines 2023-09-22 16:43:40 +02:00
Robert Swiecki
d1b74c2238 util: put QC() in () 2023-09-22 16:40:56 +02:00
Robert Swiecki
d7cf1a9c0d make indent 2023-09-21 08:31:47 +02:00
Robert Swiecki
557633c1de Makefile: move to c++17 to use [[maybe_unused]] and remove DEFER (actually not used) from macros.h 2023-09-21 08:29:36 +02:00
Robert Swiecki
439606be70 Makefile/indent: add AlwaysBreakBeforeMultilineStrings:false 2023-09-19 20:31:57 +02:00
Robert Swiecki
2e27593482 make indent: clang-format-18 2023-09-19 08:45:42 +02:00
Robert Swiecki
b32146cd78 Makefile: simplifications around config.pb.* 2023-09-18 21:29:30 +02:00
Robert Swiecki
3af3eac80f caps: define new CAP_* unconditionally 2023-09-17 10:48:17 +02:00
Robert Swiecki
bc4e7fdd52 cmdline: constify structs 2023-09-15 15:38:37 +02:00
Robert Swiecki
6c5c13017d util/signal: sort signals according to asm/signal.h 2023-09-15 08:47:16 +02:00
Robert Swiecki
47d0e8e6eb pid: clear sigaction before use 2023-09-06 16:50:26 +02:00
Robert Swiecki
d92957c95a util: missing SIGPWR 2023-08-29 09:09:51 +02:00
Robert Swiecki
8308b91c04 subproc: mark cloneFunc as [[noreturn]] 2023-08-18 13:34:09 +02:00
Robert Swiecki
611ef1c435 subproc: support CLONE_CLEAR_SIGHAND 2023-08-18 13:26:01 +02:00
Robert Swiecki
5e494a6a78 subproc: display additional clone3 flags 2023-08-09 18:19:37 +02:00
Robert Swiecki
e507a64e09 configs/: formatting 2023-06-25 12:36:47 +02:00
Robert Swiecki
8804792862 configs/telegram: telegram is 64 bit only 2023-06-25 12:35:25 +02:00