Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1027/12

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


64-bit safety.
 [rsc] --rw-rw-r-- M 320859 glenda sys 20275 Oct 27 10:39 sys/src/cmd/aux/apm.c
	/n/sourcesdump/2005/1027/plan9/sys/src/cmd/aux/apm.c:621,627 - 
	/n/sourcesdump/2005/1028/plan9/sys/src/cmd/aux/apm.c:621,627
	  };
	  
	  static int
	- fillstat(ulong path, Dir *d, int doalloc)
	+ fillstat(uvlong path, Dir *d, int doalloc)
	  {
	  	int i;
	  
	/n/sourcesdump/2005/1027/plan9/sys/src/cmd/aux/apm.c:713,719 - 
	/n/sourcesdump/2005/1028/plan9/sys/src/cmd/aux/apm.c:713,720
	  static void
	  rootread(Req *r)
	  {
	- 	int n, offset;
	+ 	int n;
	+ 	uvlong offset;
	  	char *p, *ep;
	  	Dir d;
	  
	/n/sourcesdump/2005/1027/plan9/sys/src/cmd/aux/apm.c:720,726 - 
	/n/sourcesdump/2005/1028/plan9/sys/src/cmd/aux/apm.c:721,727
	  	if(r->ifcall.offset == 0)
	  		offset = 0;
	  	else
	- 		offset = (int)r->fid->aux;
	+ 		offset = (uvlong)r->fid->aux;
	  
	  	p = r->ofcall.data;
	  	ep = r->ofcall.data+r->ifcall.count;


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].