public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Magnus Bäck" <baeck@swipnet•se>
To: git@vger•kernel.org
Subject: Re: Implementing stat() with FindFirstFile()
Date: Thu, 26 Mar 2009 22:39:07 +0100	[thread overview]
Message-ID: <20090326213907.GC27249@jeeves.jpl.local> (raw)
In-Reply-To: <49CB2BA5.1070100@viscovery.net>

On Thursday, March 26, 2009 at 08:15 CET,
     Johannes Sixt <j.sixt@viscovery•net> wrote:

> Magnus Bäck schrieb:
>
> > From what I gather the problematic conversion takes place in
> > the Win32 layer, in which case we might be able to call the
> > ZwQueryDirectoryFile() kernel routine directly via ntdll.dll
> > to obtain the file times straight from the file system. Has
> > anyone explored that path, and would it be acceptable to make
> > such a change?
>
> It depends.
>
> The disadvantages are that this function is only available on
> Windows XP and later and that it is not present in the header
> files of MinGW gcc.

I'd be very surprised if ZwQueryDirectoryFile() hasn't always
been around (I just verified ntdll.dll from NT 4.0), so that's
not a worry. Don't know why MSDN reports it as introduced in XP.

> It's on you to prove that there are advantages that clearly
> outweigh these disadvantages.

All right, I'll see if I can find time to take a look at this.
I just wanted to check that it wasn't a project policy or whatever
to bypass Win32.

-- 
Magnus Bäck
baeck@swipnet•se

  reply	other threads:[~2009-03-26 21:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-21 15:47 Implementing stat() with FindFirstFile() Magnus Bäck
2009-03-21 19:55 ` Johannes Sixt
2009-03-24 21:54   ` Magnus Bäck
2009-03-26  7:15     ` Johannes Sixt
2009-03-26 21:39       ` Magnus Bäck [this message]
2009-03-27  2:25         ` Johannes Schindelin
2009-03-29 22:48           ` Magnus Bäck
2009-03-30  0:52             ` Johannes Schindelin
2009-03-30  5:11               ` Björn Steinbrink
2009-03-30 22:07                 ` Heiko Voigt
2009-03-30 23:29                   ` Johannes Schindelin
2009-03-31 20:32                     ` Magnus Bäck
2009-03-31 20:49                       ` Johannes Schindelin
2009-04-01  9:28 ` Nazri Ramliy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090326213907.GC27249@jeeves.jpl.local \
    --to=baeck@swipnet$(echo .)se \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox