public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* message for the EIO error
@ 2011-06-15  6:51 EXCOFFIER Denis
  2011-06-15 17:36 ` Christopher Faylor
  2011-06-16  6:31 ` Eric Blake
  0 siblings, 2 replies; 3+ messages in thread
From: EXCOFFIER Denis @ 2011-06-15  6:51 UTC (permalink / raw)
  To: cygwin

Hello,

In the winsup directory (winsup/cygwin/errno.c), i can observe that the error
EIO is attributed the message "Input/Output error".
In the newlib directory (newlib/libc/sys/linux/dl/dl-minimal.c) the same EIO
is attributed the message "Input/output error".

This the same message, but not exactly. Shouldn't they be identical?

Regards.

Denis Excoffier.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: message for the EIO error
  2011-06-15  6:51 message for the EIO error EXCOFFIER Denis
@ 2011-06-15 17:36 ` Christopher Faylor
  2011-06-16  6:31 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2011-06-15 17:36 UTC (permalink / raw)
  To: cygwin

On Wed, Jun 15, 2011 at 08:51:09AM +0200, EXCOFFIER Denis wrote:
>Hello,
>
>In the winsup directory (winsup/cygwin/errno.c), i can observe that the error
>EIO is attributed the message "Input/Output error".
>In the newlib directory (newlib/libc/sys/linux/dl/dl-minimal.c) the same EIO
>is attributed the message "Input/output error".
>
>This the same message, but not exactly. Shouldn't they be identical?

Not necessarily.  We match linux, not newlib but linux also does not uppercase
the O so I've changed it.

Thanks for the heads up.

cgf

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: message for the EIO error
  2011-06-15  6:51 message for the EIO error EXCOFFIER Denis
  2011-06-15 17:36 ` Christopher Faylor
@ 2011-06-16  6:31 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2011-06-16  6:31 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

On 06/15/2011 12:51 AM, EXCOFFIER Denis wrote:
> Hello,
> 
> In the winsup directory (winsup/cygwin/errno.c), i can observe that the
> error
> EIO is attributed the message "Input/Output error".
> In the newlib directory (newlib/libc/sys/linux/dl/dl-minimal.c) the same
> EIO
> is attributed the message "Input/output error".
> 
> This the same message, but not exactly. Shouldn't they be identical?

No.  POSIX has no requirements on the exact context of the error
message, only that the message is distinct enough to map back to the
errno value it is associated with.  Cygwin doesn't use the newlib
strerror implementation, so it doesn't matter whether newlib's spellings
differ from cygwin's spellings.

Rather, cygwin prefers to match Linux' spelling unless there is good
reason to break Linux compatibility, and in this case, Linux spells EIO
"Input/output error".

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-16  6:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15  6:51 message for the EIO error EXCOFFIER Denis
2011-06-15 17:36 ` Christopher Faylor
2011-06-16  6:31 ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).