-/* Write LEN bytes at PTR to descriptor DESC, retrying if interrupted.
- Return LEN upon success, -1 (setting errno) otherwise. */
+/* Write LEN bytes at PTR to descriptor DESC, retrying if interrupted
+ or if partial writes occur. Return the number of bytes successfully
+ written, setting errno if that is less than LEN. */