Lines Matching refs:bytes
110 int bytes; in fgets() local
116 for (bytes = 0; bytes < (n - 1); ++bytes) { in fgets()
117 cnt = read(stream->_file, &s[bytes], 1); in fgets()
119 if (bytes != 0) { in fgets()
120 s[bytes] = '\0'; in fgets()
128 if (bytes != 0) { in fgets()
129 s[bytes] = '\0'; in fgets()
135 if (s[bytes] == '\n') { in fgets()
136 s[bytes + 1] = '\0'; in fgets()
141 s[bytes] = '\0'; in fgets()
251 ssize_t bytes, totbytes = 0; in fread() local
257 for (items = 0, bytes = 0; items < nitems; items++) { in fread()
258 bytes = read(stream->_file, &strp[totbytes], size); in fread()
259 if (bytes < 0) { in fread()
262 } else if (bytes == 0) { in fread()
265 } else if (bytes == size) { in fread()
266 stream->_offset += bytes; in fread()
267 totbytes += bytes; in fread()