thunking, the next step

Robert Collins rbcollins@cygwin.com
Fri Nov 14 12:01:00 GMT 2003


Ok, I've now integrated and generalised Ron's unicode support mini-patch.

So, here tis a version that, well the changelog explains the overview, 
and io.h the detail.

Overhead wise, this is reasonably low:
1 strlen() per IO call minimum.
1 unicode conversion, only if needed.
inlined code, so no additional function calls.

2003-11-11  Robert Collins <rbtcollins@hotmail.com>
             Ron Parker <rdparker@butlermfg.com>

         Rename thunked functions to cygwin_function_name,
         create unicode capable thunks, and add autoload support, for:

           CreateFile
           CreateDirectory
           SetFileAttributes
           GetFileAttributes
           MoveFile
           MoveFileEx

         * assert.cc: Ditto.
         * dcrt0.cc: Ditto.
         * dir.cc: Ditto.
         * exceptions.cc: Ditto.
         * fhandler.cc: Ditto.
         * fhandler_console.cc: Ditto.
         * fhandler_disk_file.cc: Ditto.
         * fhandler_proc.cc: Ditto.
         * fhandler_socket.cc: Ditto.
         * fork.cc: Ditto.
         * ntea.cc: Ditto.
         * path.cc: Ditto.
         * security.cc: Ditto.
         * spawn.cc: Ditto.
         * syscalls.cc: Ditto.
         * times.cc: Ditto.
         * uinfo.cc: Ditto.
	* autoload.cc: Add ...W functions for the thunked functions.
         * wincap.cc:  Add has_unicode_io capability.
         * wincap.h:  Add has_unicode_io capability.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: io.h
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031114/c7ce2ed8/attachment.h>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: proof-of-concept-thunks.changelog
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031114/c7ce2ed8/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: proof-of-concept-thunks.diff
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031114/c7ce2ed8/attachment-0001.ksh>


More information about the Cygwin-patches mailing list