Plan 9 from Bell Labs’s /usr/web/sources/extra/changes/2005/1207

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


Better maximums.
 [rsc] --rw-rw-r-- M 905070 glenda sys 37580 Dec  7 07:05 sys/src/cmd/scuzz/scuzz.c
	/n/sourcesdump/2005/1207/plan9/sys/src/cmd/scuzz/scuzz.c:134,140 - 
	/n/sourcesdump/2005/1208/plan9/sys/src/cmd/scuzz/scuzz.c:134,140
	  	char *p;
	  
	  	iosize = maxiosize;
	- 	nbytes = 0x7FFFFFFFFFFFULL & ~iosize;
	+ 	nbytes = ~0ULL >> 1;
	  	switch(argc){
	  
	  	default:
	/n/sourcesdump/2005/1207/plan9/sys/src/cmd/scuzz/scuzz.c:193,199 - 
	/n/sourcesdump/2005/1208/plan9/sys/src/cmd/scuzz/scuzz.c:193,199
	  	int fd, pid;
	  	char *p;
	  
	- 	nbytes = 0x7FFFFFFF & ~maxiosize;
	+ 	nbytes = ~0ULL >> 1;
	  	switch(argc){
	  
	  	default:

Detect incompatible pop3 servers.
 [rsc] --rw-rw-r-- M 905070 glenda sys 13024 Dec  7 15:45 sys/src/cmd/upas/fs/pop3.c
	/n/sourcesdump/2005/1207/plan9/sys/src/cmd/upas/fs/pop3.c:168,173 - 
	/n/sourcesdump/2005/1208/plan9/sys/src/cmd/upas/fs/pop3.c:168,175
	  			hastls = 1;
	  		if(strcmp(s, "PIPELINING") == 0)
	  			pop->pipeline = 1;
	+ 		if(strcmp(s, "EXPIRE 0") == 0)
	+ 			return "server does not allow mail to be left on server";
	  	}
	  
	  	if(hastls && !pop->notls){

Fix type.
 [jmk] --rw-rw-r-- M 905070 glenda sys 472 Dec  7 19:57 sys/src/ape/lib/ap/plan9/brk.c
	/n/sourcesdump/2005/1207/plan9/sys/src/ape/lib/ap/plan9/brk.c:22,37 - 
	/n/sourcesdump/2005/1208/plan9/sys/src/ape/lib/ap/plan9/brk.c:22,36
	  	return 0;
	  }
	  
	- char *
	- sbrk(int n)
	+ void *
	+ sbrk(unsigned long n)
	  {
	- 
	  	n += 3;
	  	n &= ~3;
	  	if(_BRK_((void *)(bloc+n)) < 0){
	  		errno = ENOMEM;
	- 		return (char *)-1;
	+ 		return (void *)-1;
	  	}
	  	bloc += n;
	- 	return (char *)(bloc-n);
	+ 	return (void *)(bloc-n);
	  }

Fix type.
 [jmk] --rw-rw-r-- M 905070 glenda sys 2531 Dec  7 19:50 sys/src/ape/lib/ap/plan9/profile.c
	/n/sourcesdump/2005/1207/plan9/sys/src/ape/lib/ap/plan9/profile.c:9,15 - 
	/n/sourcesdump/2005/1208/plan9/sys/src/ape/lib/ap/plan9/profile.c:9,15
	  extern	long*	_clock;
	  extern	long	_callpc(void**);
	  extern	long	_savearg(void);
	- extern	void*	sbrk(int);
	+ extern	void*	sbrk(unsigned long);
	  
	  typedef unsigned long ulong;
	  


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].