Searched refs:dp (Results 1 - 4 of 4) sorted by relevance

/system/core/toolbox/
H A Dchmod.c15 struct dirent *dp; local
24 while ((dp = readdir(dir)) != NULL) {
25 if (strcmp(dp->d_name, ".") == 0 ||
26 strcmp(dp->d_name, "..") == 0) continue;
28 if (strlen(dp->d_name) + pathlen + 2/*NUL and slash*/ > PATH_MAX) {
35 strcat(subpath, dp->d_name);
/system/core/init/
H A Ddevices.c80 struct perms_ dp; member in struct:perm_node
102 node->dp.name = strdup(name);
103 if (!node->dp.name)
107 node->dp.attr = strdup(attr);
108 if (!node->dp.attr)
112 node->dp.perm = perm;
113 node->dp.uid = uid;
114 node->dp.gid = gid;
115 node->dp.prefix = prefix;
129 struct perms_ *dp; local
168 struct perms_ *dp; local
[all...]
/system/vold/
H A DDirectVolume.cpp95 const char *dp = evt->findParam("DEVPATH"); local
99 if (!strncmp(dp, *it, strlen(*it))) {
117 handleDiskAdded(dp, evt);
119 handlePartitionAdded(dp, evt);
133 handleDiskRemoved(dp, evt);
135 handlePartitionRemoved(dp, evt);
139 handleDiskChanged(dp, evt);
141 handlePartitionChanged(dp, evt);
/system/core/sh/
H A Dexpand.c1132 struct dirent *dp; local
1224 while (! int_pending() && (dp = readdir(dirp)) != NULL) {
1225 if (dp->d_name[0] == '.' && ! matchdot)
1227 if (patmatch(start, dp->d_name, 0)) {
1229 scopy(dp->d_name, enddir);
1232 for (p = enddir, cp = dp->d_name;

Completed in 78 milliseconds