| plan 9 kernel history: overview | file list | diff list |
1992/0918/boot/boot.c (diff list | history)
| 1992/0909/sys/src/9/boot/boot.c:149,155 – 1992/0918/sys/src/9/boot/boot.c:149,155 (short | long | prev | next) | ||
| 1992/0317 | char reply[64]; Method *mp; char *cp; | |
| 1992/0918 | int n, j; | |
| 1992/0322 | int notfirst; | |
| 1992/0317 | mp = method; | |
| 1992/0909/sys/src/9/boot/boot.c:165,173 – 1992/0918/sys/src/9/boot/boot.c:165,177 | ||
| 1992/0322 | for(notfirst = 0;; notfirst = 1){ | |
| 1992/0323 | if(pflag || notfirst) | |
| 1992/0317 | outin(prompt, reply, sizeof(reply)); | |
| 1992/0918 | cp = strchr(reply, '!'); if(cp) j = cp - reply; else j = strlen(reply); | |
| 1992/0317 | for(mp = method; mp->name; mp++) | |
| 1992/0918 | if(strncmp(reply, mp->name, j) == 0){ | |
| 1992/0317 | if(cp) strcpy(sys, cp+1); return mp; | |