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

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

1992/0711/sys/src/9/pc/devrtc.c:84,891992/0819/sys/src/9/pc/devrtc.c:84,99 (short | long | prev | next)
1991/0911    
Chan* 
rtcopen(Chan *c, int omode) 
{ 
1992/0819    
	omode = openmode(omode); 
	switch(c->qid.path){ 
	case Qrtc: 
		if(omode == OREAD) 
			break; 
		/* fall through */ 
	case Qnvram: 
		if(strcmp(u->p->user, eve)!=0 || !cpuserver) 
			error(Eperm); 
	} 
1991/0911    
	return devopen(c, omode, rtcdir, NRTC, devgen); 
} 
 


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