Lines Matching refs:buf

2738   char *buf;			/* color_buf buffer pointer */  in parse_ls_color()  local
2762 buf = color_buf = xstrdup (p); in parse_ls_color()
2788 ext->ext.string = buf; in parse_ls_color()
2790 state = (get_funky_string (&buf, &p, true, &ext->ext.len) in parse_ls_color()
2823 color_indicator[ind_no].string = buf; in parse_ls_color()
2824 state = (get_funky_string (&buf, &p, false, in parse_ls_color()
2838 ext->seq.string = buf; in parse_ls_color()
2839 state = (get_funky_string (&buf, &p, false, &ext->seq.len) in parse_ls_color()
3143 char buf[LONGEST_HUMAN_READABLE + 3]; in print_dir() local
3144 char *p = human_readable (total_blocks, buf + 1, human_output_opts, in print_dir()
3617 char buf[LONGEST_HUMAN_READABLE + 1]; in gobble_file() local
3618 int len = mbswidth (human_readable (blocks, buf, human_output_opts, in gobble_file()
3665 char buf[INT_BUFSIZE_BOUND (uintmax_t)]; in gobble_file() local
3666 int len = strlen (umaxtostr (major (f->stat.st_rdev), buf)); in gobble_file()
3669 len = strlen (umaxtostr (minor (f->stat.st_rdev), buf)); in gobble_file()
3678 char buf[LONGEST_HUMAN_READABLE + 1]; in gobble_file() local
3680 int len = mbswidth (human_readable (size, buf, in gobble_file()
3692 char buf[INT_BUFSIZE_BOUND (uintmax_t)]; in gobble_file() local
3693 int len = strlen (umaxtostr (f->stat.st_ino, buf)); in gobble_file()
4186 align_nstrftime (char *buf, size_t size, bool recent, struct tm const *tm, in align_nstrftime() argument
4192 return nstrftime (buf, size, nfmt, tm, tz, ns); in align_nstrftime()
4207 char buf[TIME_STAMP_LEN_MAXIMUM + 1]; in long_time_expected_width() local
4218 size_t len = align_nstrftime (buf, sizeof buf, false, in long_time_expected_width()
4221 width = mbsnwidth (buf, len, MBSWIDTH_FLAGS); in long_time_expected_width()
4303 format_inode (char buf[INT_BUFSIZE_BOUND (uintmax_t)], in format_inode()
4307 ? umaxtostr (f->stat.st_ino, buf) in format_inode()
4316 char buf in print_long_format() local
4368 p = buf; in print_long_format()
4405 dired_outbuf (buf, p - buf); in print_long_format()
4419 p = buf; in print_long_format()
4502 dired_outbuf (buf, p - buf); in print_long_format()
4503 size_t w = print_name_with_quoting (f, false, &dired_obstack, p - buf); in print_long_format()
4510 print_name_with_quoting (f, true, nullptr, (p - buf) + w + 4); in print_long_format()
4533 char *buf = *inbuf; in quote_name_buf() local
4546 len = quotearg_buffer (buf, bufsize, name, -1, options); in quote_name_buf()
4549 buf = xmalloc (len + 1); in quote_name_buf()
4550 quotearg_buffer (buf, len + 1, name, -1, options); in quote_name_buf()
4553 quoted = (*name != *buf) || strlen (name) != len; in quote_name_buf()
4559 buf = xmalloc (len + 1); in quote_name_buf()
4560 memcpy (buf, name, len + 1); in quote_name_buf()
4567 buf = name; in quote_name_buf()
4575 char const *p = buf; in quote_name_buf()
4576 char const *plimit = buf + len; in quote_name_buf()
4577 char *q = buf; in quote_name_buf()
4672 len = q - buf; in quote_name_buf()
4676 char *p = buf; in quote_name_buf()
4677 char const *plimit = buf + len; in quote_name_buf()
4692 displayed_width = mbsnwidth (buf, len, MBSWIDTH_FLAGS); in quote_name_buf()
4697 char const *p = buf; in quote_name_buf()
4698 char const *plimit = buf + len; in quote_name_buf()
4718 *inbuf = buf; in quote_name_buf()
4728 char *buf = smallbuf; in quote_name_width() local
4732 quote_name_buf (&buf, sizeof smallbuf, (char *) name, options, in quote_name_width()
4735 if (buf != smallbuf && buf != name) in quote_name_width()
4736 free (buf); in quote_name_width()
4772 char *buf = smallbuf; in quote_name() local
4776 len = quote_name_buf (&buf, sizeof smallbuf, (char *) name, options, in quote_name()
4794 putchar (*buf); in quote_name()
4811 fwrite (buf + skip_quotes, 1, len - (skip_quotes * 2), stdout); in quote_name()
4822 putchar (*(buf + len - 1)); in quote_name()
4825 if (buf != smallbuf && buf != name) in quote_name()
4826 free (buf); in quote_name()
4887 char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))]; in print_file_name_and_frills() local
4893 format_inode (buf, f)); in print_file_name_and_frills()
4898 : human_readable (STP_NBLOCKS (&f->stat), buf, human_output_opts, in print_file_name_and_frills()
5120 char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))]; in length_of_file_name_and_frills() local
5124 ? strlen (umaxtostr (f->stat.st_ino, buf)) in length_of_file_name_and_frills()
5130 : human_readable (STP_NBLOCKS (&f->stat), buf, in length_of_file_name_and_frills()