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

1991/1206/port/chan.c (diff list | history)

1991/1126/sys/src/9/port/chan.c:21,281991/1206/sys/src/9/port/chan.c:21,26 (short | long | prev | next)
1990/1104    
	return x; 
1990/0227    
} 
 
1991/0722    
#include "ureg.h" 
                 
1990/0227    
int 
decref(Ref *r) 
{ 
1991/1126/sys/src/9/port/chan.c:82,881991/1206/sys/src/9/port/chan.c:80,87
1991/1011    
		lock(&chanalloc); 
		if(c = chanalloc.free) { 
			chanalloc.free = c->next; 
			/* if closed before changed, this calls rooterror, a nop */ 
1991/1206    
			/* if you get an error before associating with a dev, 
			   close calls rootclose, a nop */ 
1991/1011    
			c->type = 0; 
			c->flag = 0; 
			c->ref = 1; 
1991/1126/sys/src/9/port/chan.c:553,5591991/1206/sys/src/9/port/chan.c:552,558
1990/0227    
	case Amount: 
		/* 
		 * When mounting on an already mounted upon directory, one wants 
		 * the second mount to be attached to the original directory, not 
1991/1206    
		 * subsequent mounts to be attached to the original directory, not 
1990/0227    
		 * the replacement. 
		 */ 
1991/0427    
		if((nc=walk(c, elem, 0)) == 0) 
1991/1126/sys/src/9/port/chan.c:662,6691991/1206/sys/src/9/port/chan.c:661,666
1990/0227    
 
/* 
 * name[0] should not be a slash. 
 * Advance name to next element in path, copying current element into elem. 
 * Return pointer to next element, skipping slashes. 
 */ 
char* 
nextelem(char *name, char *elem) 


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