Lines Matching refs:path
142 int c = strcmp(a->path, b->path);
197 pf_find_anchor(const char *path)
203 strlcpy(key->path, path, sizeof (key->path));
210 pf_find_ruleset(const char *path)
214 while (*path == '/')
215 path++;
216 if (!*path)
218 anchor = pf_find_anchor(path);
226 pf_find_ruleset_with_owner(const char *path, const char *owner, int is_anchor,
231 while (*path == '/')
232 path++;
233 if (!*path)
235 anchor = pf_find_anchor(path);
249 pf_find_or_create_ruleset(const char *path)
255 if (path[0] == 0)
257 while (*path == '/')
258 path++;
259 ruleset = pf_find_ruleset(path);
264 strlcpy(p, path, MAXPATHLEN);
276 strlcpy(p, path, MAXPATHLEN);
285 (parent != NULL && strlen(parent->path) >=
299 strlcpy(anchor->path, parent->path,
300 sizeof (anchor->path));
301 strlcat(anchor->path, "/", sizeof (anchor->path));
303 strlcat(anchor->path, anchor->name, sizeof (anchor->path));
308 anchor->path, anchor->name, dup->path, dup->name);
319 "'%s' '%s'\n", anchor->path, anchor->name,
320 dup->path, dup->name);
372 char *p, *path;
380 path = (char *)rs_malloc(MAXPATHLEN);
381 bzero(path, MAXPATHLEN);
383 strlcpy(path, name + 1, MAXPATHLEN);
385 /* relative path */
387 if (s->anchor == NULL || !s->anchor->path[0])
388 path[0] = 0;
390 strlcpy(path, s->anchor->path, MAXPATHLEN);
392 if (!path[0]) {
394 rs_free(path);
397 if ((p = strrchr(path, '/')) != NULL)
400 path[0] = 0;
404 if (path[0])
405 strlcat(path, "/", MAXPATHLEN);
406 strlcat(path, name, MAXPATHLEN);
408 if ((p = strrchr(path, '/')) != NULL && strcmp(p, "/*") == 0) {
412 ruleset = pf_find_or_create_ruleset(path);
413 rs_free(path);
432 strlcat(pr->anchor_call, r->anchor->path,
443 strlcpy(a, rs->anchor->path, MAXPATHLEN);
451 if (strncmp(a, r->anchor->path, strlen(a))) {
453 r->anchor->path);
457 if (strlen(r->anchor->path) > strlen(a))
458 strlcat(pr->anchor_call, r->anchor->path + (a[0] ?