| plan 9 kernel history: overview | file list | diff list |
1993/0330/boot/boot.c (diff list | history)
| 1992/1021/sys/src/9/boot/boot.c:1,5 – 1993/0330/sys/src/9/boot/boot.c:1,6 (short | long | prev | next) | ||
| 1992/0317 | #include <u.h> #include <libc.h> | |
| 1993/0330 | #include <auth.h> | |
| 1992/0318 | #include "../boot/boot.h" | |
| 1992/0317 | #define DEFSYS "bootes" | |
| 1992/1021/sys/src/9/boot/boot.c:12,18 – 1993/0330/sys/src/9/boot/boot.c:13,18 | ||
| 1992/0317 | char terminal[NAMELEN]; char sys[2*NAMELEN]; char username[NAMELEN]; | |
| 1992/0325 |
| |
| 1992/0522 | char bootfile[3*NAMELEN]; | |
| 1992/0530 | char conffile[NAMELEN]; | |
| 1992/0317 | ||
| 1992/1021/sys/src/9/boot/boot.c:21,26 – 1993/0330/sys/src/9/boot/boot.c:21,27 | ||
| 1992/0317 | int kflag; | |
| 1992/0322 | int aflag; | |
| 1992/0323 | int pflag; | |
| 1993/0330 | int afd = -1; | |
| 1992/0317 | ||
| 1992/0530 | static void swapproc(void); static Method *rootserver(char*); | |
| 1992/1021/sys/src/9/boot/boot.c:94,102 – 1993/0330/sys/src/9/boot/boot.c:95,103 | ||
| 1992/0317 | fatal("can't connect to file server"); | |
| 1992/0909 | if(!islocal && !ishybrid){ | |
| 1992/0317 | nop(fd); | |
| 1992/0318 | if(cfs) fd = (*cfs)(fd); | |
| 1993/0330 | doauthenticate(fd, mp); | |
| 1992/0317 | } srvcreate("boot", fd); | |
| 1992/1021/sys/src/9/boot/boot.c:105,116 – 1993/0330/sys/src/9/boot/boot.c:106,113 | ||
| 1992/0317 | */ if(bind("/", "/", MREPL) < 0) fatal("bind"); | |
| 1992/0325 |
| |
| 1993/0330 | if(mount(fd, "/", MAFTER|MCREATE, "") < 0) fatal("mount"); | |
| 1992/0317 | close(fd); | |
| 1992/0609 | if(cpuflag == 0) newkernel(); | |
| 1992/1021/sys/src/9/boot/boot.c:127,133 – 1993/0330/sys/src/9/boot/boot.c:124,130 | ||
| 1992/0902 | fd = (*mp->connect)(); if(fd < 0) break; | |
| 1993/0330 | mount(fd, "/n/kfs", MAFTER|MCREATE, "") ; | |
| 1992/0902 | close(fd); | |
| 1992/0611 | break; | |
| 1992/0902 | } | |
| 1992/1021/sys/src/9/boot/boot.c:134,140 – 1993/0330/sys/src/9/boot/boot.c:131,139 | ||
| 1992/0317 | } settime(islocal); | |
| 1993/0330 | close(afd); | |
| 1992/0317 | swapproc(); | |
| 1993/0330 | remove("#e/password"); | |
| 1992/0317 | sprint(cmd, "/%s/init", cputype); | |
| 1992/0322 | sprint(flags, "-%s%s%s", cpuflag ? "c" : "t", mflag ? "m" : "", aflag ? "a" : ""); | |