path 28 kernel/exec.c kexec(char *path, char **argv) path 42 kernel/exec.c if ((ip = namei(path)) == 0) { path 127 kernel/exec.c for (last = s = path; *s; s++) path 663 kernel/fs.c skipelem(char *path, char *name) path 668 kernel/fs.c while (*path == '/') path 669 kernel/fs.c path++; path 670 kernel/fs.c if (*path == 0) path 672 kernel/fs.c s = path; path 673 kernel/fs.c while (*path != '/' && *path != 0) path 674 kernel/fs.c path++; path 675 kernel/fs.c len = path - s; path 682 kernel/fs.c while (*path == '/') path 683 kernel/fs.c path++; path 684 kernel/fs.c return path; path 692 kernel/fs.c namex(char *path, int nameiparent, char *name) path 696 kernel/fs.c if (*path == '/') path 701 kernel/fs.c while ((path = skipelem(path, name)) != 0) { path 711 kernel/fs.c if (nameiparent && *path == '\0') { path 731 kernel/fs.c namei(char *path) path 734 kernel/fs.c return namex(path, 0, name); path 738 kernel/fs.c nameiparent(char *path, char *name) path 740 kernel/fs.c return namex(path, 1, name); path 206 kernel/sysfile.c char name[DIRSIZ], path[MAXPATH]; path 209 kernel/sysfile.c if (argstr(0, path, MAXPATH) < 0) path 213 kernel/sysfile.c if ((dp = nameiparent(path, name)) == 0) { path 259 kernel/sysfile.c create(char *path, short type, short major, short minor) path 264 kernel/sysfile.c if ((dp = nameiparent(path, name)) == 0) path 331 kernel/sysfile.c char path[MAXPATH]; path 338 kernel/sysfile.c if ((n = argstr(0, path, MAXPATH)) < 0) path 344 kernel/sysfile.c ip = create(path, T_FILE, 0, 0); path 350 kernel/sysfile.c if ((ip = namei(path)) == 0) { path 400 kernel/sysfile.c char path[MAXPATH]; path 404 kernel/sysfile.c if (argstr(0, path, MAXPATH) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0) { path 417 kernel/sysfile.c char path[MAXPATH]; path 423 kernel/sysfile.c if ((argstr(0, path, MAXPATH)) < 0 || path 424 kernel/sysfile.c (ip = create(path, T_DEVICE, major, minor)) == 0) { path 436 kernel/sysfile.c char path[MAXPATH]; path 441 kernel/sysfile.c if (argstr(0, path, MAXPATH) < 0 || (ip = namei(path)) == 0) { path 461 kernel/sysfile.c char path[MAXPATH], *argv[MAXARG]; path 466 kernel/sysfile.c if (argstr(0, path, MAXPATH) < 0) { path 488 kernel/sysfile.c int ret = kexec(path, argv); path 8 user/ls.c fmtname(char *path) path 14 user/ls.c for (p = path + strlen(path); p >= path && *p != '/'; p--) path 28 user/ls.c ls(char *path) path 35 user/ls.c if ((fd = open(path, O_RDONLY)) < 0) { path 36 user/ls.c fprintf(2, "ls: cannot open %s\n", path); path 41 user/ls.c fprintf(2, "ls: cannot stat %s\n", path); path 49 user/ls.c printf("%s %d %d %d\n", fmtname(path), st.type, st.ino, (int)st.size); path 53 user/ls.c if (strlen(path) + 1 + DIRSIZ + 1 > sizeof buf) { path 57 user/ls.c strcpy(buf, path); path 20 user/stressfs.c char path[] = "stressfs0"; path 32 user/stressfs.c path[8] += i; path 33 user/stressfs.c fd = open(path, O_CREATE | O_RDWR); path 42 user/stressfs.c fd = open(path, O_RDONLY);