X-Spam-Check-By: sourceware.org Message-ID: <46B356D3.538A2E4F@dessent.net> Date: Fri, 03 Aug 2007 09:24:51 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: is LD_PRELOAD available in cygwin? References: <46B02E5F DOT 3080408 AT gmail DOT com> <46B0A563 DOT B672E63 AT dessent DOT net> <20070801183926 DOT GC6530 AT ednor DOT casa DOT cgf DOT cx> <46B2D572 DOT 8080200 AT gmail DOT com> Content-Type: text/plain; charset=iso-8859-1 X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l73GP1BI008288 Günther Jedenastik wrote: > well, preloading a library seems working, but the function decoration > makes problems, but i'm sure this is my fault > it would be great if anyone has a simple example for cygwin func decorations Can't you just show us how you declare your replacement open()? In your example it looks like you're using C++ so you need to declare it 'extern "C"' otherwise it will have C++ decoration/mangling which does not match the function signature of the standard open() function which is a C function. 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/