Lines Matching defs:linkName
66 const char *linkName = symLinks[i];
69 if (strstr(linkName, "/dev/block/by-name") != NULL) {
70 int res = GetDeviceNodePermissions(linkName, &uid, &gid, &mode);
74 if (strncpy_s(linkBuf, DEVICE_FILE_SIZE - 1, linkName, strlen(linkName)) != EOK) {
85 INIT_LOGI("symlink %s->%s", deviceNode, linkName);
86 int rc = symlink(deviceNode, linkName);
89 INIT_LOGE("Failed to link \" %s \" to \" %s \", err = %d", deviceNode, linkName, errno);
132 const char *linkName = symLinks[i];
134 if (strncmp(linkName, byNamePath, strlen(byNamePath)) == 0) {
135 (void)Restorecon(linkName);
136 lgetfilecon(linkName, &context);
213 const char *linkName = symLinks[i];
214 ssize_t ret = readlink(linkName, realPath, DEVICE_FILE_SIZE - 1);
219 INIT_LOGI("unlink %s", linkName);
220 unlink(linkName);