Home
last modified time | relevance | path

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

/system/core/init/
Dutil.cpp330 void make_link_init(const char *oldpath, const char *newpath) in make_link_init() argument
337 slash = strrchr(newpath, '/'); in make_link_init()
340 width = slash - newpath; in make_link_init()
343 memcpy(buf, newpath, width); in make_link_init()
349 ret = symlink(oldpath, newpath); in make_link_init()
351 ERROR("Failed to symlink %s to %s: %s (%d)\n", oldpath, newpath, strerror(errno), errno); in make_link_init()
354 void remove_link(const char *oldpath, const char *newpath) in remove_link() argument
358 ret = readlink(newpath, path, sizeof(path) - 1); in remove_link()
363 unlink(newpath); in remove_link()
Dutil.h57 void make_link_init(const char *oldpath, const char *newpath);
58 void remove_link(const char *oldpath, const char *newpath);