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

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

1997/0408/sys/src/9/port/devenv.c:162,1711998/0319/sys/src/9/port/devenv.c:162,172 (short | long | prev | next)
Change dev read and write to use vlong offset.
rsc Fri Mar 4 12:44:25 2005
1991/1018    
} 
1990/0227    
 
1997/0327    
static long 
1991/1018    
envread(Chan *c, void *a, long n, ulong offset) 
1998/0319    
envread(Chan *c, void *a, long n, vlong off) 
1990/0227    
{ 
1991/1018    
	Egrp *eg; 
1992/0623    
	Evalue *e; 
1998/0319    
	ulong offset = off; 
1990/0227    
 
1990/11211    
	if(c->qid.path & CHDIR) 
1990/0227    
		return devdirread(c, a, n, 0, 0, envgen); 
1997/0408/sys/src/9/port/devenv.c:192,2031998/0319/sys/src/9/port/devenv.c:193,205
1990/0227    
} 
 
1997/0327    
static long 
1991/1018    
envwrite(Chan *c, void *a, long n, ulong offset) 
1998/0319    
envwrite(Chan *c, void *a, long n, vlong off) 
1990/0227    
{ 
1992/0623    
	char *s; 
	int vend; 
1991/1018    
	Egrp *eg; 
1992/0623    
	Evalue *e; 
1998/0319    
	ulong offset = off; 
1990/0227    
 
	if(n <= 0) 
		return 0; 


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