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

1992/0918/boot/boot.c (diff list | history)

1992/0909/sys/src/9/boot/boot.c:149,1551992/0918/sys/src/9/boot/boot.c:149,155 (short | long | prev | next)
1992/0317    
	char reply[64]; 
	Method *mp; 
	char *cp; 
	int n; 
1992/0918    
	int n, j; 
1992/0322    
	int notfirst; 
1992/0317    
 
	mp = method; 
1992/0909/sys/src/9/boot/boot.c:165,1731992/0918/sys/src/9/boot/boot.c:165,177
1992/0322    
	for(notfirst = 0;; notfirst = 1){ 
1992/0323    
		if(pflag || notfirst) 
1992/0317    
			outin(prompt, reply, sizeof(reply)); 
1992/0918    
		cp = strchr(reply, '!'); 
		if(cp) 
			j = cp - reply; 
		else 
			j = strlen(reply); 
1992/0317    
		for(mp = method; mp->name; mp++) 
			if(*reply == *mp->name){ 
				cp = strchr(reply, '!'); 
1992/0918    
			if(strncmp(reply, mp->name, j) == 0){ 
1992/0317    
				if(cp) 
					strcpy(sys, cp+1); 
				return mp; 


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