plan 9 kernel history: overview | file list | diff list

1990/0315/gnot/boot.c (diff list | history)

1990/0312/sys/src/9/gnot/boot.c:19,341990/0315/sys/src/9/gnot/boot.c:19,24 (short | long | prev | next)
1990/03091    
	open("#c/cons", OWRITE); 
	open("#c/cons", OWRITE); 
 
1990/0312    
	fd = open("#c/user", 0); 
	if(fd < 0) 
		error("#c/user"); 
	n = read(fd, buf, sizeof buf-1); 
1990/03091    
	if(n < 0) 
1990/0312    
		error("can't read #c/user; please reboot"); 
	buf[n] = 0; 
1990/03091    
	print("hello %s!\n", buf); 
1990/0312    
	close(fd); 
                 
	/* 
	 *  grab the incon, 
	 *  push the dk multiplexor onto it, 
1990/0312/sys/src/9/gnot/boot.c:39,451990/0315/sys/src/9/gnot/boot.c:29,34
1990/0312    
		error("opening #i/ctl"); 
	sendmsg(cfd, "push dkmux"); 
	sendmsg(cfd, "config 1 16"); 
	print("dkmux configured\n"); 
 
	/* 
	 *  open a datakit channel and call ken via r70, leave the 
1990/0312/sys/src/9/gnot/boot.c:51,671990/0315/sys/src/9/gnot/boot.c:40,48
1990/0312    
	cfd = open("#k/2/ctl", 2); 
	if(cfd < 0) 
		error("opening #k/2/ctl"); 
	print("#k/2/ctl open\n"); 
	sendmsg(cfd, "connect r70.nonet!bootes!fs"); 
	print("connected to r70.nonet!bootes!fs\n"); 
	close(cfd); 
                 
/* 
	for(;;){ 
		print("ding\n"); 
		sleep(10000); 
	} 
/**/ 
 
	/* 
	 *  talk to the file server 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)