Differences From Artifact [3ba49dc037]:
- File src/platform/POSIX/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: 9176) [annotate] [blame] [check-ins using] [more...]
- File src/platform/posix/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: 9176) [annotate] [blame] [check-ins using]
To Artifact [aae58c0f9a]:
- File
src/platform/POSIX/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: 9167) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
327 328 329 330 331 332 333 | if (ret == 0) _atEndOfStream = true; return ret; } | | < | 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | if (ret == 0) _atEndOfStream = true; return ret; } - (size_t)lowlevelWriteBuffer: (const void *)buffer length: (size_t)length { ssize_t bytesWritten; if (_writePipe[1] == -1) @throw [OFNotOpenException exceptionWithObject: self]; if (length > SSIZE_MAX) |
︙ | ︙ |