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

1992/0820/pc/devrtc.c (diff list | history)

1992/0820/sys/src/9/pc/devrtc.c:92,1001992/0826/sys/src/9/pc/devrtc.c:92,100 (short | long | prev | next)
1992/0819    
	omode = openmode(omode); 
	switch(c->qid.path){ 
	case Qrtc: 
		if(omode == OREAD) 
			break; 
		/* fall through */ 
1992/0826    
		if(omode != OREAD && strcmp(u->p->user, eve)!=0) 
			error(Eperm); 
		break; 
1992/0819    
	case Qnvram: 
		if(strcmp(u->p->user, eve)!=0 || !cpuserver) 
			error(Eperm); 


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