This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Suggested improvement to


I've recently had need to dynamically load a Cygwin DLL into an non-Cygwin application. The FAQ entry for doing this and the associated sample application (/src/winsup/testsuite/winsup.api/ are both a bit out-of-date, though they still provided me with enough information to get this working correctly.

A useful modification to and cygload.h might be to replace the fixed size (currently 32768) used for "padding" with a dynamically determined value. The number of bytes needed can be obtained by making the call:

int padSize = cygwin_internal(CW_CYGTLS_PADSIZE);

Making use of this value might require a bit more inline assembler (that's the approach I'm using), rather than simply declaring a variable to chew up the stack space, but this might keep things from breaking if the padding size changes in future releases of cygwin1.dll.

I'm not sure who maintains this stuff, so I'm just posting this suggestion to the list, in the hope that someone can and will act upon it.


Eric Zurcher
CSIRO Plant Industry
Canberra, Australia

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]