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

1998/0319/port/devsd.c (diff list | history)

1997/0408/sys/src/9/port/devsd.c:231,2381998/0319/sys/src/9/port/devsd.c:231,240 (short | long | prev | next)
Change dev read and write to use vlong offset.
rsc Fri Mar 4 12:44:25 2005
1994/0913    
} 
 
1997/0327    
static long 
1994/0913    
sdread(Chan *c, void *a, long n, ulong offset) 
1998/0319    
sdread(Chan *c, void *a, long n, vlong off) 
1994/0913    
{ 
1998/0319    
	ulong offset = off; 
 
1995/0325    
	if(c->qid.path & CHDIR) 
1994/0913    
		return devdirread(c, a, n, 0, 0, sdgen); 
 
1997/0408/sys/src/9/port/devsd.c:240,2481998/0319/sys/src/9/port/devsd.c:242,251
1994/0913    
} 
 
1997/0327    
static long 
1994/0913    
sdwrite(Chan *c, char *a, long n, ulong offset) 
1998/0319    
sdwrite(Chan *c, char *a, long n, vlong off) 
1994/0913    
{ 
1996/0607    
	Disk *d; 
1998/0319    
	ulong offset = off; 
1996/0607    
 
	d = &disk[DRIVE(c->qid)]; 
 


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