This is the mail archive of the cygwin-developers 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] |
> If it's known that the application doesn't ever use the "heavy" parts of > stat() in any of its code, then substituting xstat() for stat() globally > only needs to happen once in the code as well.
It needs to be replaced in the following places: - detection code added in autoconf - define in a header #ifdef HAVE_XSTAT #define STRUCT_FAST_STAT struct xstat #define FAST_STAT(...) xstat(__VA_ARGS__) #else #define STRUCT_FAST_STAT struct stat #define FAST_STAT(...) stat(__VA_ARGS__) #endif
On 9/29/2010 3:25 PM, Derry Shribman wrote:Hi,
Q) how much code needs to be modified to get this to work? A) just add #ifdef __CYGWIN__ setenv("CYGWIN", "no_ino no_nlink"); #endif In the code. ONCE!
If it's known that the application doesn't ever use the "heavy" parts of stat() in any of its code, then substituting xstat() for stat() globally only needs to happen once in the code as well.
So it sounds to me like if xstat existed right now in Cygwin, you'd be just as content with it for application use as some Cygwin-specific environment variable. Or was there another point for application use that I missed?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |