delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/05/02/17:14:13

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: Tue, 2 May 2000 18:13:58 -0400
To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: Re: [RFC] Is that error mapping correct?
Message-ID: <20000502181358.B3374@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: <390F4D94 DOT C6E8E9F9 AT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.1.12i
In-Reply-To: <390F4D94.C6E8E9F9@vinschen.de>; from corinna@vinschen.de on Tue, May 02, 2000 at 11:50:12PM +0200

On Tue, May 02, 2000 at 11:50:12PM +0200, Corinna Vinschen wrote:
>Hi,
>
>I wonder if the error mapping is correct in case of ERROR_BAD_NETPATH.
>errno.cc maps that error to ENXIO ("No such device or address")
>while I'm sure the correct mapping would be ENOENT ("No such file
>or directory") because
>
>	$ cat /foo/bar/baz
>	cat: /foo/bar/baz: No such file or directory
>and
>	$ cat //f/bar/baz
>	cat: //f/bar/baz: No such file or directory
>
>looks fine while
>
>	$ cat //foo/bar/baz
>	cat: //foo/bar/baz: No such device or address
>
>seems somewhat strange. Have I missed something, perhaps?

I don't know.  Is there some UNIX equivalent that we could use for
testing?  It is nice to differentiate between a non-existent file and a
non-existent host but I agree that the current error doesn't make much
sense.

cgf

- Raw text -


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