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

1992/0318/port/devcons.c (diff list | history)

1992/0317/sys/src/9/port/devcons.c:379,3851992/0318/sys/src/9/port/devcons.c:379,385 (short | long | prev | next)
1990/0227    
readnum(ulong off, char *buf, ulong n, ulong val, int size) 
{ 
	char tmp[64]; 
1992/0317    
	Op op = { tmp, tmp+sizeof(tmp), &val, size-1, 0, FUNSIGN|FLONG }; 
1992/0318    
	Op op = (Op){ tmp, tmp+sizeof(tmp), &val, size-1, 0, FUNSIGN|FLONG }; 
1990/0227    
 
	numbconv(&op, 10); 
	tmp[size-1] = ' '; 
1992/0317/sys/src/9/port/devcons.c:597,6081992/0318/sys/src/9/port/devcons.c:597,608
1991/1127    
		if(offset != 0 || n != 8) 
			error(Ebadarg); 
		chal = u->p->pgrp->crypt->chal; 
		chal[0] = 0; 
1992/0318    
		chal[0] = RXschal; 
1991/1127    
		for(i=1; i<8; i++) 
			chal[i] = nrand(256); 
		memmove(buf, chal, 8); 
		encrypt(evekey, buf, 8); 
		chal[0] = 1; 
1992/0318    
		chal[0] = RXstick; 
1991/1127    
		return n; 
 
1990/0227    
	case Quser: 


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