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

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


tapefs: more 64-bit fixes
 [rsc] --rw-rw-r-- M 1752774 glenda sys 1702 Feb 25 08:53 sys/src/cmd/tapefs/tapefs.h
	/n/sourcesdump/2006/0225/plan9/sys/src/cmd/tapefs/tapefs.h:1,7 - 
	/n/sourcesdump/2006/0226/plan9/sys/src/cmd/tapefs/tapefs.h:1,7
	  #define	g2byte(x)	(((x)[1]<<8) + (x)[0])		/* little-endian */
	  #define	g3byte(x)	(((x)[2]<<16) + ((x)[1]<<8) + (x)[0])
	  #define	g4byte(x)	(((x)[3]<<24) + ((x)[2]<<16) + ((x)[1]<<8) + (x)[0])
	- 
	+ #define	g8byte(x)	(((vlong)g4byte(x)<<32) | (u32int)g4byte(x+4))
	  enum
	  {
	  	OPERM	= 0x3,		/* mask of all permission types in open mode */
	/n/sourcesdump/2006/0225/plan9/sys/src/cmd/tapefs/tapefs.h:40,46 - 
	/n/sourcesdump/2006/0226/plan9/sys/src/cmd/tapefs/tapefs.h:40,46
	  	char	*group;
	  	vlong addr;
	  	void *data;
	- 	long	ndata;
	+ 	vlong	ndata;
	  };
	  
	  enum
 [rsc] --rw-rw-r-- M 1752774 glenda sys 1702 Feb 25 08:53 sys/src/cmd/tapefs/tapefs.h

graphics(2), mouse(2): remove cursorswitch, cursorset
 [rsc] --rw-rw-r-- M 1752774 glenda sys 12765 Feb 25 15:42 sys/man/2/graphics
	/n/sourcesdump/2006/0225/plan9/sys/man/2/graphics:1,6 - 
	/n/sourcesdump/2006/0226/plan9/sys/man/2/graphics:1,6
	  .TH GRAPHICS 2
	  .SH NAME
	- Display, Point, Rectangle, Cursor, initdraw, geninitdraw, drawerror, initdisplay, closedisplay, getdefont, getwindow, gengetwindow, flushimage, bufimage, lockdisplay, unlockdisplay, cursorswitch, cursorset, openfont, buildfont, freefont, Pfmt, Rfmt, strtochan, chantostr, chantodepth \- interactive graphics
	+ Display, Point, Rectangle, Cursor, initdraw, geninitdraw, drawerror, initdisplay, closedisplay, getdefont, getwindow, gengetwindow, flushimage, bufimage, lockdisplay, unlockdisplay, openfont, buildfont, freefont, Pfmt, Rfmt, strtochan, chantostr, chantodepth \- interactive graphics
	  .SH SYNOPSIS
	  .nf
	  .PP
	/n/sourcesdump/2006/0225/plan9/sys/man/2/graphics:62,73 - 
	/n/sourcesdump/2006/0226/plan9/sys/man/2/graphics:62,67
	  	   Image **ip, Screen **sp, int ref)
	  .PP
	  .B
	- void	cursorswitch(Cursor *curs)
	- .PP
	- .B
	- void	cursorset(Point p)
	- .PP
	- .B
	  Font*	openfont(Display *d, char *name)
	  .PP
	  .B
	/n/sourcesdump/2006/0225/plan9/sys/man/2/graphics:276,281 - 
	/n/sourcesdump/2006/0226/plan9/sys/man/2/graphics:270,287
	  is one, and then drawing black at the pixels where
	  .B set
	  is one.
	+ .I Setcursor
	+ and
	+ .I moveto
	+ (see
	+ .IR mouse (2))
	+ and
	+ .I esetcursor
	+ and
	+ .I emoveto
	+ (see
	+ .IR event (2))
	+ change the cursor image and its location on the screen.
	  .PP
	  The routine
	  .I initdraw
	/n/sourcesdump/2006/0225/plan9/sys/man/2/graphics:501,520 - 
	/n/sourcesdump/2006/0226/plan9/sys/man/2/graphics:507,512
	  and
	  .B Screen
	  variables for the new window.
	- .PP
	- The mouse cursor is always displayed.
	- The initial cursor is an arrow.
	- .I Cursorswitch
	- causes the argument cursor to be displayed instead.
	- A zero argument causes a switch back to the arrow cursor.
	- .I Cursorset
	- moves the mouse cursor to position
	- .IR p ,
	- provided (if in a window) that the requesting program is
	- executing in the current window and the mouse is within
	- the window boundaries; otherwise
	- .I cursorset
	- is a no-op.
	  .PP
	  The graphics functions described in
	  .IR draw (2),
 [rsc] --rw-rw-r-- M 1752774 glenda sys 4952 Feb 25 15:42 sys/man/2/mouse
	/n/sourcesdump/2006/0225/plan9/sys/man/2/mouse:1,6 - 
	/n/sourcesdump/2006/0226/plan9/sys/man/2/mouse:1,6
	  .TH MOUSE 2
	  .SH NAME
	- initmouse, readmouse, closemouse, moveto, cursorswitch, getrect, drawgetrect, menuhit, setcursor \- mouse control
	+ initmouse, readmouse, closemouse, moveto, getrect, drawgetrect, menuhit, setcursor \- mouse control
	  .SH SYNOPSIS
	  .nf
	  .B


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