Add sys_exec () and libprocess wrapper, fix ramdisk tar parsing
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m26s

This commit is contained in:
2026-02-14 21:50:09 +01:00
parent 690e09339e
commit b0b69f3e9e
27 changed files with 112 additions and 39 deletions

View File

@@ -44,3 +44,16 @@ int memcmp (const void* s1, const void* s2, size_t n) {
}
return 0;
}
int strncmp (const char* s1, const char* s2, size_t n) {
while (n && *s1 && (*s1 == *s2)) {
++s1;
++s2;
--n;
}
if (n == 0) {
return 0;
} else {
return (*(unsigned char*)s1 - *(unsigned char*)s2);
}
}

View File

@@ -8,6 +8,7 @@ size_t memcpy (void* dst, const void* src, size_t n);
void strncpy (char* dst, const char* src, size_t n);
size_t strlen (const char* str);
int memcmp (const void* s1, const void* s2, size_t n);
int strncmp (const char* s1, const char* s2, size_t n);
#define strlen_null(x) (strlen ((x)) + 1)