path 11 exec.c exec(char *path, char **argv) path 24 exec.c if((ip = namei(path)) == 0){ path 91 exec.c for(last=s=path; *s; s++) path 596 fs.c skipelem(char *path, char *name) path 601 fs.c while(*path == '/') path 602 fs.c path++; path 603 fs.c if(*path == 0) path 605 fs.c s = path; path 606 fs.c while(*path != '/' && *path != 0) path 607 fs.c path++; path 608 fs.c len = path - s; path 615 fs.c while(*path == '/') path 616 fs.c path++; path 617 fs.c return path; path 625 fs.c namex(char *path, int nameiparent, char *name) path 629 fs.c if(*path == '/') path 634 fs.c while((path = skipelem(path, name)) != 0){ path 640 fs.c if(nameiparent && *path == '\0'){ path 660 fs.c namei(char *path) path 663 fs.c return namex(path, 0, name); path 667 fs.c nameiparent(char *path, char *name) path 669 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 189 sysfile.c char name[DIRSIZ], *path; path 192 sysfile.c if(argstr(0, &path) < 0) path 196 sysfile.c if((dp = nameiparent(path, name)) == 0){ path 242 sysfile.c create(char *path, short type, short major, short minor) path 247 sysfile.c if((dp = nameiparent(path, name)) == 0) path 288 sysfile.c char *path; path 293 sysfile.c if(argstr(0, &path) < 0 || argint(1, &omode) < 0) path 299 sysfile.c ip = create(path, T_FILE, 0, 0); path 305 sysfile.c if((ip = namei(path)) == 0){ path 338 sysfile.c char *path; path 342 sysfile.c if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ path 355 sysfile.c char *path; path 359 sysfile.c if((argstr(0, &path)) < 0 || path 362 sysfile.c (ip = create(path, T_DEV, major, minor)) == 0){ path 374 sysfile.c char *path; path 379 sysfile.c if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ path 399 sysfile.c char *path, *argv[MAXARG]; path 403 sysfile.c if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ path 419 sysfile.c return exec(path, argv);