Plan 9 from Bell Labs’s /usr/web/sources/extra/changes/2006/0306

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


vga(8): follow formatting conventions
 [rsc] --rw-rw-r-- M 136171 glenda sys 3856 Mar  6 11:02 sys/man/8/vga
	/n/sourcesdump/2006/0306/plan9/sys/man/8/vga:25,31 - 
	/n/sourcesdump/2006/0307/plan9/sys/man/8/vga:25,31
	  ]
	  ]
	  .SH DESCRIPTION
	- .B Aux/vga
	+ .I Vga
	  configures a VGA controller for various display sizes and depths.
	  Using the monitor type specified in
	  .B /env/monitor
	/n/sourcesdump/2006/0306/plan9/sys/man/8/vga:36,42 - 
	/n/sourcesdump/2006/0307/plan9/sys/man/8/vga:36,42
	  given as argument
	  (default
	  .BR 640x480x1 ), 
	- .B aux/vga
	+ .I vga
	  uses the database of known VGA controllers and monitors in
	  .B /lib/vgadb
	  (see

snapfs: more informative error messages for malformed snapshots
 [rsc] --rw-rw-r-- M 136171 glenda sys 4332 Mar  6 11:02 sys/src/cmd/snap/read.c
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/snap/read.c:136,142 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/snap/read.c:136,142
	  	Page **pp;
	  	int i, npg;
	  	int t;
	- 	int len;
	+ 	int n, len;
	  	ulong pid;
	  	uvlong off;
	  	char buf[Pagesize];
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/snap/read.c:180,187 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/snap/read.c:180,187
	  				fprint(2, "0x%.8llux same as %s pid %lud 0x%.8llux\n", s->offset+i*Pagesize, t=='m'?"mem":"text", pid, off);
	  			break;
	  		case 'r':
	- 			if(Bread(b, buf, len) != len)
	- 				panic("error reading segment xx");
	+ 			if((n=Bread(b, buf, len)) != len)
	+ 				sysfatal("short read of segment %d/%d at %llx: %r", n, len, Boffset(b));
	  			pp[i] = datapage(buf, len);
	  			if(debug)
	  				fprint(2, "0x%.8llux is raw data\n", s->offset+i*Pagesize);

webfs: add error code 405
 [rsc] --rw-rw-r-- M 136171 glenda sys 9487 Mar  6 11:25 sys/src/cmd/webfs/http.c
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/webfs/http.c:387,392 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/webfs/http.c:387,396
	  		werrstr("Not found on server (404)");
	  		goto Error;
	  
	+ 	case 405:	/* Method Not Allowed  */
	+ 		werrstr("Method not allowed (405)");
	+ 		goto Error;
	+ 
	  	case 407:	/* Proxy auth */
	  		werrstr("Proxy authentication required (407)");
	  		goto Error;

drawterm: for win32, add Unicode, mouse wheel 
 [rsc] --rw-rw-r-- M 136171 rsc drawterm 826 Mar  6 11:30 sys/src/cmd/unix/drawterm/Make.win32
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/unix/drawterm/Make.win32:10,16 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/unix/drawterm/Make.win32:10,16
	  AS=$(MING)as
	  RANLIB=$(MING)ranlib
	  WINDRES=$(MING)windres
	- CFLAGS=-Wall -Wno-missing-braces -I$(ROOT)/include -I$(ROOT) -I$(ROOT)/kern -c -D_X86_ -DIS_32 -DWINDOWS -O2
	+ CFLAGS=-Wall -Wno-missing-braces -I$(ROOT)/include -I$(ROOT) -I$(ROOT)/kern -c -D_X86_ -DIS_32 -DWINDOWS -DUNICODE -O2
	  O=o
	  FS=fs-win32
	  IP=win32
 [rsc] --rw-rw-r-- M 136171 rsc drawterm 11653 Mar  6 11:30 sys/src/cmd/unix/drawterm/gui-win32/screen.c
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/unix/drawterm/gui-win32/screen.c:1,3 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/unix/drawterm/gui-win32/screen.c:1,4
	+ #define _WIN32_WINNT 0x0500
	  #include	<windows.h>
	  
	  #undef Rectangle
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/unix/drawterm/gui-win32/screen.c:188,200 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/unix/drawterm/gui-win32/screen.c:189,201
	  	wc.hCursor = LoadCursor(NULL, IDC_ARROW);
	  	wc.hbrBackground = GetStockObject(WHITE_BRUSH);
	  	wc.lpszMenuName = 0;
	- 	wc.lpszClassName = "9pmgraphics";
	+ 	wc.lpszClassName = L"9pmgraphics";
	  	RegisterClass(&wc);
	  
	  	window = CreateWindowEx(
	  		0,			/* extended style */
	- 		"9pmgraphics",		/* class */
	- 		"drawterm screen",		/* caption */
	+ 		L"9pmgraphics",		/* class */
	+ 		L"drawterm screen",		/* caption */
	  		WS_OVERLAPPEDWINDOW,    /* style */
	  		CW_USEDEFAULT,		/* init. x pos */
	  		CW_USEDEFAULT,		/* init. y pos */
	/n/sourcesdump/2006/0306/plan9/sys/src/cmd/unix/drawterm/gui-win32/screen.c:338,343 - 
	/n/sourcesdump/2006/0307/plan9/sys/src/cmd/unix/drawterm/gui-win32/screen.c:339,349
	  			return 1;
	  		}
	  		return DefWindowProc(hwnd, msg, wparam, lparam);
	+ 	case WM_MOUSEWHEEL:
	+ 		if ((int)(wparam & 0xFFFF0000)>0)
	+ 			b|=8;
	+ 		else
	+ 			b|=16;
	  	case WM_MOUSEMOVE:
	  	case WM_LBUTTONUP:
	  	case WM_MBUTTONUP:


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