dlsym discussion..

Robert Collins robert.collins@itdomain.com.au
Sun Jun 3 07:19:00 GMT 2001


----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin-developers@cygwin.com>
Sent: Monday, June 04, 2001 12:15 AM
Subject: Re: dlsym discussion..


> On Mon, Jun 04, 2001 at 12:07:13AM +1000, Robert Collins wrote:
> >If by, dll_entry() you mean inserting some custom notification code
in
> >every cygwin compiled dll to allow us to be told as dll's load, that
has
> >the downside of not working with any existing or non-cygwin dll,
> >something that I'd rather avoid.
>
> dll_entry is the DLL entry point in cygwin that gets called every time
a
> thread or process is created or when the cygwin dll is initially
loaded.
> I initially thought it also got called whenever a dll is loaded but I
> think I'm wrong on that one.

I think so :}. the "dllMain" function gets called on process attach and
detach, and also on thread attach and detach. dll loading doesn't
trigger dllMain, unless a dll is dependant on cygwin1.dll, and the
process that uses that dll _isn't_ dependant on cygwin1.dll - in which
case, dlsym is a moot point really().

Rob

>
> cgf
>



More information about the Cygwin-developers mailing list