argv 23 kernel/exec.c exec(char *path, char **argv) argv 91 kernel/exec.c for(argc = 0; argv[argc]; argc++) { argv 94 kernel/exec.c sp -= strlen(argv[argc]) + 1; argv 98 kernel/exec.c if(copyout(pagetable, sp, argv[argc], strlen(argv[argc]) + 1) < 0) argv 437 kernel/sysfile.c char path[MAXPATH], *argv[MAXARG]; argv 445 kernel/sysfile.c memset(argv, 0, sizeof(argv)); argv 447 kernel/sysfile.c if(i >= NELEM(argv)){ argv 454 kernel/sysfile.c argv[i] = 0; argv 457 kernel/sysfile.c argv[i] = kalloc(); argv 458 kernel/sysfile.c if(argv[i] == 0) argv 460 kernel/sysfile.c if(fetchstr(uarg, argv[i], PGSIZE) < 0) argv 464 kernel/sysfile.c int ret = exec(path, argv); argv 466 kernel/sysfile.c for(i = 0; i < NELEM(argv) && argv[i] != 0; i++) argv 467 kernel/sysfile.c kfree(argv[i]); argv 472 kernel/sysfile.c for(i = 0; i < NELEM(argv) && argv[i] != 0; i++) argv 473 kernel/sysfile.c kfree(argv[i]); argv 69 mkfs/mkfs.c main(int argc, char *argv[]) argv 88 mkfs/mkfs.c fsfd = open(argv[1], O_RDWR|O_CREAT|O_TRUNC, 0666); argv 90 mkfs/mkfs.c die(argv[1]); argv 133 mkfs/mkfs.c if(strncmp(argv[i], "user/", 5) == 0) argv 134 mkfs/mkfs.c shortname = argv[i] + 5; argv 136 mkfs/mkfs.c shortname = argv[i]; argv 140 mkfs/mkfs.c if((fd = open(argv[i], 0)) < 0) argv 141 mkfs/mkfs.c die(argv[i]); argv 25 user/cat.c main(int argc, char *argv[]) argv 35 user/cat.c if((fd = open(argv[i], O_RDONLY)) < 0){ argv 36 user/cat.c fprintf(2, "cat: cannot open %s\n", argv[i]); argv 6 user/echo.c main(int argc, char *argv[]) argv 11 user/echo.c write(1, argv[i], strlen(argv[i])); argv 38 user/grep.c main(int argc, char *argv[]) argv 47 user/grep.c pattern = argv[1]; argv 55 user/grep.c if((fd = open(argv[i], O_RDONLY)) < 0){ argv 56 user/grep.c printf("grep: cannot open %s\n", argv[i]); argv 12 user/init.c char *argv[] = { "sh", 0 }; argv 34 user/init.c exec("sh", argv); argv 6 user/kill.c main(int argc, char **argv) argv 15 user/kill.c kill(atoi(argv[i])); argv 6 user/ln.c main(int argc, char *argv[]) argv 12 user/ln.c if(link(argv[1], argv[2]) < 0) argv 13 user/ln.c fprintf(2, "link %s %s: failed\n", argv[1], argv[2]); argv 76 user/ls.c main(int argc, char *argv[]) argv 85 user/ls.c ls(argv[i]); argv 6 user/mkdir.c main(int argc, char *argv[]) argv 16 user/mkdir.c if(mkdir(argv[i]) < 0){ argv 17 user/mkdir.c fprintf(2, "mkdir: %s failed to create\n", argv[i]); argv 6 user/rm.c main(int argc, char *argv[]) argv 16 user/rm.c if(unlink(argv[i]) < 0){ argv 17 user/rm.c fprintf(2, "rm: %s failed to delete\n", argv[i]); argv 22 user/sh.c char *argv[MAXARGS]; argv 77 user/sh.c if(ecmd->argv[0] == 0) argv 79 user/sh.c exec(ecmd->argv[0], ecmd->argv); argv 80 user/sh.c fprintf(2, "exec %s failed\n", ecmd->argv[0]); argv 437 user/sh.c cmd->argv[argc] = q; argv 444 user/sh.c cmd->argv[argc] = 0; argv 466 user/sh.c for(i=0; ecmd->argv[i]; i++) argv 17 user/stressfs.c main(int argc, char *argv[]) argv 2469 user/usertests.c char *argv[1]; argv 2470 user/usertests.c argv[0] = 0; argv 2471 user/usertests.c exec(big, argv); argv 2580 user/usertests.c char *argv[2]; argv 2581 user/usertests.c argv[0] = (char*)0xffffffff; argv 2582 user/usertests.c argv[1] = 0; argv 2583 user/usertests.c exec("echo", argv); argv 3095 user/usertests.c main(int argc, char *argv[]) argv 3101 user/usertests.c if(argc == 2 && strcmp(argv[1], "-q") == 0){ argv 3103 user/usertests.c } else if(argc == 2 && strcmp(argv[1], "-c") == 0){ argv 3105 user/usertests.c } else if(argc == 2 && strcmp(argv[1], "-C") == 0){ argv 3107 user/usertests.c } else if(argc == 2 && argv[1][0] != '-'){ argv 3108 user/usertests.c justone = argv[1]; argv 37 user/wc.c main(int argc, char *argv[]) argv 47 user/wc.c if((fd = open(argv[i], O_RDONLY)) < 0){ argv 48 user/wc.c printf("wc: cannot open %s\n", argv[i]); argv 51 user/wc.c wc(fd, argv[i]);