Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 11 Aug 2005 10:36:45 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: "Segmentation fault" CygWin tools with code Injection-MS Detours Message-ID: <20050811143645.GF16476@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <42FB4856 DOT 9060808 AT club-internet DOT fr> <42FB4B92 DOT 4060101 AT le-resistant DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42FB4B92.4060101@le-resistant.com> User-Agent: Mutt/1.5.8i On Thu, Aug 11, 2005 at 02:58:58PM +0200, Louis Lecaroz wrote: >Having (if possible ;) ) a patch & a standard modification in cygwin to >allow this type of programming will be really great ! Cygwin has its own (currently undocumented) hooking mechanism. Setting the LD_PRELOAD environment variable to the name of a DLL will cause any function in the DLL to override the similarly named cygwin function. It works similarly to linux: LD_PRELOAD A whitespace-separated list of additional, user-specified, ELF shared libraries to be loaded before all others. This can be used to selectively override functions in other shared libraries. except that it uses DLLs rather than "ELF shared libraries". cgf -- 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/