delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/05/02/16:58:36

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
Message-ID: <390F4D94.C6E8E9F9@vinschen.de>
Date: Tue, 02 May 2000 23:50:12 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
Reply-To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
Organization: Cygnus Solutions, a Red Hat Company
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: cygdev <cygwin-developers AT sourceware DOT cygnus DOT com>
Subject: [RFC] Is that error mapping correct?

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?

Corinna

- Raw text -


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