| /netbsd-src/sbin/reboot/ |
| H A D | reboot.c | 76 char *bootstr, **av; in main() local 129 bootstr = malloc(len + 1); in main() 130 *bootstr = '\0'; /* for first strcat */ in main() 132 strcat(bootstr, *av); in main() 133 strcat(bootstr, " "); in main() 135 bootstr[len - 1] = '\0'; /* to kill last space */ in main() 138 bootstr = NULL; in main() 144 reboot(howto, bootstr); in main() 161 if (bootstr) in main() 163 bootstr); in main() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | kern_reboot.c | 53 kern_reboot(int howto, char *bootstr) in kern_reboot() argument 91 cpu_reboot(howto, bootstr); in kern_reboot() 103 char *bootstr, bs[128]; in sys_reboot() local 113 (error = copyinstr(SCARG(uap, bootstr), bs, sizeof(bs), 0)) == 0) in sys_reboot() 114 bootstr = bs; in sys_reboot() 116 bootstr = NULL; in sys_reboot() 120 kern_reboot(SCARG(uap, opt), bootstr); in sys_reboot()
|
| /netbsd-src/sys/arch/dreamcast/dreamcast/ |
| H A D | machdep.c | 200 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 216 if ((howto & RB_STRING) && bootstr != NULL) { in cpu_reboot() 217 printf("loading a new kernel: %s\n", bootstr); in cpu_reboot() 218 kloader_reboot_setup(bootstr); in cpu_reboot() 249 else if ((howto & RB_STRING) && bootstr != NULL) { in cpu_reboot()
|
| /netbsd-src/sys/arch/sun3/sun3x/ |
| H A D | machdep.c | 376 static char bootstr[128]; in cpu_reboot() local 421 strncpy(bootstr, user_boot_string, sizeof(bootstr)); in cpu_reboot() 428 p = bootstr; in cpu_reboot() 444 sunmon_reboot(bootstr); in cpu_reboot()
|
| /netbsd-src/sys/arch/landisk/landisk/ |
| H A D | machdep.c | 294 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 304 if ((howto & RB_STRING) && (bootstr != NULL)) { in cpu_reboot() 305 kloader_reboot_setup(bootstr); in cpu_reboot()
|
| /netbsd-src/sys/arch/arm/ofw/ |
| H A D | ofwgencfg_machdep.c | 124 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 127 ofw_boot(howto, bootstr); in cpu_reboot()
|
| /netbsd-src/sbin/shutdown/ |
| H A D | shutdown.c | 97 static char *bootstr; variable 127 bootstr = optarg; in main() 410 if (bootstr) in die_you_gravy_sucking_pig_dog() 411 *arg++ = bootstr; in die_you_gravy_sucking_pig_dog() 600 "Usage: %s [-Ddfhknprvxz] [-b bootstr] time [message ... | -]\n",
|
| /netbsd-src/sys/arch/evbsh3/evbsh3/ |
| H A D | machdep.c | 181 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 192 if ((howto & RB_STRING) && (bootstr != NULL)) { in cpu_reboot() 193 kloader_reboot_setup(bootstr); in cpu_reboot()
|
| /netbsd-src/sys/arch/hpcmips/hpcmips/ |
| H A D | machdep.c | 493 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 518 kloader_reboot_setup(bootstr); in cpu_reboot() 556 (*platform.reboot)(howto, bootstr); in cpu_reboot()
|
| /netbsd-src/sys/arch/hpcarm/hpcarm/ |
| H A D | hpc_machdep.c | 125 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 154 kloader_reboot_setup(bootstr); in cpu_reboot()
|
| /netbsd-src/sys/compat/sunos/ |
| H A D | sunos_misc.c | 1020 char *bootstr; in sunos_sys_reboot() local 1045 error = copyinstr(SCARG(uap, bootstr), bs, sizeof(bs), 0); in sunos_sys_reboot() 1048 bootstr = NULL; in sunos_sys_reboot() 1050 bootstr = bs; in sunos_sys_reboot() 1052 bootstr = NULL; in sunos_sys_reboot() 1055 SCARG(&ua, bootstr) = bootstr; in sunos_sys_reboot()
|
| /netbsd-src/sys/arch/shark/shark/ |
| H A D | shark_machdep.c | 176 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 179 ofw_boot(howto, bootstr); in cpu_reboot()
|
| /netbsd-src/sys/compat/sunos32/ |
| H A D | sunos32_misc.c | 1264 char *bootstr; in sunos32_sys_reboot() local 1288 bootstr = SCARG_P32(uap, bootstr); in sunos32_sys_reboot() 1290 bootstr = NULL; in sunos32_sys_reboot() 1293 SCARG(&ua, bootstr) = bootstr; in sunos32_sys_reboot()
|
| /netbsd-src/sys/arch/arm/arm32/ |
| H A D | arm32_reboot.c | 171 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|
| /netbsd-src/sys/arch/aarch64/aarch64/ |
| H A D | aarch64_reboot.c | 213 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|
| /netbsd-src/sys/arch/pmax/pmax/ |
| H A D | machdep.c | 414 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 463 prom_halt(howto & RB_HALT, bootstr); in cpu_reboot()
|
| H A D | promcall.c | 199 prom_halt(int howto, char *bootstr) in prom_halt() argument
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | vr.c | 479 vr_reboot(int howto, char *bootstr) in vr_reboot() argument 500 vr_reboot(howto&~RB_HALT, bootstr); in vr_reboot()
|
| /netbsd-src/sys/arch/hpcsh/hpcsh/ |
| H A D | machdep.c | 365 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument 386 kloader_reboot_setup(bootstr); in cpu_reboot()
|
| /netbsd-src/sys/arch/evbmips/atheros/ |
| H A D | machdep.c | 313 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|
| /netbsd-src/sys/arch/playstation2/playstation2/ |
| H A D | machdep.c | 174 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|
| /netbsd-src/sys/arch/evbarm/mmnet/ |
| H A D | mmnet_machdep.c | 161 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|
| /netbsd-src/sys/arch/shark/ofw/ |
| H A D | ofw.c | 321 ofw_boot(int howto, char *bootstr) in ofw_boot() argument 387 if (bootstr && *bootstr) { in ofw_boot() 388 if (strlen(bootstr) > sizeof str - 5) in ofw_boot() 391 strcpy(str, bootstr); in ofw_boot()
|
| /netbsd-src/sys/arch/evbmips/rasoc/ |
| H A D | machdep.c | 221 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|
| /netbsd-src/sys/arch/evbmips/malta/ |
| H A D | machdep.c | 319 cpu_reboot(int howto, char *bootstr) in cpu_reboot() argument
|