Lines Matching refs:path

47 		if (!strcmp(text, pn->path))  in path_list_contains_entry()
69 char path[PKGCONF_ITEM_SIZE]; in prepare_path_node() local
71 pkgconf_strlcpy(path, text, sizeof path); in prepare_path_node()
72 pkgconf_path_relocate(path, sizeof path); in prepare_path_node()
79 if (lstat(path, &st) == -1) in prepare_path_node()
84 char *linkdest = realpath(path, pathbuf); in prepare_path_node()
89 if (path_list_contains_entry(path, dirlist, &st)) in prepare_path_node()
93 if (filter && path_list_contains_entry(path, dirlist)) in prepare_path_node()
101 node->path = strdup(path); in prepare_path_node()
235 pkgconf_path_match_list(const char *path, const pkgconf_list_t *dirlist) in pkgconf_path_match_list() argument
239 const char *cpath = path; in pkgconf_path_match_list()
241 pkgconf_strlcpy(relocated, path, sizeof relocated); in pkgconf_path_match_list()
249 if (!strcmp(pnode->path, cpath)) in pkgconf_path_match_list()
274 pkgconf_path_t *srcpath = n->data, *path; in pkgconf_path_copy_list() local
276 path = calloc(1, sizeof(pkgconf_path_t)); in pkgconf_path_copy_list()
277 if (path == NULL) in pkgconf_path_copy_list()
280 path->path = strdup(srcpath->path); in pkgconf_path_copy_list()
283 path->handle_path = srcpath->handle_path; in pkgconf_path_copy_list()
284 path->handle_device = srcpath->handle_device; in pkgconf_path_copy_list()
287 pkgconf_node_insert_tail(&path->lnode, path, dst); in pkgconf_path_copy_list()
309 pkgconf_path_t *srcpath = n->data, *path; in pkgconf_path_prepend_list() local
311 path = calloc(1, sizeof(pkgconf_path_t)); in pkgconf_path_prepend_list()
312 if (path == NULL) in pkgconf_path_prepend_list()
315 path->path = strdup(srcpath->path); in pkgconf_path_prepend_list()
318 path->handle_path = srcpath->handle_path; in pkgconf_path_prepend_list()
319 path->handle_device = srcpath->handle_device; in pkgconf_path_prepend_list()
322 pkgconf_node_insert(&path->lnode, path, dst); in pkgconf_path_prepend_list()
345 free(pnode->path); in pkgconf_path_free()
353 normpath(const char *path) in normpath() argument
355 if (!path) in normpath()
358 char *copy = strdup(path); in normpath()
365 *ptr++ = path[ii]; in normpath()
366 if ('/' == path[ii]) in normpath()
369 while ('/' == path[ii]) in normpath()