~kris/9p

9hist

ref: 191b674b5d7dae9ed28ccc5ebcccfcd00f98c9a7 9hist/boot/rc.c -rw-r--r-- 347 bytes
191b674b — David du Colombier Plan 9 from Bell Labs 2002-07-31 24 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <u.h>
#include <libc.h>
#include <../boot/boot.h>

/* minimal rc main */
char rcmain[] = "home=/\n"
		"ifs=' \t\n'\n"
		"prompt=('% ' '\t')\n"
		"path=/\n";
		
void
configrc(Method *)
{
	setenv("rcmain", rcmain);
	execl("/rc", "/rc", "-m", "#e/rcmain", "-i", 0);
	fatal("rc");
}

int
connectrc(void)
{
	// does not get here
	return -1;
}