message for the EIO error

Eric Blake eblake@redhat.com
Thu Jun 16 06:31:00 GMT 2011


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110616/571e25c5/attachment.sig>


More information about the Cygwin mailing list