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

1990/0821/port/sysfile.c (diff list | history)

1990/08141/sys/src/9/port/sysfile.c:148,1531990/0821/sys/src/9/port/sysfile.c:148,154 (short | long | prev | next)
1990/0227    
	nc = (*devtab[nc->type].open)(nc, OREAD); 
	nc->offset = c->offset; 
	nr = (*devtab[nc->type].read)(nc, va, n); 
1990/0821    
	c->offset = nc->offset;		/* devdirread e.g. changes it */ 
1990/0227    
	close(nc); 
	poperror(); 
	if(nr > 0) 
1990/08141/sys/src/9/port/sysfile.c:192,1981990/0821/sys/src/9/port/sysfile.c:193,199
1990/0227    
		if(c->offset%DIRLEN || n==0) 
			error(0, Ebaddirread); 
	} 
	if((c->qid&CHDIR) && c->flag&CMOUNT) 
1990/0821    
	if((c->qid&CHDIR) && (c->flag&CMOUNT)) 
1990/0227    
		n = unionread(c, (void*)arg[1], n); 
	else 
		n = (*devtab[c->type].read)(c, (void*)arg[1], n); 


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