Lines Matching refs:dirent
47 #include <dirent.h>
74 DIR *dirent = NULL;
94 dirent = opendir(fullpath);
95 if (dirent == NULL) {
103 (VOID)closedir(dirent);
120 STATIC CHAR *OsLsGetFullpath(const CHAR *path, struct dirent *pdirent)
159 struct dirent *pdirent = NULL;
523 struct dirent *dirent = NULL;
542 dirent = readdir(d);
543 if (dirent == NULL) {
546 if (strcmp(dirent->d_name, "..") && strcmp(dirent->d_name, ".")) {
547 size_t fullPathBufSize = strlen(pathname) + strlen(dirent->d_name) + SEPARATOR_EOF_LEN;
554 ret = snprintf_s(fullpath, fullPathBufSize, fullPathBufSize - 1, "%s/%s", pathname, dirent->d_name);
710 struct dirent *dirent = NULL;
743 dirent = readdir(d);
744 if (dirent == NULL) {
748 if (!strcmp(dirent->d_name, ".") || !strcmp(dirent->d_name, "..")) {
757 ret = OsWildcardMatch(dirent->d_name, s);
763 ret = strcat_s(src, sizeof(src), dirent->d_name);