Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 8 of 8) sorted by relevance

/coreutils/src/
Dcat.c157 simple_cat (char *buf, idx_t bufsize) in simple_cat() argument
165 size_t n_read = safe_read (input_desc, buf, bufsize); in simple_cat()
768 idx_t bufsize; in main() local
769 if (ckd_mul (&bufsize, insize, 4) in main()
770 || ckd_add (&bufsize, bufsize, outsize) in main()
771 || ckd_add (&bufsize, bufsize, LINE_COUNTER_BUF_LEN - 1)) in main()
773 char *outbuf = xalignalloc (page_size, bufsize); in main()
Dsplit.c280 copy_to_tmpfile (int fd, char *buf, idx_t bufsize) in copy_to_tmpfile() argument
288 while (0 < (r = read (fd, buf, bufsize))) in copy_to_tmpfile()
315 input_file_size (int fd, struct stat const *st, char *buf, idx_t bufsize) in input_file_size() argument
320 ssize_t n_read = read (fd, buf + size, bufsize - size); in input_file_size()
325 while (size < bufsize); in input_file_size()
333 char *tmpbuf = xmalloc (bufsize); in input_file_size()
334 end = copy_to_tmpfile (fd, tmpbuf, bufsize); in input_file_size()
650 char *buf, idx_t bufsize, ssize_t initial_read, in bytes_split() argument
666 eof = n_read < bufsize; in bytes_split()
677 n_read = read (STDIN_FILENO, buf, bufsize); in bytes_split()
[all …]
Dbasenc.c282 idx_t bufsize; member
320 ctx->bufsize = DEC_BLOCKSIZE; in init_inbuf()
321 ctx->inbuf = xcharalloc (ctx->bufsize); in init_inbuf()
327 if (ctx->bufsize < inlen) in prepare_inbuf()
329 ctx->bufsize = inlen * 2; in prepare_inbuf()
330 ctx->inbuf = xnrealloc (ctx->inbuf, ctx->bufsize, sizeof (char)); in prepare_inbuf()
Dsort.c2142 size_t bufsize = sizeof stackbuf; in compare_random() local
2171 if (bufsize < guess_bufsize) in compare_random()
2173 bufsize = MAX (guess_bufsize, bufsize * 3 / 2); in compare_random()
2175 buf = allocated = malloc (bufsize); in compare_random()
2179 bufsize = sizeof stackbuf; in compare_random()
2184 (texta < lima ? xstrxfrm (buf, texta, bufsize) + 1 : 0); in compare_random()
2185 bool a_fits = sizea <= bufsize; in compare_random()
2189 (a_fits ? bufsize - sizea : 0)) in compare_random()
2193 if (! (a_fits && sizea + sizeb <= bufsize)) in compare_random()
2195 bufsize = sizea + sizeb; in compare_random()
[all …]
Dod.c1453 size_t bufsize = MAX (100, string_min); in dump_strings() local
1454 char *buf = xmalloc (bufsize); in dump_strings()
1489 if (i == bufsize) in dump_strings()
1491 buf = X2REALLOC (buf, &bufsize); in dump_strings()
Dpr.c1669 size_t bufsize in init_header() local
1671 buf = xmalloc (bufsize); in init_header()
1672 nstrftime (buf, bufsize, date_format, &tm, localtz, ns); in init_header()
Dls.c258 static size_t quote_name_buf (char **inbuf, size_t bufsize, char *name,
4529 quote_name_buf (char **inbuf, size_t bufsize, char *name, in quote_name_buf() argument
4546 len = quotearg_buffer (buf, bufsize, name, -1, options); in quote_name_buf()
4547 if (bufsize <= len) in quote_name_buf()
4558 if (bufsize <= len) in quote_name_buf()
/coreutils/gl/lib/
Drandread.c130 get_nonce (void *buffer, size_t bufsize) in get_nonce() argument
132 char *buf = buffer, *buflim = buf + bufsize; in get_nonce()