This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

/dev/clipboard update


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.


clipboard.changelog

clipboard.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]