Lines Matching refs:size
107 size_t size, rd_size; in xmalloc_read_with_initial_buf() local
118 size = (st.st_size | 0x3ff) + 1; in xmalloc_read_with_initial_buf()
121 if (to_read < size) in xmalloc_read_with_initial_buf()
122 size = to_read; in xmalloc_read_with_initial_buf()
123 buf = xrealloc(buf, total + size + 1); in xmalloc_read_with_initial_buf()
124 rd_size = full_read(fd, buf + total, size); in xmalloc_read_with_initial_buf()
130 if (rd_size < size) /* EOF */ in xmalloc_read_with_initial_buf()
136 size = ((total / 8) | 0x3ff) + 1; in xmalloc_read_with_initial_buf()
137 if (size > 64*1024) in xmalloc_read_with_initial_buf()
138 size = 64*1024; in xmalloc_read_with_initial_buf()
164 size_t size; in xmalloc_open_read_close() local
174 size = 0x3ff; /* read only 1k on unseekable files */ in xmalloc_open_read_close()
178 size = maxsz_p ? *maxsz_p : (INT_MAX - 4095); in xmalloc_open_read_close()
179 if (len < size) in xmalloc_open_read_close()
180 size = len; in xmalloc_open_read_close()
183 buf = xmalloc(size + 1); in xmalloc_open_read_close()
184 size = read_close(fd, buf, size); in xmalloc_open_read_close()
185 if ((ssize_t)size < 0) { in xmalloc_open_read_close()
189 buf = xrealloc(buf, size + 1); in xmalloc_open_read_close()
190 buf[size] = '\0'; in xmalloc_open_read_close()
193 *maxsz_p = size; in xmalloc_open_read_close()
218 ssize_t size = full_read(fd, buf, count); in xread() local
219 if ((size_t)size != count) in xread()