cleanup: namespace Montauk (capital M) => montauk::abi

This commit is contained in:
2026-06-16 09:09:16 +02:00
parent b091af7653
commit e3dc1e881d
165 changed files with 758 additions and 758 deletions
+7 -7
View File
@@ -223,7 +223,7 @@ static int parse_request_path(const char* req, int reqLen, char* pathOut, int pa
static void log_request(const char* method, const char* path, int status, int bodyLen) {
// Get timestamp
Montauk::DateTime dt;
montauk::abi::DateTime dt;
montauk::gettime(&dt);
char msg[256];
@@ -236,7 +236,7 @@ static void log_request(const char* method, const char* path, int status, int bo
// ---- Page generators ----
static int generate_index_page(char* buf, int bufSize) {
Montauk::SysInfo info;
montauk::abi::SysInfo info;
montauk::get_info(&info);
uint64_t ms = montauk::get_milliseconds();
@@ -388,13 +388,13 @@ static void handle_client(int clientFd) {
} else {
uint32_t signals = montauk::wait_handle(
clientFd,
Montauk::IPC_SIGNAL_READABLE | Montauk::IPC_SIGNAL_PEER_CLOSED,
montauk::abi::IPC_SIGNAL_READABLE | montauk::abi::IPC_SIGNAL_PEER_CLOSED,
20
);
if (signals == 0) {
idleCount++;
if (idleCount > 500) break;
} else if (signals & Montauk::IPC_SIGNAL_PEER_CLOSED) {
} else if (signals & montauk::abi::IPC_SIGNAL_PEER_CLOSED) {
break;
}
}
@@ -545,7 +545,7 @@ extern "C" void _start() {
}
// Create server socket
int listenFd = montauk::socket(Montauk::SOCK_TCP);
int listenFd = montauk::socket(montauk::abi::SOCK_TCP);
if (listenFd < 0) {
montauk::print("Error: failed to create socket\n");
montauk::exit(1);
@@ -578,7 +578,7 @@ extern "C" void _start() {
while (running) {
// Check for Ctrl+Q before blocking on accept
while (montauk::is_key_available()) {
Montauk::KeyEvent ev;
montauk::abi::KeyEvent ev;
montauk::getkey(&ev);
if (ev.pressed && ev.ctrl && ev.ascii == 'q') {
running = false;
@@ -599,7 +599,7 @@ extern "C" void _start() {
// After serving, check for Ctrl+Q
while (montauk::is_key_available()) {
Montauk::KeyEvent ev;
montauk::abi::KeyEvent ev;
montauk::getkey(&ev);
if (ev.pressed && ev.ctrl && ev.ascii == 'q') {
running = false;