Lines Matching refs:dev_dir
317 char dev_dir[PATH_MAX], path[PATH_MAX], db_dir[PATH_MAX];
326 dev_dir[0] = '\0';
341 assert(sizeof (dev_dir) >= PATH_MAX);
343 if ((realpath(root_dir, dev_dir) == NULL) ||
354 if (strcmp(dev_dir, "/") == 0) {
355 dev_dir[0] = 0;
358 (void) strlcpy(db_dir, dev_dir, sizeof (db_dir));
361 (void) strlcat(dev_dir, DEV, sizeof (dev_dir));
411 proto.dev_dir = dev_dir;
438 * in the dev_dir field (obtained from the proto handle).
443 if ((hdp->dev_dir = strdup(proto.dev_dir)) == NULL) {
449 free(hdp->dev_dir);
1098 free(hdp->dev_dir);
1246 (void) snprintf(link, sizeof (link), "%s/%s", hdp->dev_dir, clp->path);
2221 assert(strncmp(link, hdp->dev_dir, strlen(hdp->dev_dir)) == 0);
2226 link += strlen(hdp->dev_dir) + 1;
2342 hdp->dev_dir, vlp->rel_path);
2500 * Obtain path relative to dev_dir
2505 const size_t len = strlen(hdp->dev_dir);
2507 if (strncmp(path, hdp->dev_dir, len) != 0)
2524 (void) do_recurse(hdp->dev_dir, hdp, rp, &ret);