This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Regression with snap-20050828 ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Angelo Graziosi on 8/29/2005 5:26 PM:
> $ ./test-strerror.exe 
> strerror returned pointer 0x22fa00
> string is "Unknown error 4294967288"
> 
> _______________________________________________________
> 
> Perhaps, this is not a regression but only a change in cygwin behaviour.

Hmm - POSIX does say that strerror "shall map any value of type int to a
message", and not unsigned int, so it would seem better if cygwin didn't
convert to unsigned.  On the other hand, it is allowed to set errno to
EINVAL if errnum was not a valid error from <errno.h>, at which point
cygwin is in its right to print any message whatsoever (as long as it is a
message).  So it is debatable whether this is a regression or a conscious
design decision.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDE81v84KuGfSFAYARAmJ1AJ9CXDxpDHbTsU4y+Uu+WsbbXCHEdwCfaPRi
pLA2jQmrL4Gh1ho6RxbyQjY=
=4gJ3
-----END PGP SIGNATURE-----

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


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