Lines Matching refs:cmd
51 struct cmd_state cmd; variable
74 devboot(bootdev, cmd.bootdev); in boot()
75 strlcpy(cmd.image, kernelfile, sizeof(cmd.image)); in boot()
76 cmd.boothowto = 0; in boot()
77 cmd.conf = "/etc/boot.conf"; in boot()
78 cmd.timeout = boottimeout; in boot()
81 strlcpy(cmd.image, "/bsd.upgrade", sizeof(cmd.image)); in boot()
82 printf("upgrade detected: switching to %s\n", cmd.image); in boot()
92 strlcpy(cmd.image, "/bsd.booted", sizeof(cmd.image)); in boot()
93 printf("unhibernate detected: switching to %s\n", cmd.image); in boot()
94 cmd.boothowto |= RB_UNHIBERNATE; in boot()
99 snprintf(cmd.path, sizeof cmd.path, "%s:%s", in boot()
100 cmd.bootdev, cmd.image); in boot()
111 cmd.boothowto |= RB_GOODRANDOM; in boot()
114 cmd.boothowto |= RB_GOODRANDOM; in boot()
118 cmd.boothowto |= RB_GOODRANDOM; in boot()
126 printf("booting %s: ", cmd.path); in boot()
128 if ((fd = loadfile(cmd.path, marks, LOAD_ALL)) != -1) { in boot()
138 cmd.path); in boot()
147 strlcpy(cmd.image, kernelfile, sizeof(cmd.image)); in boot()
151 if (cmd.timeout > 0) in boot()
152 cmd.timeout++; in boot()
154 if (cmd.timeout) in boot()
156 cmd.timeout = 0; in boot()
161 run_loadfile(marks, cmd.boothowto); in boot()
172 for (i = 0; i < sizeof(cmd.path); i++) { in loadrandom()
173 if (cmd.path[i] == ':') { in loadrandom()
174 strlcpy(path, cmd.path, i + 1); in loadrandom()
177 } else if (cmd.path[i] == '\0') { in loadrandom()
179 cmd.bootdev, name); in loadrandom()