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 ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature