kernel: implement initcalls and a testing system

This commit is contained in:
2023-02-26 10:05:39 +00:00
parent bc1bc9fec5
commit d41ea0cd52
16 changed files with 314 additions and 40 deletions

View File

@@ -1,14 +1,10 @@
#include <socks/libc/string.h>
size_t strlen(const char *str) {
if (!str) {
return 0;
}
size_t res = 0;
while (str[res]) {
res++;
}
return res;
size_t res = 0;
while (str[res]) {
res++;
}
return res;
}