refactor(rootfs): reorganize file structure and remove unnecessary .gitkeep files

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-24 15:33:07 +00:00
parent 8f88d9028e
commit d251d9d03f
55 changed files with 622 additions and 596 deletions

View File

@ -33,7 +33,7 @@ export struct passwd *getpwent(void)
if (pwfile == NULL)
{
pwfile = fopen("/etc/passwd", "r");
pwfile = fopen("/sys/cfg/passwd", "r"); /* FIXME: this path should be OS dependent */
if (pwfile == NULL)
return NULL;
}

View File

@ -209,7 +209,7 @@ export int gethostname(char *name, size_t namelen)
return 0;
}
int fd = open("/etc/hostname", O_RDONLY);
int fd = open("/sys/cfg/hostname", O_RDONLY); /* FIXME: this path should be OS dependent */
if (fd == -1)
return -1;