feat: add cwd tracking to kernel, remove shell hack, update system utilities to use getcwd, fix tcc libc stub, fix nonexistent directory issue

This commit is contained in:
2026-03-25 15:45:22 +01:00
parent 9c9a0a9712
commit ea087769f5
22 changed files with 389 additions and 265 deletions
+2 -13
View File
@@ -72,19 +72,8 @@ static inline int gettimeofday(struct timeval *tv, struct timezone *tz) {
return 0;
}
/* ====================================================================
getcwd stub (for debug info)
==================================================================== */
static inline char *getcwd(char *buf, size_t size) {
if (buf && size > 4) {
buf[0] = '0';
buf[1] = ':';
buf[2] = '/';
buf[3] = '\0';
}
return buf;
}
/* getcwd is provided by libc now */
char *getcwd(char *buf, size_t size);
/* ====================================================================
POSIX file access stubs