From 40bff7788865b519b79b1ee7eb9851914010ffb4 Mon Sep 17 00:00:00 2001 From: turret Date: Sun, 19 Nov 2023 19:13:40 -0600 Subject: misc: minor bugs and comments sprinkle a little bit of commenting throughout the codebase. hopefully i dont regret what i've written - clone: bottom of stack is passed through - print: write newline at end of message - initcall: functions return void type very basic net startup. hopefully i dont regret implementing the websocket protocol myself in a language as holy as C. --- net/net.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'net') diff --git a/net/net.c b/net/net.c index 11c66ff..4288ae4 100644 --- a/net/net.c +++ b/net/net.c @@ -1,2 +1,18 @@ +#include + +#include +#include #include +int net_subsystem(void) +{ + print(LOG_NOTICE "net: starting net subsystem"); + usleep(10000); // do net stuff + return 0; +} + +void net_initcall() +{ + start_subsystem(net_subsystem); +} +l1_initcall(net_initcall); -- cgit v1.2.3