Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/boot/rc.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname boot/rc.c 2002/0109
## diff -e /dev/null /n/emeliedump/2002/0109/sys/src/9/boot/rc.c
0a
#include <u.h>
#include <libc.h>
#include <../boot/boot.h>

void
configrc(Method *)
{
	execl("/rc", "/rc", "-m", "/rcmain", "-i", 0);
	fatal("rc");
}

int
connectrc(void)
{
	// does not get here
	return -1;
}
.
## diffname boot/rc.c 2002/0731
## diff -e /n/emeliedump/2002/0109/sys/src/9/boot/rc.c /n/emeliedump/2002/0731/sys/src/9/boot/rc.c
8c
	setenv("rcmain", rcmain);
	execl("/rc", "/rc", "-m", "#e/rcmain", "-i", 0);
.
4a
/* minimal rc main */
char rcmain[] = "home=/\n"
		"ifs=' \t\n'\n"
		"prompt=('% ' '\t')\n"
		"path=/\n";
		
.
## diffname boot/rc.c 2002/0801 # deleted
## diff -e /n/emeliedump/2002/0731/sys/src/9/boot/rc.c /n/emeliedump/2002/0801/sys/src/9/boot/rc.c
1,24d

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.