Cygwin performance (was [ANN] PW32 the...)
Chris Faylor
cgf@cygnus.com
Wed Mar 15 11:15:00 GMT 2000
On Wed, Mar 15, 2000 at 06:45:12PM +0300, Egor Duda wrote:
>i don't see why
>
>#ifdef __CYGWIN__
> #define CYGWIN_STAT_LITE_FLAGS (STAT_LITE_TIME | STAT_LITE_SIZE | STAT_LITE_OWNER | STAT_LITE_PERM)
> cygwin_stat_lite (path, buf, CYGWIN_STAT_LITE_FLAGS);
>#else
> stat (path, buf);
>#endif
>
>is so much different from
>
>#ifdef __CYGWIN__
> CreateProcessAsUser (...);
>#else
> // ... some unix-way code
>#endif
I'm not sure that this is a valid analogy. The "CreateProcessAsUser"
example is really an indication of a "bug" in cygwin. It's an
indication of a non-fully-functional setuid (or something).
The goal would be to make the CreateProcessAsUser requirement go away
in a future version of cygwin.
Maybe I'm just optimistically holding out for some clever solution in
stat() that will speed things up so much that stat_lite is not required.
cgf
More information about the Cygwin-developers
mailing list