/dev/clipboard update

Robert Collins robert.collins@itdomain.com.au
Thu Mar 22 02:58:00 GMT 2001


here's a patch for /dev/clipboard that
* allows sequential reads (the existing code only allowed a single
read() ).
* allows writes (sequential only.. I haven't thought thru the logic for
the boundary cases of random writes).
* allows binary data (ie it's 8 bit clean). A text version is exported
for windows, to the first \0.

sample use:
administrator@LIFELESSWKS /usr/src/src/winsup/cygwin
$ cp ~/fport.exe  /dev/clipboard

administrator@LIFELESSWKS /usr/src/src/winsup/cygwin
$ cp /dev/clipboard ./t.t

administrator@LIFELESSWKS /usr/src/src/winsup/cygwin
$ diff t.t ~/fport.exe


(Use the attached changelog Chris - it has the tabs intact).
Thursday Mar 22 2001  Robert Collins <rbtcollins@hotmail.com>

 * fhandler.h: Extend fhandler_dev_clipboard to support writing.
 * fhandler_clipboard.cc: (fhandler_dev_clipboard) Support sequential
reads and
   sequential writes. Support for binary data via a native clipboard
format.
 * Makefile.in: Link against user32 for the clipboard functions.


-------------- next part --------------
Thursday Mar 22 2001  Robert Collins <rbtcollins@hotmail.com>

	* fhandler.h: Extend fhandler_dev_clipboard to support writing.
	* fhandler_clipboard.cc: (fhandler_dev_clipboard) Support sequential reads and
	  sequential writes. Support for binary data via a native clipboard format.
	* Makefile.in: Link against user32 for the clipboard functions.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clipboard.patch
Type: text/x-diff
Size: 9008 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010322/3996436e/attachment.bin>


More information about the Cygwin-patches mailing list