The source project of this merge request has been removed.
Use 'write' with 'count' <= max value of its return type
Limit 'count' so that 'write' can properly report the numer of written bytes.
Limits:
POSIX: SSIZE_MAX
Windows: INT_MAX (Bug #2883 (closed))
Closes #2883 (closed)