This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFC] Is that error mapping correct?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]