Searched refs:newpath (Results 1 – 3 of 3) sorted by relevance
/system/core/toolbox/ |
D | wipe.c | 127 char *newpath; in wipe() local 133 newpath = strdup(nameBuffer); in wipe() 134 wipe(newpath); in wipe() 138 if (strcmp(INIT_DIRS[i], newpath) == 0) { in wipe() 143 ret = rmdir(newpath); in wipe() 146 newpath, strerror(errno)); in wipe() 150 free(newpath); in wipe()
|
/system/core/init/ |
D | util.c | 338 void make_link_init(const char *oldpath, const char *newpath) in make_link_init() argument 345 slash = strrchr(newpath, '/'); in make_link_init() 348 width = slash - newpath; in make_link_init() 351 memcpy(buf, newpath, width); in make_link_init() 357 ret = symlink(oldpath, newpath); in make_link_init() 359 ERROR("Failed to symlink %s to %s: %s (%d)\n", oldpath, newpath, strerror(errno), errno); in make_link_init() 362 void remove_link(const char *oldpath, const char *newpath) in remove_link() argument 366 ret = readlink(newpath, path, sizeof(path) - 1); in remove_link() 371 unlink(newpath); in remove_link()
|
D | util.h | 36 void make_link_init(const char *oldpath, const char *newpath); 37 void remove_link(const char *oldpath, const char *newpath);
|