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

1992/0101/port/chan.c (diff list | history)

1991/1206/sys/src/9/port/chan.c:634,6401992/0101/sys/src/9/port/chan.c:634,640 (short | long | prev | next)
1990/0227    
	return name; 
} 
 
char isfrog[]={ 
1992/0101    
char isfrog[256]={ 
1990/0227    
	/*NUL*/	1, 1, 1, 1, 1, 1, 1, 1, 
	/*BKS*/	1, 1, 1, 1, 1, 1, 1, 1, 
	/*DLE*/	1, 1, 1, 1, 1, 1, 1, 1, 
1991/1206/sys/src/9/port/chan.c:642,6471992/0101/sys/src/9/port/chan.c:642,651
1990/0227    
	[' ']	1, 
	['/']	1, 
	[0x7f]	1, 
1992/0101    
/*0x80+	  NUL*/	1, 1, 1, 1, 1, 1, 1, 1, 
	/*BKS*/	1, 1, 1, 1, 1, 1, 1, 1, 
	/*DLE*/	1, 1, 1, 1, 1, 1, 1, 1, 
	/*CAN*/	1, 1, 1, 1, 1, 1, 1, 1, 
1990/0227    
}; 
1991/0727    
 
void 
1991/1206/sys/src/9/port/chan.c:651,6571992/0101/sys/src/9/port/chan.c:655,661
1991/1107    
 
	eelem = elem+NAMELEN; 
1991/0727    
	while(*elem) { 
		if((*elem&0x80) || isfrog[*elem]) 
1992/0101    
		if(isfrog[*(uchar*)elem]) 
1991/0727    
			error(Ebadchar); 
		elem++; 
1991/1107    
		if(elem >= eelem) 
1991/1206/sys/src/9/port/chan.c:681,6881992/0101/sys/src/9/port/chan.c:685,692
1990/0227    
			end = e; 
	} 
	while(name < end){ 
		c = *name++; 
		if((c&0x80) || isfrog[c]) 
1992/0101    
		c = *(uchar*)name++; 
		if(isfrog[c]) 
1990/11211    
			error(Ebadchar); 
1990/0227    
		*elem++ = c; 
	} 


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