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

1991/0411/port/devpipe.c (diff list | history)

1991/0314/sys/src/9/port/devpipe.c:241,2471991/0411/sys/src/9/port/devpipe.c:241,247 (short | long | prev | next)
1990/0227    
} 
 
long 
piperead(Chan *c, void *va, long n) 
1991/0411    
piperead(Chan *c, void *va, long n, ulong offset) 
1990/0227    
{ 
1990/11211    
	if(c->qid.path & CHDIR) 
1990/1009    
		return devdirread(c, va, n, pipedir, NPIPEDIR, pipegen); 
1991/0314/sys/src/9/port/devpipe.c:254,2601991/0411/sys/src/9/port/devpipe.c:254,260
1990/1009    
 *  the process. 
 */ 
1990/0227    
long 
pipewrite(Chan *c, void *va, long n) 
1991/0411    
pipewrite(Chan *c, void *va, long n, ulong offset) 
1990/0227    
{ 
	if(waserror()){ 
		postnote(u->p, 1, "sys: write on closed pipe", NExit); 


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