Lines Matching defs:path
1105 * requested path.
1107 * Traverse directory structure to the requested path. If the specified
1108 * path is to a directory, this will descend into the directory and
1109 * leave it iterator at the start of the directory. If the path is to a
1114 * @path: the requested path
1118 static int fat_itr_resolve(fat_itr *itr, const char *path, unsigned type)
1123 while (path[0] && ISDIRDELIM(path[0]))
1124 path++;
1127 if (strlen(path) == 0) {
1133 /* find length of next path entry: */
1134 next = path;
1140 if ((((next - path) == 1) && !strncmp(path, ".", 1)) ||
1141 (((next - path) == 2) && !strncmp(path, "..", 2))) {
1163 unsigned n = max(strlen(itr->name), (size_t)(next - path));
1166 if (!strncasecmp(path, itr->name, n))
1169 !strncasecmp(path, itr->s_name, n))
1182 * like: /path/to/realfile/nonsense
1184 debug("bad trailing path: %s\n", next);
1286 * expected to fail if passed a directory path: