Home
last modified time | relevance | path

Searched refs:newpath (Results 1 – 4 of 4) sorted by relevance

/system/core/toolbox/
Dwipe.c127 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/
Dutil.c347 void make_link(const char *oldpath, const char *newpath) in make_link() argument
354 slash = strrchr(newpath, '/'); in make_link()
357 width = slash - newpath; in make_link()
360 memcpy(buf, newpath, width); in make_link()
366 ret = symlink(oldpath, newpath); in make_link()
368 ERROR("Failed to symlink %s to %s: %s (%d)\n", oldpath, newpath, strerror(errno), errno); in make_link()
371 void remove_link(const char *oldpath, const char *newpath) in remove_link() argument
375 ret = readlink(newpath, path, sizeof(path) - 1); in remove_link()
380 unlink(newpath); in remove_link()
Dutil.h36 void make_link(const char *oldpath, const char *newpath);
37 void remove_link(const char *oldpath, const char *newpath);
/system/core/sdcard/
Dsdcard.c513 char *newpath, newbuffer[PATH_BUFFER_SIZE]; in handle_fuse_request() local
524 newpath = node_get_path(newnode, newbuffer, newname); in handle_fuse_request()
526 res = rename(oldpath, newpath); in handle_fuse_request()