Differences From Artifact [b8e69b2ddb]:
- File src/platform/Windows/OFSubprocess.m — part of check-in [4a6e3b42f5] at 2021-05-01 03:02:07 on branch trunk — Rename directories in src/platform (user: js, size: 10563) [annotate] [blame] [check-ins using] [more...]
- File src/platform/windows/OFSubprocess.m — part of check-in [498074dab9] at 2021-04-17 22:45:38 on branch new-naming-convention — Rename of_(re)alloc and add OFFreeMemory (user: js, size: 10563) [annotate] [blame] [check-ins using]
To Artifact [77c9c78fb2]:
- File
src/platform/Windows/OFSubprocess.m
— part of check-in
[d1d36ae522]
at
2021-11-06 15:57:29
on branch trunk
— OFStream: New write API
The old write API made it too easy to lose bytes when a stream is set to
non-blocking mode. The new API always throws when not all bytes were
written, which forces handling the number of bytes being written being
smaller than the number of bytes requested to be written. (user: js, size: 10574) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
357 358 359 360 361 362 363 | int errNo = EIO; if (GetLastError() == ERROR_BROKEN_PIPE) errNo = EPIPE; @throw [OFWriteFailedException exceptionWithObject: self requestedLength: length | | | 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 | int errNo = EIO; if (GetLastError() == ERROR_BROKEN_PIPE) errNo = EPIPE; @throw [OFWriteFailedException exceptionWithObject: self requestedLength: length bytesWritten: bytesWritten errNo: errNo]; } return (size_t)bytesWritten; } - (void)closeForWriting |
︙ | ︙ |