modified some syscall code in rlibc, fs stuff

This commit is contained in:
2026-06-29 17:00:07 -05:00
parent 97357f3170
commit 432d160b7a
285 changed files with 4223 additions and 3957 deletions

12
kernel/vfs.c Normal file
View File

@@ -0,0 +1,12 @@
#include "vfs.h"
#include "lib/memory.h"
#include <string.h>
vfs_node_t* root = NULL;
void vfs_create_root() {
root = kalloc(sizeof(vfs_node_t));
memset((uint8_t*)root->name, 0, 128);
memcpy("root", root->name, 4);
root->flags |= VFS_DIRECTORY;
}