Searched refs:maxsz_p (Results 1 – 4 of 4) sorted by relevance
/busybox-1.35.0/libbb/ |
D | read_printf.c | 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() [all …]
|
D | fgets_str.c | 12 … *xmalloc_fgets_internal(FILE *file, const char *terminating_string, int chop_off, size_t *maxsz_p) in xmalloc_fgets_internal() argument 20 size_t maxsz = maxsz_p ? *maxsz_p : INT_MAX - 4095; in xmalloc_fgets_internal() 56 if (maxsz_p) in xmalloc_fgets_internal() 57 *maxsz_p = idx; in xmalloc_fgets_internal() 70 char* FAST_FUNC xmalloc_fgets_str_len(FILE *file, const char *terminating_string, size_t *maxsz_p) in xmalloc_fgets_str_len() argument 72 return xmalloc_fgets_internal(file, terminating_string, 0, maxsz_p); in xmalloc_fgets_str_len()
|
/busybox-1.35.0/archival/libarchive/ |
D | open_transformer.c | 323 void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) in xmalloc_open_zipped_read_close() argument 336 xstate->mem_output_size_max = maxsz_p ? *maxsz_p : (size_t)(INT_MAX - 4095); in xmalloc_open_zipped_read_close() 340 if (maxsz_p) in xmalloc_open_zipped_read_close() 341 *maxsz_p = xstate->mem_output_size; in xmalloc_open_zipped_read_close() 357 maxsz_p, in xmalloc_open_zipped_read_close() 378 image = xmalloc_read(fd, maxsz_p); in xmalloc_open_zipped_read_close()
|
/busybox-1.35.0/include/ |
D | libbb.h | 976 extern char *xmalloc_reads(int fd, size_t *maxsz_p) FAST_FUNC; 978 extern void *xmalloc_read(int fd, size_t *maxsz_p) FAST_FUNC RETURNS_MALLOC; 979 extern void *xmalloc_read_with_initial_buf(int fd, size_t *maxsz_p, char *buf, size_t total) FAST_F… 981 extern void *xmalloc_open_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALLO… 983 extern void *xmalloc_xopen_read_close(const char *filename, size_t *maxsz_p) FAST_FUNC RETURNS_MALL… 1009 extern void *xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_p) FAST_FUNC RETURNS_M… 1013 # define xmalloc_open_zipped_read_close(fname, maxsz_p) xmalloc_open_read_close((fname), (maxsz_p)) argument 1043 extern char *xmalloc_fgets_str_len(FILE *file, const char *terminating_string, size_t *maxsz_p) FAS…
|