[PATCH 64bit] Export <io.h> symbols with underscore
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Fri Feb 22 09:40:00 GMT 2013
On Fri, 22 Feb 2013 09:49:51 +0100, Corinna Vinschen wrote:
> > access should go, no doubt about it.
> >
> > For get_osfhandle and setmode I would prefer maintaining backward
> > compatibility with existing applications. Both variations, with and
> > without underscore are definitely in use.
> >
> > What about exporting the underscored variants only, but define the
> > non-underscored ones:
> >
> > extern long _get_osfhandle(int);
> > #define get_osfhandle(i) _get_osfhandle(i)
> >
> > extern int _setmode (int __fd, int __mode);
> > #define setmode(f,m) _setmode((f),(m))
>
> Just to be clear: On 32 bit we should keep the exported symbols, too.
> On 64 bit we can drop the non-underscored ones (which just requires
> to rebuild gawk for me) and only keep the defines for backward
> compatibility.
Like this?
Yaakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-io_h-symbols.patch
Type: text/x-patch
Size: 2255 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20130222/ad6afb87/attachment.bin>
More information about the Cygwin-patches
mailing list