delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/07/13:25:16

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <DD74FBB8EE28D441903D56487861CD9D097177C4 AT lonpexch01 DOT citrite DOT net> <DD74FBB8EE28D441903D56487861CD9D097177C5 AT lonpexch01 DOT citrite DOT net>
Subject: RE: Certain files in the system32 directory are not listed
Date: Thu, 7 Jun 2007 18:23:35 +0100
Message-ID: <000d01c7a928$943118a0$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <DD74FBB8EE28D441903D56487861CD9D097177C5@lonpexch01.citrite.net>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 07 June 2007 17:55, John Cooper wrote:

> Dave Korn wrote:
> 
>>> (could that fact that I'm using x64 be contributing to the problem?)
>>   Unlikely to be related.
> 
> It turns out that x64 is indeed causing the discrepancy.
> From http://msdn.microsoft.com/msdnmag/issues/06/05/x64/default.aspx :
> 
> "File activity from a Win32 process that would normally go to the
> System32 directory instead goes to a directory named SysWow64."

  Argh.  I guess we have to extend the old joke: these days, Windows is a
64-bit file-system redirection on top of a 32-bit patch to a 16-bit shell for
an 8-bit operating system written for a 4-bit processor by a two-bit company
without one bit of sense!

> Perhaps something similar should be added to cygwin, as otherwise it's
> impossible to access any files in the "real" system32 directory.

  Conceivably we could insert a call to 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/wow
64disablewow64fsredirection.asp

but who knows what it might break?  We'd have to do a lot of testing first.

> Incidentally, would cygwin be able to exec such 64-bit programs?

  Well, if calling CreateProcess works on them the same as it does for 32-bit
programs, it /ought/ to work, but GOK what M$ might or might not have done
behind the scenes to sabotage us.  For example, cygwin won't be able to exec a
64-bit program if the O/S fakes us out that the .exe isn't even visible ...


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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