Lines Matching refs:statInfo
518 static void PrintFileInfo(const struct stat *statInfo, const char *name, const char *linkName)
526 mode = statInfo->st_mode >> (uint)(USER_MODE_SHIFT - i * UGO_NUMS);
532 if (S_ISDIR(statInfo->st_mode)) {
534 } else if (S_ISLNK(statInfo->st_mode)) {
540 if (S_ISLNK(statInfo->st_mode)) {
542 str[0], str[1], str[UGO_NUMS - 1], statInfo->st_size,
543 statInfo->st_uid, statInfo->st_gid, name, linkName);
546 str[0], str[1], str[UGO_NUMS - 1], statInfo->st_size,
547 statInfo->st_uid, statInfo->st_gid, name);
554 struct stat statInfo;
562 } else if (stat(path, &statInfo) == 0) {
563 if (S_ISLNK(statInfo.st_mode)) {
566 PrintFileInfo(&statInfo, path, (const char *)linkName);
576 struct stat statInfo = { 0 };
598 (void)memset_s(&statInfo, sizeof(struct stat), 0, sizeof(struct stat));
613 } else if (stat(fullpath, &statInfo) == 0) {
614 if (S_ISLNK(statInfo.st_mode)) {
617 PrintFileInfo(&statInfo, pdirent->d_name, linkName);
630 struct stat statInfo = { 0 };
658 ret = stat(path, &statInfo);
665 if (statInfo.st_mode & S_IFDIR) { /* list all directory and file */