修复appfs对vi的支持

This commit is contained in:
zhangzheng
2025-03-09 18:18:46 +08:00
parent cff255baf2
commit a32d03667a
19 changed files with 1010 additions and 240 deletions

View File

@@ -48,7 +48,7 @@ int ls(int argc, char *agrv[])
while ((ptr = readdir(dir)) != NULL)
{
struct stat st = {0};
strcat(path, "/");
// strcat(path, "/");
strcat(path, ptr->d_name);
ret = stat(path, &st);
// if (ret >= 0)
@@ -238,3 +238,10 @@ int shell_sys_info(int argc, char *argv[])
return 0;
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_MAIN), sys, shell_sys_info, sys command);
int shell_exit(int argc, char *argv[])
{
exit(0);
return 0;
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_MAIN), exit, exit, exit command);