path 11 exec.c exec(char *path, char **argv) path 22 exec.c if((ip = namei(path)) == 0){ path 84 exec.c for(last=s=path; *s; s++) path 577 fs.c skipelem(char *path, char *name) path 582 fs.c while(*path == '/') path 583 fs.c path++; path 584 fs.c if(*path == 0) path 586 fs.c s = path; path 587 fs.c while(*path != '/' && *path != 0) path 588 fs.c path++; path 589 fs.c len = path - s; path 596 fs.c while(*path == '/') path 597 fs.c path++; path 598 fs.c return path; path 606 fs.c namex(char *path, int nameiparent, char *name) path 610 fs.c if(*path == '/') path 615 fs.c while((path = skipelem(path, name)) != 0){ path 621 fs.c if(nameiparent && *path == '\0'){ path 641 fs.c namei(char *path) path 644 fs.c return namex(path, 0, name); path 648 fs.c nameiparent(char *path, char *name) path 650 fs.c return namex(path, 1, name); path 7 ls.c fmtname(char *path) path 13 ls.c for(p=path+strlen(path); p >= path && *p != '/'; p--) path 26 ls.c ls(char *path) path 33 ls.c if((fd = open(path, 0)) < 0){ path 34 ls.c printf(2, "ls: cannot open %s\n", path); path 39 ls.c printf(2, "ls: cannot stat %s\n", path); path 46 ls.c printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); path 50 ls.c if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){ path 54 ls.c strcpy(buf, path); path 20 stressfs.c char path[] = "stressfs0"; path 32 stressfs.c path[8] += i; path 33 stressfs.c fd = open(path, O_CREATE | O_RDWR); path 41 stressfs.c fd = open(path, O_RDONLY); path 186 sysfile.c char name[DIRSIZ], *path; path 189 sysfile.c if(argstr(0, &path) < 0) path 193 sysfile.c if((dp = nameiparent(path, name)) == 0){ path 239 sysfile.c create(char *path, short type, short major, short minor) path 245 sysfile.c if((dp = nameiparent(path, name)) == 0) path 286 sysfile.c char *path; path 291 sysfile.c if(argstr(0, &path) < 0 || argint(1, &omode) < 0) path 297 sysfile.c ip = create(path, T_FILE, 0, 0); path 303 sysfile.c if((ip = namei(path)) == 0){ path 336 sysfile.c char *path; path 340 sysfile.c if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ path 353 sysfile.c char *path; path 358 sysfile.c if((len=argstr(0, &path)) < 0 || path 361 sysfile.c (ip = create(path, T_DEV, major, minor)) == 0){ path 373 sysfile.c char *path; path 377 sysfile.c if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ path 397 sysfile.c char *path, *argv[MAXARG]; path 401 sysfile.c if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ path 417 sysfile.c return exec(path, argv);