Lines Matching defs:path
45 static int dos_open(const char *path, struct open_file *fd);
254 dos_open(const char *path, struct open_file *fd)
268 if ((err = namede(fs, path, &de)))
557 * Return directory entry from path
560 namede(DOS_FS *fs, const char *path, DOS_DE **dep)
570 while (*path) {
571 while (*path == '/')
572 path++;
573 if (*path == '\0')
575 if (!(s = strchr(path, '/')))
576 s = strchr(path, 0);
577 if ((n = s - path) > 255)
579 memcpy(name, path, n);
581 path = s;
592 * Lookup path segment