Lines Matching refs:PathCache
71 PathCache *pc; /* The path-list cache in which to look up the executables */
138 static int add_PathNode(PathCache *pc, const char *dirname);
150 struct PathCache { struct
174 static void pca_clear_cache(PathCache *pc); argument
179 static int pca_read_username(PathCache *pc, const char *string, int slen,
186 static int pca_extract_dir(PathCache *pc, const char *path,
193 static int pca_scan_dir(PathCache *pc, const char *dirname, CacheMem *mem);
213 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc);
219 static int pca_prepare_suffix(PathCache *pc, const char *suffix,
230 static const char *pca_prepare_prefix(PathCache *pc, const char *prefix,
238 static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen,
245 static void pca_remove_marks(PathCache *pc);
267 PathCache *new_PathCache(void) in new_PathCache()
269 PathCache *pc; /* The object to be returned */ in new_PathCache()
273 pc = (PathCache *)malloc(sizeof(PathCache)); in new_PathCache()
364 PathCache *del_PathCache(PathCache *pc) in del_PathCache()
432 void pca_set_check_fn(PathCache *pc, CplCheckFn *check_fn, void *data) in pca_set_check_fn()
464 const char *pca_last_error(PathCache *pc) in pca_last_error()
475 static void pca_clear_cache(PathCache *pc) in pca_clear_cache()
510 int pca_scan_path(PathCache *pc, const char *path) in pca_scan_path()
583 static int pca_extract_dir(PathCache *pc, const char *path, const char **nextp) in pca_extract_dir()
662 static int pca_read_username(PathCache *pc, const char *string, int slen, in pca_read_username()
808 static int add_PathNode(PathCache *pc, const char *dirname) in add_PathNode()
888 static int pca_scan_dir(PathCache *pc, const char *dirname, CacheMem *mem) in pca_scan_dir()
1012 char *pca_lookup_file(PathCache *pc, const char *name, int name_len, in pca_lookup_file()
1135 PcaPathConf *new_PcaPathConf(PathCache *pc) in new_PcaPathConf()
1172 static int pca_init_PcaPathConf(PcaPathConf *ppc, PathCache *pc) in pca_init_PcaPathConf()
1218 PathCache *pc; /* The cache in which to look for completions */ in CPL_MATCH_FN()
1441 static int pca_prepare_suffix(PathCache *pc, const char *suffix, in pca_prepare_suffix()
1561 static const char *pca_prepare_prefix(PathCache *pc, const char *prefix, in pca_prepare_prefix()
1636 static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen, in pca_expand_tilde()
1700 static void pca_remove_marks(PathCache *pc) in pca_remove_marks()