Lines Matching refs:cur
1555 char *cur,
1561 if (cur == NULL || cur[0] != '/' || strlen(cur) > sizeof (buf) - 1) {
1573 while (*cur == '/')
1574 cur++;
1576 if (*cur == '\0')
1587 if (slash = strchr(cur, '/')) {
1589 (void) strlcat(buf, cur, sizeof (buf));
1591 cur = slash;
1593 (void) strlcat(buf, cur, sizeof (buf));
1594 cur += strlen(cur);
2539 char cur[PATH_MAX], *cp;
2564 (void) snprintf(cur, sizeof (cur), "%s/", dir);
2565 len = strlen(cur);
2566 cp = cur + len;
2567 len = sizeof (cur) - len;
2581 rel = rel_path(hdp, cur);
2584 "do_recurse: skipping %s\n", cur);
2589 if (lstat(cur, &sbuf) == 0) {
2591 rv = do_recurse(cur, hdp, rp, retp);
2593 rv = rp->fcn(hdp, rp->data, cur);
2596 "do_recurse: Skipping entry: %s\n", cur);
2599 (void) dprintf(DBG_ERR, "do_recurse: cur(%s): lstat"
2600 " failed: %s\n", cur, strerror(errno));