Message159424
| Author |
kristjan.jonsson |
| Recipients |
alexis, brian.curtin, eric.araujo, jackjansen, kristjan.jonsson, loewis, mark.dickinson, mhammond, sable, santoso.wijaya, sbt, tarek, tim.golden |
| Date |
2012年04月26日.21:07:03 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1335474424.29.0.485157327611.issue13210@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
MVL wrote:
> I'm not convinced that the errno change is actually correct.
You are right, as SBT pointed out. There are cases where we have had errno.EFOO and errno.WSAEFOO point to different values, because one was used by sockets and other by regular stuff. My patch was too heavy handed and nerfed at least EBADF. Perhaps others. (Getting a concrete example from SBT was helpful, btw)
For socket-specific errors, it is an easy choice, however, but for socket error codes that also have to do with file IO it is less clear and probably full of special cases. This is nothing new, however. For writing portable socket code that needs to deal with the EBADF code, you would have to check for WSAEBADF on windows and EBADF on linux. Probably both to be portable.
Since my patch was aimed at making 3.3. merely compilable for VS2010 I wanted to maintain the same value semantics as were it compiled for 2008. If we are changing the compiler version however, we might just as well take the plunge and translate the windows codes where they have corresponding posix codes. I'm eager to see Brian's patch. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月26日 21:07:04 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis, mhammond, jackjansen, mark.dickinson, sable, tim.golden, tarek, eric.araujo, brian.curtin, santoso.wijaya, alexis, sbt |
| 2012年04月26日 21:07:04 | kristjan.jonsson | set | messageid: <1335474424.29.0.485157327611.issue13210@psf.upfronthosting.co.za> |
| 2012年04月26日 21:07:03 | kristjan.jonsson | link | issue13210 messages |
| 2012年04月26日 21:07:03 | kristjan.jonsson | create |
|