mingw - free_osfhnd
Robert Collins
rbcollins@cygwin.com
Wed Sep 4 02:04:00 GMT 2002
On Wed, 2002-09-04 at 18:56, Danny Smith wrote:
> --- Robert Collins <rbcollins@cygwin.com> wrote: > On Wed, 2002-09-04 at
> 13:29, Danny Smith wrote:
> > > --- Robert Collins <rbcollins@cygwin.com> wrote: > Changelog:
> > > >
> > > > 2002-09-04 Robert Collins <robertc@cygwin.com>
> > > >
> > > > * msvcrt.def: Export _free_osfhnd.
> > > >
> > > > Is this ok Earnie/Danny?
> > >
> > > I can't see this in my msvcrt.dll. Where do you see it?
> > > Danny
> >
> > Its one of the undocumented internals... along with _get_osfhnd and
> > _set_osfhnd. (I think that _get_osfhnd is there already).
>
> No, only the *_osfhandle functions that are documented.
>
> >
> > The NT Native port of squid, build with Visual C uses this when linking
> > to MSVCRT. As a reference in 1999 XEmacs started using this call, but
> > they defined it locally rather than patching mingw from what I can tell.
> >
> > Rob
> >
>
> Okay, but do you see it in mscvrt.dll? I can't see it in the export table
> anywhere. I would accept that the internals may be available from the static
> libc but not from dll (ms doesn't do the --export-all, for good reason, I
> suspect)
Hmm, well there is an interesting thing then. I simply added it to the
def, rebuilt and copied that to /usr/include/mingw. Then I linked the
program that had been recieving mising symbols on link, and voila' - it
worked.
Leave it with me/Guido until we get the whole program ported. It may be
that I haven't actually used it fully yet.
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020904/f530558c/attachment.sig>
More information about the Cygwin-patches
mailing list