#include #include #include #include /* we use something similar to the Linux kernel in terms of a VFS system */ struct fdtable { struct file* fds[MAX_FDS]; }; #if 0 struct fdtable* vfs_init_kernel_fdtable(void) { struct fdtable* ft = malloc(sizeof(struct fdtable)); struct file* _stdout = malloc(sizeof(struct file)); struct file* _stdin = malloc(sizeof(struct file)); if (!ft || !_stdin || !_stdout) { return NULL; } _stdout->f_inode = NULL; _stdout->f_offset = 0; _stdout->f_refcount = 1; _stdout->f_ops = { .read = NULL, .write = vfs_handle_stdout }; return NULL; } #endif int init_vfs(int argc, char** argv) { (void) argc; (void) argv; return 0; } /* This is being written as a test. This has no affect on aaand my CPU is at 87 degrees Celsius and /usr/bin/gnome-shell is at 115% CPU utilization. Just by writing that. wow. and now my CPU fan is going nuts. --update: now it works. I had to go back to nouveau instead of the proprietary nVidia®©™ drivers.. --update: I wrote what months ago. now is 3/12/2026, I don't even remember what was going on well. wow. */