- char *ptr = (char *) buf;
- do
- {
- size_t nbytes_to_read = count;
- ssize_t result;
-
- /* Limit the number of bytes to read in one round, to avoid running
- into unspecified behaviour. But keep the file pointer block
- aligned when doing so. */
- if (nbytes_to_read > MAX_BYTES_TO_READ)
- nbytes_to_read = MAX_BYTES_TO_READ & ~8191;