Searched refs:newpath (Results 1 - 3 of 3) sorted by relevance

/system/core/toolbox/
H A Dwipe.c127 char *newpath; local
133 newpath = strdup(nameBuffer);
134 wipe(newpath);
138 if (strcmp(INIT_DIRS[i], newpath) == 0) {
143 ret = rmdir(newpath);
146 newpath, strerror(errno));
150 free(newpath);
/system/core/init/
H A Dutil.h36 void make_link(const char *oldpath, const char *newpath);
37 void remove_link(const char *oldpath, const char *newpath);
H A Dutil.c330 void make_link(const char *oldpath, const char *newpath) argument
337 slash = strrchr(newpath, '/');
340 width = slash - newpath;
343 memcpy(buf, newpath, width);
349 ret = symlink(oldpath, newpath);
351 ERROR("Failed to symlink %s to %s: %s (%d)\n", oldpath, newpath, strerror(errno), errno);
354 void remove_link(const char *oldpath, const char *newpath) argument
358 ret = readlink(newpath, path, sizeof(path) - 1);
363 unlink(newpath);

Completed in 64 milliseconds