Lines Matching refs:maxsz_p
68 char* FAST_FUNC xmalloc_reads(int fd, size_t *maxsz_p) in xmalloc_reads() argument
73 size_t maxsz = maxsz_p ? *maxsz_p : (INT_MAX - 4095); in xmalloc_reads()
97 if (maxsz_p) in xmalloc_reads()
98 *maxsz_p = p - buf; in xmalloc_reads()
105 void* FAST_FUNC xmalloc_read_with_initial_buf(int fd, size_t *maxsz_p, char *buf, size_t total) in xmalloc_read_with_initial_buf() argument
111 to_read = maxsz_p ? *maxsz_p : (INT_MAX - 4095); /* max to read */ in xmalloc_read_with_initial_buf()
143 if (maxsz_p) in xmalloc_read_with_initial_buf()
144 *maxsz_p = total; in xmalloc_read_with_initial_buf()
148 void* FAST_FUNC xmalloc_read(int fd, size_t *maxsz_p) in xmalloc_read() argument
150 return xmalloc_read_with_initial_buf(fd, maxsz_p, NULL, 0); in xmalloc_read()
161 void* FAST_FUNC xmalloc_open_read_close(const char *filename, size_t *maxsz_p) in xmalloc_open_read_close() argument
178 size = maxsz_p ? *maxsz_p : (INT_MAX - 4095); in xmalloc_open_read_close()
192 if (maxsz_p) in xmalloc_open_read_close()
193 *maxsz_p = size; in xmalloc_open_read_close()
200 void* FAST_FUNC xmalloc_open_read_close(const char *filename, size_t *maxsz_p) in xmalloc_open_read_close() argument
209 buf = xmalloc_read(fd, maxsz_p); in xmalloc_open_read_close()
232 void* FAST_FUNC xmalloc_xopen_read_close(const char *filename, size_t *maxsz_p) in xmalloc_xopen_read_close() argument
234 void *buf = xmalloc_open_read_close(filename, maxsz_p); in xmalloc_xopen_read_close()