Differences From Artifact [43dd30c121]:
- File
src/OFFile.m
— part of check-in
[62e2de30b9]
at
2015-02-16 08:39:17
on branch trunk
— Explicitly pass errno to exceptions
The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. (user: js, size: 26006) [annotate] [blame] [check-ins using]
To Artifact [804562284b]:
- File src/OFFile.m — part of check-in [a7ebc72ac7] at 2015-02-23 00:19:40 on branch trunk — OFSystemInfo: Add methods to check CPU features (user: js, size: 26005) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1027 1028 1029 1030 1031 1032 1033 | return _atEndOfStream; } - (size_t)lowlevelReadIntoBuffer: (void*)buffer length: (size_t)length { ssize_t ret; | < | 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 | return _atEndOfStream; } - (size_t)lowlevelReadIntoBuffer: (void*)buffer length: (size_t)length { ssize_t ret; if (_fd == -1 || _atEndOfStream) @throw [OFReadFailedException exceptionWithObject: self requestedLength: length]; #ifndef _WIN32 if ((ret = read(_fd, buffer, length)) < 0) |
︙ | ︙ |