MSYS mode (continue)

Corinna Vinschen
Fri Jul 26 16:47:00 GMT 2013

On Jul 26 12:37, Christopher Faylor wrote:
> On Fri, Jul 26, 2013 at 06:12:05PM +0200, Corinna Vinschen wrote:
> >I don't know if that's a problem for them, but this reminds me... maybe
> >we can use the LD_PRELOAD mechanism in for that?
> I was thinking that we'd use something like that (re my use of PRELOAD
> and your use of CW_HOOK) but, you're right.  Someone could potentially
> implement MSYS.dll via LD_PRELOAD:
> LD_PRELOAD=msys.dll
> and then have msys.dll hook the functions that it is interested in using
> via CW_HOOK.

Two points come to mind.

- Does CW_HOOK still work?  I had to change a lot of code in
  hook_or_detect_cygwin to handle big executables and 32 vs. 64 bit, so
  I have no idea if it still does the righht thing in terms of CW_HOOK.

- Isn't CW_HOOK a bit heavy handed for MSYS?  MSYS only replaces partial
  functionality, not entire functions.  Something like a CW_HOOK2 which
  only results in Cygwin calling certain function pointers for minor
  tweaks could be the result...


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-developers mailing list