Lines Matching refs:fullpath
154 char *fullpath = NULL; in chdir() local
173 ret = vfs_normalize_path((const char *)NULL, path, &fullpath); in chdir()
178 fullpath_bak = fullpath; in chdir()
179 ret = stat(fullpath, &statBuff); in chdir()
198 ret = SetWorkDir(fullpath, strlen(fullpath)); in chdir()
444 char *fullpath = NULL; in ls_get_fullpath() local
449 fullpath = (char *)malloc(strlen(path) + strlen(pdirent->d_name) + 2); in ls_get_fullpath()
450 if (fullpath == NULL) { in ls_get_fullpath()
455 ret = snprintf_s(fullpath, strlen(path) + strlen(pdirent->d_name) + 2, in ls_get_fullpath()
458 free(fullpath); in ls_get_fullpath()
464 fullpath = (char *)malloc(strlen(pdirent->d_name) + 2); in ls_get_fullpath()
465 if (fullpath == NULL) { in ls_get_fullpath()
470 ret = snprintf_s(fullpath, strlen(pdirent->d_name) + 2, strlen(pdirent->d_name) + 1, in ls_get_fullpath()
473 free(fullpath); in ls_get_fullpath()
478 return fullpath; in ls_get_fullpath()
580 char *fullpath = NULL; in LsDir() local
601 fullpath = ls_get_fullpath(path, pdirent); in LsDir()
602 if (fullpath == NULL) { in LsDir()
607 fullpath_bak = fullpath; in LsDir()
608 if (stat64(fullpath, &stat64Info) == 0) { in LsDir()
610 readlink(fullpath, linkName, NAME_MAX); in LsDir()
613 } else if (stat(fullpath, &statInfo) == 0) { in LsDir()
615 readlink(fullpath, linkName, NAME_MAX); in LsDir()