3 ms·
>> The same is true for writing; write(2) can write some, but not all of the passed in data, and then err. What kind of API would one want tosee here? If OS "w
by heavenlyblue 7y ago
>> The same is true for writing; write(2) can write some, but not all of the passed in data, and then err. What kind of API would one want tosee here?
If OS "writes some bytes and then errors" - then for the current call write(2) will return the number of bytes written, and then on the next call you'll get the returned error.