This is the mail archive of the cygwin-developers@sourceware.cygnus.com 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]

Re: Cygwin performance (was [ANN] PW32 the...)


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

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