Searched refs:statInfo (Results 1 - 2 of 2) sorted by relevance
/kernel/liteos_a/fs/vfs/operation/ |
H A D | vfs_other.c | 518 static void PrintFileInfo(const struct stat *statInfo, const char *name, const char *linkName) in PrintFileInfo() argument 526 mode = statInfo->st_mode >> (uint)(USER_MODE_SHIFT - i * UGO_NUMS); in PrintFileInfo() 532 if (S_ISDIR(statInfo->st_mode)) { in PrintFileInfo() 534 } else if (S_ISLNK(statInfo->st_mode)) { in PrintFileInfo() 540 if (S_ISLNK(statInfo->st_mode)) { in PrintFileInfo() 542 str[0], str[1], str[UGO_NUMS - 1], statInfo->st_size, in PrintFileInfo() 543 statInfo->st_uid, statInfo->st_gid, name, linkName); in PrintFileInfo() 546 str[0], str[1], str[UGO_NUMS - 1], statInfo->st_size, in PrintFileInfo() 547 statInfo in PrintFileInfo() 554 struct stat statInfo; LsFile() local 576 struct stat statInfo = { 0 }; LsDir() local 630 struct stat statInfo = { 0 }; ls() local [all...] |
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | vfs_shellcmd.c | 164 struct stat statInfo = { 0 }; in OsLs() local 190 (VOID)memset_s(&statInfo, sizeof(struct stat), 0, sizeof(struct stat)); in OsLs() 199 if (stat(fullpath, &statInfo) == 0) { in OsLs() 201 if (S_ISDIR(statInfo.st_mode)) { in OsLs() 204 PRINTK(" %-25lu\n", statInfo.st_size); in OsLs() 524 struct stat statInfo; in OsShellCmdDoRmdir() local 529 (VOID)memset_s(&statInfo, sizeof(statInfo), 0, sizeof(struct stat)); in OsShellCmdDoRmdir() 530 if (stat(pathname, &statInfo) != 0) { in OsShellCmdDoRmdir() 534 if (S_ISREG(statInfo in OsShellCmdDoRmdir() 632 struct stat statInfo = {0}; OsRmFileOnly() local [all...] |
Completed in 3 milliseconds