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

1990/0918/gnot/main.c (diff list | history)

1990/0917/sys/src/9/gnot/main.c:22,271990/0918/sys/src/9/gnot/main.c:22,28 (short | long | prev | next)
1990/0312    
 
char protouser[NAMELEN]; 
1990/0613    
char bootline[64]; 
1990/0918    
char bootserver[64]; 
1990/0917    
char bootdevice[2]; 
1990/06021    
int bank[2]; 
1990/0312    
 
1990/0917/sys/src/9/gnot/main.c:55,601990/0918/sys/src/9/gnot/main.c:56,62
1990/0312    
{ 
	strncpy(protouser, BOOT->user, NAMELEN); 
1990/0613    
	memcpy(bootline, BOOT->line, 64); 
1990/0918    
	memcpy(bootserver, BOOT->server, 64); 
1990/0917    
	bootdevice[0] = BOOT->device; 
1990/0312    
} 
 
1990/0917/sys/src/9/gnot/main.c:110,1151990/0918/sys/src/9/gnot/main.c:112,120
1990/0613    
	if(!waserror()){ 
		c = namec("#e/bootline", Acreate, OWRITE, 0600); 
		(*devtab[c->type].write)(c, bootline, 64); 
1990/0918    
		close(c); 
		c = namec("#e/bootserver", Acreate, OWRITE, 0600); 
		(*devtab[c->type].write)(c, bootserver, 64); 
1990/0917    
		close(c); 
		c = namec("#e/bootdevice", Acreate, OWRITE, 0600); 
		(*devtab[c->type].write)(c, bootdevice, 2); 


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