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

2003/0405/port/devroot.c (diff list | history)

2003/0329/sys/src/9/port/devroot.c:221,2262003/0405/sys/src/9/port/devroot.c:221,233 (short | long | prev)
1993/0724    
		return 0; 
	if(offset+n > d->length) 
		n = d->length - offset; 
2003/0405    
#ifdef asdf 
print("[%d] kaddr %.8ulx base %.8ulx offset %ld (%.8ulx), n %d %.8ulx %.8ulx %.8ulx\n",  
		t, buf, data, offset, offset, n, 
		((ulong*)(data+offset))[0], 
		((ulong*)(data+offset))[1], 
		((ulong*)(data+offset))[2]); 
#endif asdf 
1993/0724    
	memmove(buf, data+offset, n); 
	return n; 
1990/0227    
} 


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