Lines Matching defs:dev_dir
313 char dev_dir[PATH_MAX], path[PATH_MAX], db_dir[PATH_MAX];
322 dev_dir[0] = '\0';
337 assert(sizeof (dev_dir) >= PATH_MAX);
339 if ((realpath(root_dir, dev_dir) == NULL) ||
350 if (strcmp(dev_dir, "/") == 0) {
351 dev_dir[0] = 0;
354 (void) strlcpy(db_dir, dev_dir, sizeof (db_dir));
357 (void) strlcat(dev_dir, DEV, sizeof (dev_dir));
407 proto.dev_dir = dev_dir;
434 * in the dev_dir field (obtained from the proto handle).
439 if ((hdp->dev_dir = strdup(proto.dev_dir)) == NULL) {
445 free(hdp->dev_dir);
1094 free(hdp->dev_dir);
1242 (void) snprintf(link, sizeof (link), "%s/%s", hdp->dev_dir, clp->path);
2217 assert(strncmp(link, hdp->dev_dir, strlen(hdp->dev_dir)) == 0);
2222 link += strlen(hdp->dev_dir) + 1;
2338 hdp->dev_dir, vlp->rel_path);
2496 * Obtain path relative to dev_dir
2501 const size_t len = strlen(hdp->dev_dir);
2503 if (strncmp(path, hdp->dev_dir, len) != 0)
2520 (void) do_recurse(hdp->dev_dir, hdp, rp, &ret);