Lines Matching defs:path

59 			"root path too long"
119 * whether a given path matches the special contents rules or not. We
131 * path A path: determine whether it matches the special
144 * if (search_special_contents(ppcSC, path[j], &i)) {
145 * do_something_with_special_path(path[j]);
175 * Depending on whether the path string compared with the
176 * rule, we take different actions. If the path is less
177 * than the rule, we keep the rule. If the path equals
179 * not a wild card). If the path is greater than the rule,
182 * rules, as we make one pass through the path strings. We
183 * assume that the rules and the path strings are sorted.
247 char path[PATH_MAX];
259 if (snprintf(path, PATH_MAX, "%s%s", pcroot, pc) >= PATH_MAX) {
264 if (snprintf(path, PATH_MAX, "%s/%s", pcroot, pc)
272 e = stat(path, &s);
276 if (access(path, R_OK) != 0 || (fp = fopen(path, "r")) == NULL) {
367 * file will be used for this path value, if one even exists.
397 if (search_special_contents(ppcSC, ppcfent[i]->path,
423 * Compare a path to a cfent. It will match either if the path is
424 * equal to the cfent path, or if the cfent is a symbolic or link
427 * path a path
442 i = strcmp(pc, pent->path);
444 /* A path without additional chars strcmp's to less */
449 /* Break the link path into two pieces. */
453 i = strcmp(pc, pent->path);
461 /* Restore the link path. */
465 i = strcmp(pc, pent->path);
505 char cpath[PATH_MAX], /* Contents file path */
506 tcpath[PATH_MAX]; /* Temp contents file path */
657 /* path < rule, end special case */
663 * Avoid copying the old content when path == rule