feat: multi-user system, bug fixes, security & performance fixes, and more

This commit is contained in:
2026-03-14 13:28:46 +01:00
parent 576ad34f95
commit 261b536041
389 changed files with 231853 additions and 591 deletions
+23
View File
@@ -0,0 +1,23 @@
/*
* main.cpp
* whoami - Print the current username
* Copyright (c) 2026 Daniel Hammer
*/
#include <montauk/syscall.h>
#include <montauk/string.h>
#include <montauk/heap.h>
#include <montauk/config.h>
extern "C" void _start() {
auto doc = montauk::config::load("session");
const char* name = doc.get_string("session.username", "");
if (name[0]) {
montauk::print(name);
montauk::putchar('\n');
} else {
montauk::print("unknown\n");
}
doc.destroy();
montauk::exit(0);
}