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

1991/1115/port/stream.c (diff list | history)

1991/1109/sys/src/9/port/stream.c:689,6941991/1115/sys/src/9/port/stream.c:689,695 (short | long | prev | next)
1990/0227    
void 
nullput(Queue *q, Block *bp) 
{ 
1991/1115    
	USED(q); 
1990/0629    
	if(bp->type == M_HANGUP) 
		freeb(bp); 
	else { 
1991/1109/sys/src/9/port/stream.c:1065,10711991/1115/sys/src/9/port/stream.c:1066,1072
1990/0227    
 *  read a string.  update the offset accordingly. 
 */ 
long 
1991/0411    
stringread(Chan *c, uchar *buf, long n, char *str, ulong offset) 
1991/1115    
stringread(uchar *buf, long n, char *str, ulong offset) 
1990/0227    
{ 
	long i; 
 
1991/1109/sys/src/9/port/stream.c:1092,10981991/1115/sys/src/9/port/stream.c:1093,1099
1990/0930    
	s = c->stream; 
1990/11211    
	if(STREAMTYPE(c->qid.path) == Sctlqid){ 
1990/0930    
		sprint(num, "%d", s->id); 
1991/0411    
		return stringread(c, buf, n, num, c->offset); 
1991/1115    
		return stringread(buf, n, num, c->offset); 
1990/0930    
	} else { 
1990/11211    
		if(CHDIR & c->qid.path) 
1990/0930    
			return devdirread(c, vbuf, n, 0, 0, streamgen); 


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