X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4DF8AE53.9080207@redhat.com> Date: Wed, 15 Jun 2011 07:06:27 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: message for the EIO error References: <20110615085109.19912gd1ozic2gyl@messagerie.si.c-s.fr> In-Reply-To: <20110615085109.19912gd1ozic2gyl@messagerie.si.c-s.fr> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigBF328D0255D60FDFED247124" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com --------------enigBF328D0255D60FDFED247124 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/15/2011 12:51 AM, EXCOFFIER Denis wrote: > Hello, >=20 > 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". >=20 > 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". --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigBF328D0255D60FDFED247124 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJN+K5TAAoJEKeha0olJ0Nqj5oH/id9tdc+9x8d0P3EkS8m1fBq Dy2lfUsslkLcn6a4gfTvgkf0v94OQw+QCIPwePNrhRG2WEIIcZRmwivX+WtU5VYS ovn2aGYKsLS2BdLRZHRf16mkVpTk5FeC9uAE4yrsKAP2WdAS4ObKJskCCdBa908Y KgqFNFflEt4WOTrqCPwKOt+1hj1HSRAY0GRomsH09Rdx7O5jKn/w0QIurr6T6lHM EM70tYUpNsplj3wqkVMfC+47rzJCLhMqlSWwE8xFauY2wX9aVPmsw7FM0qzmmJVZ +YgHMVzyJaKVsoFlF7/3NFMYIaPPNrn23oqV20kgeS8M6tdcVE0nWGvSnUITkcw= =IgTg -----END PGP SIGNATURE----- --------------enigBF328D0255D60FDFED247124--