ref: 221b65150f1b9c15551b6d7dd011ce1d882f7ca7
dir: /main.c/
#include <u.h> #include <libc.h> #include <bio.h> #include <thread.h> #include "neoventi.h" void parseargs(int argc, char **argv) { if(argc != 1) sysfatal("TODO: arg parsing"); } static void init(void) { initarenas(); initindex(); } static void validate(void) { fprint(2, "TODO: validate initial state"); } void threadmain(int argc, char **argv) { parseargs(argc, argv); print("Initializing neoventi build 5... "); init(); validate(); print("initialized, launching server.\n"); serve("tcp!127.1!14011"); }