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

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

1990/0911/sys/src/9/gnot/main.c:16,261990/0917/sys/src/9/gnot/main.c:16,28 (short | long | prev | next)
1990/0312    
	char user[NAMELEN]; 
	char server[64]; 
	char line[64]; 
1990/0917    
	char device; 
1990/0613    
}; 
1990/0312    
#define BOOT ((Boot*)0) 
 
char protouser[NAMELEN]; 
1990/0613    
char bootline[64]; 
1990/0917    
char bootdevice[2]; 
1990/06021    
int bank[2]; 
1990/0312    
 
void unloadboot(void); 
1990/0911/sys/src/9/gnot/main.c:53,581990/0917/sys/src/9/gnot/main.c:55,61
1990/0312    
{ 
	strncpy(protouser, BOOT->user, NAMELEN); 
1990/0613    
	memcpy(bootline, BOOT->line, 64); 
1990/0917    
	bootdevice[0] = BOOT->device; 
1990/0312    
} 
 
void 
1990/0911/sys/src/9/gnot/main.c:107,1121990/0917/sys/src/9/gnot/main.c:110,118
1990/0613    
	if(!waserror()){ 
		c = namec("#e/bootline", Acreate, OWRITE, 0600); 
		(*devtab[c->type].write)(c, bootline, 64); 
1990/0917    
		close(c); 
		c = namec("#e/bootdevice", Acreate, OWRITE, 0600); 
		(*devtab[c->type].write)(c, bootdevice, 2); 
1990/0613    
		close(c); 
	} 
	poperror(); 


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