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

1992/0609/boot/aux.c (diff list | history)

1992/0530/sys/src/9/boot/aux.c:131,1421992/0609/sys/src/9/boot/aux.c:131,144 (short | long | prev | next)
1992/0317    
	int n; 
	char buf[256]; 
 
1992/0609    
	alarm(60*1000); 
1992/0317    
	do{ 
		print("%s[%s]: ", prompt, *def ? def : "no default"); 
		n = read(0, buf, len); 
	}while(n==0); 
1992/0609    
	alarm(0); 
1992/0317    
	if(n < 0) 
		fatal("can't read #c/cons; please reboot"); 
1992/0609    
		fatal("can't read #c/cons or timeout; please reboot"); 
1992/0317    
	if(n != 1){ 
		buf[n-1] = 0; 
		strcpy(def, buf); 


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