is LD_PRELOAD available in cygwin?

Brian Dessent brian@dessent.net
Wed Aug 1 18:51:00 GMT 2007


Christopher Faylor wrote:

> Sorry, Brian, but this isn't correct.  LD_PRELOAD has been available for
> Cygwin for a while.
> 
> It's not 100% like linux but it is close.  You can only override cygwin
> functions with it but that should work for open().  If this isn't working
> under cygwin, I'd suspect function decorations are not right, i.e., the
> open() function name being trapped doesn't look the same as the open in
> cygwin1.dll.
> 
> ...either that or LD_PRELOAD is broken.  I haven't played with it for a
> while.

Oh, excellent.  I knew there were some cases of the LD_* things being
supported (e.g. LD_LIBRARY_PATH in the context of dlopen) but I didn't
know this was one of them as well.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list