Searched defs:link (Results 1 - 6 of 6) sorted by relevance
/system/core/base/ |
H A D | file_test.cpp | 51 TemporaryFile target, link; local 52 ASSERT_EQ(0, unlink(link.path)); 53 ASSERT_EQ(0, symlink(target.path, link.path)); 54 ASSERT_FALSE(android::base::WriteStringToFile("foo", link.path, false)); 56 ASSERT_TRUE(android::base::WriteStringToFile("foo", link.path, true)); 59 ASSERT_FALSE(android::base::ReadFileToString(link.path, &s)); 61 ASSERT_TRUE(android::base::ReadFileToString(link.path, &s, true)); 129 ASSERT_EQ("is not a regular or symbol link file", err);
|
/system/extras/ext4_utils/ |
H A D | contents.h | 26 char *link; member in struct:dentry 41 u32 make_link(const char *link);
|
H A D | contents.c | 96 .. link is set to dir_inode_num. Stores the location of the inode number 213 u32 make_link(const char *link) argument 217 u32 len = strlen(link); 238 memcpy((char*)inode->i_block, link, len); 241 memcpy(data, link, len);
|
/system/vold/ |
H A D | Process.cpp | 42 int Process::readSymLink(const char *path, char *link, size_t max) { argument 52 length = readlink(path, link, max- 1); 55 link[length] = 0; 108 char link[PATH_MAX]; local 110 if (readSymLink(path, link, sizeof(link)) && pathMatchesMountPoint(link, mountPoint)) { 113 strlcpy(openFilename, link, max); 156 char link[PATH_MAX]; local 159 if (readSymLink(path, link, sizeo [all...] |
/system/core/init/ |
H A D | devices.cpp | 214 [it](const auto& link) { return it->Match(link); })) { 230 for (const auto& link : links) { 231 c_links.emplace_back(link.c_str()); 353 for (const auto& link : links) { 354 if (mkdir_recursive(Dirname(link), 0755, sehandle_)) { 355 PLOG(ERROR) << "Failed to create directory " << Dirname(link); 358 if (symlink(devpath.c_str(), link.c_str()) && errno != EEXIST) { 359 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link; local 365 for (const auto& link [all...] |
/system/core/adb/client/ |
H A D | usb_linux.cpp | 218 char link[256]; local 275 ssize_t link_len = readlink(pathbuf, link, sizeof(link) - 1); 277 link[link_len] = '\0'; 278 const char* slash = strrchr(link, '/');
|
Completed in 1512 milliseconds