argc 27 kernel/exec.c uint64 argc, sz = 0, sp, ustack[MAXARG], stackbase; argc 91 kernel/exec.c for(argc = 0; argv[argc]; argc++) { argc 92 kernel/exec.c if(argc >= MAXARG) argc 94 kernel/exec.c sp -= strlen(argv[argc]) + 1; argc 98 kernel/exec.c if(copyout(pagetable, sp, argv[argc], strlen(argv[argc]) + 1) < 0) argc 100 kernel/exec.c ustack[argc] = sp; argc 102 kernel/exec.c ustack[argc] = 0; argc 105 kernel/exec.c sp -= (argc+1) * sizeof(uint64); argc 109 kernel/exec.c if(copyout(pagetable, sp, (char *)ustack, (argc+1)*sizeof(uint64)) < 0) argc 131 kernel/exec.c return argc; // this ends up in a0, the first argument to main(argc, argv) argc 69 mkfs/mkfs.c main(int argc, char *argv[]) argc 80 mkfs/mkfs.c if(argc < 2){ argc 130 mkfs/mkfs.c for(i = 2; i < argc; i++){ argc 25 user/cat.c main(int argc, char *argv[]) argc 29 user/cat.c if(argc <= 1){ argc 34 user/cat.c for(i = 1; i < argc; i++){ argc 6 user/echo.c main(int argc, char *argv[]) argc 10 user/echo.c for(i = 1; i < argc; i++){ argc 12 user/echo.c if(i + 1 < argc){ argc 38 user/grep.c main(int argc, char *argv[]) argc 43 user/grep.c if(argc <= 1){ argc 49 user/grep.c if(argc <= 2){ argc 54 user/grep.c for(i = 2; i < argc; i++){ argc 6 user/kill.c main(int argc, char **argv) argc 10 user/kill.c if(argc < 2){ argc 14 user/kill.c for(i=1; i<argc; i++) argc 6 user/ln.c main(int argc, char *argv[]) argc 8 user/ln.c if(argc != 3){ argc 76 user/ls.c main(int argc, char *argv[]) argc 80 user/ls.c if(argc < 2){ argc 84 user/ls.c for(i=1; i<argc; i++) argc 6 user/mkdir.c main(int argc, char *argv[]) argc 10 user/mkdir.c if(argc < 2){ argc 15 user/mkdir.c for(i = 1; i < argc; i++){ argc 6 user/rm.c main(int argc, char *argv[]) argc 10 user/rm.c if(argc < 2){ argc 15 user/rm.c for(i = 1; i < argc; i++){ argc 420 user/sh.c int tok, argc; argc 430 user/sh.c argc = 0; argc 437 user/sh.c cmd->argv[argc] = q; argc 438 user/sh.c cmd->eargv[argc] = eq; argc 439 user/sh.c argc++; argc 440 user/sh.c if(argc >= MAXARGS) argc 444 user/sh.c cmd->argv[argc] = 0; argc 445 user/sh.c cmd->eargv[argc] = 0; argc 17 user/stressfs.c main(int argc, char *argv[]) argc 3095 user/usertests.c main(int argc, char *argv[]) argc 3101 user/usertests.c if(argc == 2 && strcmp(argv[1], "-q") == 0){ argc 3103 user/usertests.c } else if(argc == 2 && strcmp(argv[1], "-c") == 0){ argc 3105 user/usertests.c } else if(argc == 2 && strcmp(argv[1], "-C") == 0){ argc 3107 user/usertests.c } else if(argc == 2 && argv[1][0] != '-'){ argc 3109 user/usertests.c } else if(argc > 1){ argc 37 user/wc.c main(int argc, char *argv[]) argc 41 user/wc.c if(argc <= 1){ argc 46 user/wc.c for(i = 1; i < argc; i++){