delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/13/18:22:39

From: marcus AT bighorn DOT dr DOT lucent DOT com
Subject: Re: phantom file "aux" under bash b19
13 Apr 1998 18:22:39 -0700 :
Message-ID: <199804131647.KAA25197.cygnus.gnu-win32@chorus.dr.lucent.com>
To: gnu-win32 AT cygnus DOT com

dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de wrote:

>Hi Jason, you wrote:
>
>: Unfortunately, the magic meaning of those names is hardcoded into Win32.
>: There's no way to avoid the problem if you use Win32 APIs, which cygwin
>: does.
>
>Really? Although I haven't tried it, several people already wrote on this
>list that the workaround is using UNC \\.\ prefix!
>Sorry, I've no time for integrating that transparently into cygwin DLL!

mh AT mike DOT franken DOT de replied:

> \\.\ has been mentioned only to decribe how to get rid of files with
> names like aux.txt, which have been created by accident.
> It hasn't anything to do with Cygnus or cygwin, but is a "feature" of
> the WinNT Posix subsystem.

I think that the point is that cygwin could use the \\.\ UNC for the file
if it detected that the file name was "aux", "conX", etc. and was not
being referenced in the /dev directory.  That way, the underlying win32 calls
would not be given a file name that they would use as a device name.
Presumably there is greater cost in using the UNC type name for the files,
otherwise cygwin could just use this for accessing all files.

marcus hall
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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