Home
last modified time | relevance | path

Searched refs:dirtree (Results 1 – 25 of 31) sorted by relevance

12

/external/toybox/lib/
Ddirtree.c17 int dirtree_notdotdot(struct dirtree *catch) in dirtree_notdotdot()
28 struct dirtree *dirtree_add_node(struct dirtree *parent, char *name, int flags) in dirtree_add_node()
30 struct dirtree *dt = NULL; in dirtree_add_node()
46 dt = xzalloc((len = sizeof(struct dirtree)+len+1)+linklen); in dirtree_add_node()
75 char *dirtree_path(struct dirtree *node, int *plen) in dirtree_path()
95 int dirtree_parentfd(struct dirtree *node) in dirtree_parentfd()
105 struct dirtree *dirtree_handle_callback(struct dirtree *new, in dirtree_handle_callback()
106 int (*callback)(struct dirtree *node)) in dirtree_handle_callback()
130 int dirtree_recurse(struct dirtree *node, in dirtree_recurse()
131 int (*callback)(struct dirtree *node), int dirfd, int flags) in dirtree_recurse()
[all …]
Dlib.h81 #define DIRTREE_ABORTVAL ((struct dirtree *)1)
83 struct dirtree { struct
84 struct dirtree *next, *parent, *child; argument
94 struct dirtree *dirtree_add_node(struct dirtree *p, char *name, int flags); argument
95 char *dirtree_path(struct dirtree *node, int *plen);
96 int dirtree_notdotdot(struct dirtree *catch);
97 int dirtree_parentfd(struct dirtree *node);
98 int dirtree_recurse(struct dirtree *node, int (*callback)(struct dirtree *node),
100 struct dirtree *dirtree_flagread(char *path, int flags,
101 int (*callback)(struct dirtree *node));
[all …]
/external/toybox/toys/posix/
Ddu.c48 struct dirtree *node;
53 static void print(long long size, struct dirtree *node) in print()
107 static int do_du(struct dirtree *node) in do_du()
120 struct dirtree *try = node; in do_du()
Dls.c60 struct dirtree *files, *singledir;
132 static void entrylen(struct dirtree *dt, unsigned *len) in entrylen()
161 struct dirtree *dta = *(struct dirtree **)a; in compare()
162 struct dirtree *dtb = *(struct dirtree **)b; in compare()
179 static int filter(struct dirtree *new) in filter()
287 static void listfiles(int dirfd, struct dirtree *indir) in listfiles()
289 struct dirtree *dt, **sort; in listfiles()
524 struct dirtree *dt; in ls_main()
Dfind.c83 static int flush_exec(struct dirtree *new, struct exec_range *aa) in flush_exec()
151 static void do_print(struct dirtree *new, char c) in do_print()
160 static void execdir(struct dirtree *new, int flush) in execdir()
198 static int do_find(struct dirtree *new) in do_find()
216 struct dirtree *n; in do_find()
381 struct dirtree *dt = new; in do_find()
Dcp.c112 int (*callback)(struct dirtree *try);
126 static int cp_node(struct dirtree *try) in cp_node()
224 struct dirtree *or; in cp_node()
458 static int install_node(struct dirtree *try) in install_node()
Dchmod.c42 static int do_chmod(struct dirtree *try)
Drm.c25 static int do_rm(struct dirtree *try) in do_rm()
Dps.c270 struct dirtree *threadparent;
612 static int get_ps(struct dirtree *new) in get_ps()
878 static int get_threads(struct dirtree *new) in get_threads()
880 struct dirtree *dt; in get_threads()
1111 static struct carveup **collate_leaves(struct carveup **tb, struct dirtree *dt) in collate_leaves()
1114 struct dirtree *next = dt->next; in collate_leaves()
1125 static struct carveup **collate(int count, struct dirtree *dt) in collate()
1173 struct dirtree *dt; in ps_main()
1362 struct dirtree *dt; in top_common()
Dchgrp.c45 static int do_chgrp(struct dirtree *node) in do_chgrp()
/external/toybox/toys/pending/
Dmke2fs.c86 struct dirtree *dt; // Tree of files to copy into the new filesystem.
152 static struct dirtree *treenext(struct dirtree *this) in treenext()
164 static long check_treesize(struct dirtree *that, off_t *size) in check_treesize()
192 static void check_treelinks(struct dirtree *tree) in check_treelinks()
194 struct dirtree *current=tree, *that; in check_treelinks()
363 static void fill_inode(struct ext2_inode *in, struct dirtree *that) in fill_inode()
414 struct dirtree *dti, *dtb; in mke2fs_main()
443 dti = xzalloc(sizeof(struct dirtree)+11); in mke2fs_main()
453 dtb = xzalloc(sizeof(struct dirtree)+1); in mke2fs_main()
Dmdev.c202 static int callback(struct dirtree *node) in callback()
Ddiff.c454 static int skip(struct dirtree *node) in skip()
472 static void add_to_list(struct dirtree *node) in add_to_list()
483 static int list_dir (struct dirtree *node) in list_dir()
/external/toybox/toys/other/
Dacpi.c44 static int acpi_callback(struct dirtree *tree) in acpi_callback()
85 static int temp_callback(struct dirtree *tree) in temp_callback()
108 static int cool_callback(struct dirtree *tree) in cool_callback()
Dchcon.c24 static int do_chcon(struct dirtree *try) in do_chcon()
Dlsusb.c18 static int list_device(struct dirtree *new) in list_device()
Dlsattr.c142 static int retell_dir(struct dirtree *root) in retell_dir()
252 static int update_attr(struct dirtree *root) in update_attr()
Dswitch_root.c30 static int del_node(struct dirtree *node)
Dlspci.c40 static int do_lspci(struct dirtree *new)
Dtaskset.c91 static int task_callback(struct dirtree *new) in task_callback()
Dmodinfo.c75 static int check_module(struct dirtree *new) in check_module()
Dhwclock.c34 static int rtc_find(struct dirtree* node)
Dsysctl.c67 static int do_show_keys(struct dirtree *dt) in do_show_keys()
Dlosetup.c135 static int dash_a(struct dirtree *node) in dash_a()
/external/toybox/generated/
Dglobals.h721 struct dirtree *dt; // Tree of files to copy into the new filesystem.
1008 int (*callback)(struct dirtree *try);
1133 struct dirtree *files, *singledir;
1260 struct dirtree *threadparent;

12