/external/squashfs-tools/squashfs-tools/ |
D | action.c | 92 extern char *pathname(struct dir_ent *); 94 extern char *subpathname(struct dir_ent *); 880 void eval_actions(struct dir_info *root, struct dir_ent *dir_ent) in eval_actions() argument 884 int st_mode = dir_ent->inode->buf.st_mode; in eval_actions() 886 action_data.name = dir_ent->name; in eval_actions() 887 action_data.pathname = strdup(pathname(dir_ent)); in eval_actions() 888 action_data.subpath = strdup(subpathname(dir_ent)); in eval_actions() 889 action_data.buf = &dir_ent->inode->buf; in eval_actions() 890 action_data.depth = dir_ent->our_dir->depth; in eval_actions() 891 action_data.dir_ent = dir_ent; in eval_actions() [all …]
|
D | mksquashfs.c | 333 struct dir_ent *(_readdir)(struct dir_info *), int); 822 char *_pathname(struct dir_ent *dir_ent, char *pathname, int *size) in _pathname() argument 832 dir_ent->our_dir->pathname, in _pathname() 833 dir_ent->source_name ? : dir_ent->name); in _pathname() 854 char *pathname(struct dir_ent *dir_ent) in pathname() argument 859 if (dir_ent->nonstandard_pathname) in pathname() 860 return dir_ent->nonstandard_pathname; in pathname() 862 return pathname = _pathname(dir_ent, pathname, &size); in pathname() 866 char *pathname_reader(struct dir_ent *dir_ent) in pathname_reader() argument 871 if (dir_ent->nonstandard_pathname) in pathname_reader() [all …]
|
D | info.c | 47 static struct dir_ent *ent = NULL; 58 void update_info(struct dir_ent *dir_ent) in update_info() argument 60 ent = dir_ent; in update_info() 66 struct dir_ent *dir_ent = ent; in print_filename() local 68 if(dir_ent == NULL) in print_filename() 71 if(dir_ent->our_dir->subpath[0] != '\0') in print_filename() 72 INFO("%s/%s\n", dir_ent->our_dir->subpath, dir_ent->name); in print_filename() 74 INFO("/%s\n", dir_ent->name); in print_filename()
|
D | action.h | 207 void (*run_action)(struct action *, struct dir_ent *); 217 struct dir_ent *dir_ent; member 287 struct dir_ent *dir_ent; member 312 extern void *eval_frag_actions(struct dir_info *, struct dir_ent *); 315 struct dir_ent *); 316 extern void eval_actions(struct dir_info *, struct dir_ent *); 317 extern int eval_empty_actions(struct dir_info *, struct dir_ent *dir_ent); 318 extern void eval_move_actions(struct dir_info *, struct dir_ent *); 319 extern int eval_prune_actions(struct dir_info *, struct dir_ent *);
|
D | sort.c | 61 extern void write_file(squashfs_inode *inode, struct dir_ent *dir_ent, 63 extern char *pathname(struct dir_ent *dir_ent); 66 void add_priority_list(struct dir_ent *dir, int priority) in add_priority_list() 193 struct dir_ent *dir_ent = dir->list; in generate_file_priorities() local 197 for(; dir_ent; dir_ent = dir_ent->next) { in generate_file_priorities() 198 struct stat *buf = &dir_ent->inode->buf; in generate_file_priorities() 199 if(dir_ent->inode->root_entry) in generate_file_priorities() 204 add_priority_list(dir_ent, in generate_file_priorities() 205 get_priority(pathname(dir_ent), buf, in generate_file_priorities() 209 generate_file_priorities(dir_ent->dir, in generate_file_priorities()
|
D | mksquashfs.h | 42 struct dir_ent *dir_ent; member 43 struct dir_ent *list; 47 struct dir_ent { struct 54 struct dir_ent *next; argument
|
D | xattr.c | 116 extern char *pathname(struct dir_ent *); 119 extern char *subpathname(struct dir_ent *); 680 struct dir_ent *dir_ent = d; in read_xattrs() local 681 struct inode_info *inode = dir_ent->inode; in read_xattrs() 682 char *filename = pathname(dir_ent); in read_xattrs() 704 alloc_mounted_path(mount_point, subpathname(dir_ent), &mounted_path); in read_xattrs() 715 if (dir_ent->capabilities != 0) { in read_xattrs() 717 set_caps_xattr(dir_ent->capabilities, next_xattr); in read_xattrs()
|
D | unsquashfs.h | 174 struct dir_ent { struct 189 struct dir_ent *dirs; argument
|
D | info.h | 28 extern void update_info(struct dir_ent *);
|
D | sort.h | 28 struct dir_ent *dir;
|
D | xattr.h | 91 static inline int read_xattrs(void *dir_ent) in read_xattrs() argument
|
D | unsquash-1.c | 214 struct dir_ent *new_dir; in squashfs_opendir_1() 293 DIR_ENT_SIZE) * sizeof(struct dir_ent)); in squashfs_opendir_1()
|
D | unsquash-3.c | 291 struct dir_ent *new_dir; in squashfs_opendir_3() 371 DIR_ENT_SIZE) * sizeof(struct dir_ent)); in squashfs_opendir_3()
|
D | unsquash-4.c | 260 struct dir_ent *new_dir; in squashfs_opendir_4() 329 DIR_ENT_SIZE) * sizeof(struct dir_ent)); in squashfs_opendir_4()
|
/external/ltp/testcases/kernel/fs/proc/ |
D | proc01.c | 249 struct dirent *dir_ent; /* pointer to directory entries */ in readproc() local 300 for (dir_ent = (struct dirent *)readdir(dir); in readproc() 301 dir_ent != NULL; in readproc() 302 dir_ent = (struct dirent *)readdir(dir)) { in readproc() 309 if (strcmp(dir_ent->d_name, ".") && in readproc() 310 strcmp(dir_ent->d_name, "..") && in readproc() 311 strcmp(dir_ent->d_name, "kcore") && in readproc() 312 (fnmatch("[0-9]*", dir_ent->d_name, in readproc() 318 dir_ent->d_name); in readproc() 324 "%s/%s", obj, dir_ent->d_name); in readproc()
|
/external/ltp/lib/ |
D | tst_tmpdir.c | 126 struct dirent *dir_ent; in rmobj() local 161 for (dir_ent = (struct dirent *)readdir(dir); in rmobj() 162 dir_ent != NULL; dir_ent = (struct dirent *)readdir(dir)) { in rmobj() 165 if (!strcmp(dir_ent->d_name, ".") in rmobj() 166 || !strcmp(dir_ent->d_name, "..")) in rmobj() 170 sprintf(dirobj, "%s/%s", obj, dir_ent->d_name); in rmobj()
|
/external/perfetto/src/traced/probes/common/ |
D | cpu_freq_info.cc | 53 while (struct dirent* dir_ent = readdir(*cpu_dir)) { in CpuFreqInfo() local 54 if (dir_ent->d_type != DT_DIR) in CpuFreqInfo() 56 std::string dir_name(dir_ent->d_name); in CpuFreqInfo()
|
/external/perfetto/src/traced/probes/ps/ |
D | process_stats_data_source.cc | 72 while (struct dirent* dir_ent = readdir(dirp)) { in ReadNextNumericDir() local 73 if (dir_ent->d_type != DT_DIR) in ReadNextNumericDir() 75 int32_t int_value = ParseIntValue(dir_ent->d_name); in ReadNextNumericDir()
|