Lines Matching defs:path

131 create_directory(const char *path)
136 assert(path[0] == '/');
141 copy = tofree = checked_strdup(path + 1);
550 char *path;
556 * Return "/-" for direct maps only if we were asked for path
563 path = concat(n->n_key, '/', x);
566 return (node_path_x(n->n_parent, path));
570 * Return full path for node, consisting of concatenated
576 char *path;
579 path = node_path_x(n, checked_strdup(""));
582 * Strip trailing slash, unless the whole path is "/".
584 len = strlen(path);
585 if (len > 1 && path[len - 1] == '/')
586 path[len - 1] = '\0';
588 return (path);
622 char *path, *options, *tmp;
624 path = node_path(n);
638 strcmp(path, node_path(first_child)) != 0) {
643 path,
654 free(path);
676 node_find_x(struct node *node, const char *path)
682 //log_debugx("looking up %s in %s", path, node_path(node));
687 if (strncmp(tmp, path, tmplen) != 0) {
691 if (path[tmplen] != '/' && path[tmplen] != '\0') {
703 found = node_find_x(child, path);
715 node_find(struct node *root, const char *path)
721 node = node_find_x(root, path);
938 file_is_executable(const char *path)
943 error = stat(path, &sb);
945 log_err(1, "cannot stat %s", path);
958 char *path;
966 ret = asprintf(&path, "%s/special_%s", AUTO_SPECIAL_PREFIX, map + 1);
970 yyin = auto_popen(path, key, NULL);
987 free(path);
1030 char *path = NULL;
1049 path = checked_strdup(map);
1051 ret = asprintf(&path, "%s/%s", AUTO_MAP_PREFIX, map);
1054 log_debugx("map \"%s\" maps to \"%s\"", map, path);
1060 error = access(path, F_OK);
1063 "back to directory services", path);
1068 executable = file_is_executable(path);
1077 yyin = auto_popen(path, key, NULL);
1079 yyin = auto_popen(path, NULL);
1083 yyin = fopen(path, "r");
1085 log_err(1, "unable to open \"%s\"", path);
1088 free(path);
1089 path = NULL;