Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Date: Wed, 15 Mar 2000 14:15:26 -0500 To: cygdev 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 References: <38CF6031 DOT 7D7A28BB AT vinschen DOT de> <8781 DOT 000315 AT logos-m DOT ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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