argv 25 cat.c main(int argc, char *argv[]) argv 35 cat.c if((fd = open(argv[i], 0)) < 0){ argv 36 cat.c printf(1, "cat: cannot open %s\n", argv[i]); argv 6 echo.c main(int argc, char *argv[]) argv 11 echo.c printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); argv 11 exec.c exec(char *path, char **argv) argv 72 exec.c for(argc = 0; argv[argc]; argc++) { argv 75 exec.c sp = (sp - (strlen(argv[argc]) + 1)) & ~3; argv 76 exec.c if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) argv 39 grep.c main(int argc, char *argv[]) argv 48 grep.c pattern = argv[1]; argv 56 grep.c if((fd = open(argv[i], 0)) < 0){ argv 57 grep.c printf(1, "grep: cannot open %s\n", argv[i]); argv 8 init.c char *argv[] = { "sh", 0 }; argv 30 init.c exec("sh", argv); argv 6 kill.c main(int argc, char **argv) argv 15 kill.c kill(atoi(argv[i])); argv 6 ln.c main(int argc, char *argv[]) argv 12 ln.c if(link(argv[1], argv[2]) < 0) argv 13 ln.c printf(2, "link %s %s: failed\n", argv[1], argv[2]); argv 74 ls.c main(int argc, char *argv[]) argv 83 ls.c ls(argv[i]); argv 6 mkdir.c main(int argc, char *argv[]) argv 16 mkdir.c if(mkdir(argv[i]) < 0){ argv 17 mkdir.c printf(2, "mkdir: %s failed to create\n", argv[i]); argv 68 mkfs.c main(int argc, char *argv[]) argv 87 mkfs.c fsfd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666); argv 89 mkfs.c perror(argv[1]); argv 131 mkfs.c assert(index(argv[i], '/') == 0); argv 133 mkfs.c if((fd = open(argv[i], 0)) < 0){ argv 134 mkfs.c perror(argv[i]); argv 142 mkfs.c if(argv[i][0] == '_') argv 143 mkfs.c ++argv[i]; argv 149 mkfs.c strncpy(de.name, argv[i], DIRSIZ); argv 6 rm.c main(int argc, char *argv[]) argv 16 rm.c if(unlink(argv[i]) < 0){ argv 17 rm.c printf(2, "rm: %s failed to delete\n", argv[i]); argv 22 sh.c char *argv[MAXARGS]; argv 76 sh.c if(ecmd->argv[0] == 0) argv 78 sh.c exec(ecmd->argv[0], ecmd->argv); argv 79 sh.c printf(2, "exec %s failed\n", ecmd->argv[0]); argv 436 sh.c cmd->argv[argc] = q; argv 443 sh.c cmd->argv[argc] = 0; argv 465 sh.c for(i=0; ecmd->argv[i]; i++) argv 17 stressfs.c main(int argc, char *argv[]) argv 399 sysfile.c char *path, *argv[MAXARG]; argv 406 sysfile.c memset(argv, 0, sizeof(argv)); argv 408 sysfile.c if(i >= NELEM(argv)) argv 413 sysfile.c argv[i] = 0; argv 416 sysfile.c if(fetchstr(uarg, &argv[i]) < 0) argv 419 sysfile.c return exec(path, argv); argv 1749 usertests.c main(int argc, char *argv[]) argv 36 wc.c main(int argc, char *argv[]) argv 46 wc.c if((fd = open(argv[i], 0)) < 0){ argv 47 wc.c printf(1, "wc: cannot open %s\n", argv[i]); argv 50 wc.c wc(fd, argv[i]);