CLI apps transfer to Userspace

This commit is contained in:
boreddevnl
2026-02-27 22:13:53 +01:00
parent 8c6d751254
commit 304c2e1383
97 changed files with 1669 additions and 2398 deletions

18
src/kernel/userland/rm.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdlib.h>
#include <syscall.h>
int main(int argc, char **argv) {
if (argc < 2) {
printf("Usage: rm <path>\n");
return 1;
}
// Simple rm (no recursive support yet for simplicity, but can be added)
if (sys_delete(argv[1]) == 0) {
printf("Deleted: %s\n", argv[1]);
} else {
printf("Error: Cannot delete %s\n", argv[1]);
return 1;
}
return 0;
}