delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/03/15/14:16:17

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Wed, 15 Mar 2000 14:15:26 -0500
To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: Re: Cygwin performance (was [ANN] PW32 the...)
Message-ID: <20000315141526.F31321@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com,
cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
References: <38CF6031 DOT 7D7A28BB AT vinschen DOT de> <8781 DOT 000315 AT logos-m DOT ru>
Mime-Version: 1.0
User-Agent: Mutt/1.1.8i
In-Reply-To: <8781.000315@logos-m.ru>; from deo@logos-m.ru on Wed, Mar 15, 2000 at 06:45:12PM +0300

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019