Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/1106/8

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


64-bit fixes.
 [rsc] --rw-rw-r-- M 451989 glenda sys 7964 Nov  6 10:04 sys/src/cmd/rdbfs.c
	/n/sourcesdump/2005/1106/plan9/sys/src/cmd/rdbfs.c:275,281 - 
	/n/sourcesdump/2005/1107/plan9/sys/src/cmd/rdbfs.c:275,281
	  {
	  	char buf[ERRMAX];
	  
	- 	switch((int)r->fid->file->aux){
	+ 	switch((uintptr)r->fid->file->aux){
	  	case Xtext:
	  		close(textfd);
	  		textfd = open(textfile, OREAD);
	/n/sourcesdump/2005/1106/plan9/sys/src/cmd/rdbfs.c:295,301 - 
	/n/sourcesdump/2005/1107/plan9/sys/src/cmd/rdbfs.c:295,301
	  	int i, n;
	  	char buf[512];
	  
	- 	switch((int)r->fid->file->aux) {
	+ 	switch((uintptr)r->fid->file->aux) {
	  	case Xfpregs:
	  	case Xproc:
	  	case Xregs:
	/n/sourcesdump/2005/1106/plan9/sys/src/cmd/rdbfs.c:336,342 - 
	/n/sourcesdump/2005/1107/plan9/sys/src/cmd/rdbfs.c:336,342
	  {
	  	char buf[ERRMAX];
	  
	- 	switch((int)r->fid->file->aux) {
	+ 	switch((uintptr)r->fid->file->aux) {
	  	case Xctl:
	  		if(strncmp(r->ifcall.data, "kill", 4) == 0 ||
	  		   strncmp(r->ifcall.data, "exit", 4) == 0) {


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.