Lines Matching refs:dp
64 struct dir_list *dp; in add_to_dirlist() local
66 dp = malloc(sizeof(struct dir_list)); in add_to_dirlist()
67 if (!dp) in add_to_dirlist()
69 dp->name = blkid_strdup(name); in add_to_dirlist()
70 if (!dp->name) { in add_to_dirlist()
71 free(dp); in add_to_dirlist()
74 dp->next = *list; in add_to_dirlist()
75 *list = dp; in add_to_dirlist()
83 struct dir_list *dp, *next; in free_dirlist() local
85 for (dp = *list; dp; dp = next) { in free_dirlist()
86 next = dp->next; in free_dirlist()
87 free(dp->name); in free_dirlist()
88 free(dp); in free_dirlist()
97 struct dirent *dp; in blkid__scan_dir() local
105 while ((dp = readdir(dir)) != 0) { in blkid__scan_dir()
106 if (dirlen + strlen(dp->d_name) >= sizeof(path)) in blkid__scan_dir()
109 if (dp->d_name[0] == '.' && in blkid__scan_dir()
110 ((dp->d_name[1] == 0) || in blkid__scan_dir()
111 ((dp->d_name[1] == '.') && (dp->d_name[2] == 0)))) in blkid__scan_dir()
114 sprintf(path, "%s/%s", dirname, dp->d_name); in blkid__scan_dir()