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

1991/0615/port/sysfile.c (diff list | history)

1991/0614/sys/src/9/port/sysfile.c:364,3711991/0615/sys/src/9/port/sysfile.c:364,369 (short | long | prev | next)
Semantics change: require names to be at most NAMELEN in length, instead of unlimited.
rsc Fri Mar 4 17:11:45 2005
1990/0227    
	Chan *c0, *c1; 
	ulong flag; 
	long ret; 
1990/0918    
	char *p; 
	int t; 
1990/0227    
	struct{ 
		Chan	*chan; 
		char	*spec; 
1991/0614/sys/src/9/port/sysfile.c:378,3971991/0615/sys/src/9/port/sysfile.c:376,387
1990/0227    
	if(ismount){ 
		bogus.chan = fdtochan(arg[0], 2); 
1990/11211    
		validaddr(arg[3], 1, 0); 
1990/0918    
		p = (char*)arg[3]; 
		t = BY2PG-((ulong)p&(BY2PG-1)); 
		while(vmemchr(p, 0, t) == 0){ 
			p += t; 
			t = BY2PG; 
		} 
1991/0615    
		if(vmemchr((char*)arg[3], '\0', NAMELEN) == 0) 
			error(Ebadarg); 
1990/0227    
		bogus.spec = (char*)arg[3]; 
1990/11211    
		validaddr(arg[4], 1, 0); 
		p = (char*)arg[4]; 
		t = BY2PG-((ulong)p&(BY2PG-1)); 
		while(vmemchr(p, 0, t) == 0){ 
			p += t; 
			t = BY2PG; 
		} 
1991/0615    
		if(vmemchr((char*)arg[4], '\0', NAMELEN) == 0) 
			error(Ebadarg); 
1990/11211    
		bogus.auth = (char*)arg[4]; 
1990/0227    
		ret = devno('M', 0); 
		c0 = (*devtab[ret].attach)((char*)&bogus); 


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