Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 28) sorted by relevance

12

/coreutils/src/
Dsum.h2 bsd_sum_stream (FILE *stream, void *resstream, uintmax_t *length);
5 sysv_sum_stream (FILE *stream, void *resstream, uintmax_t *length);
13 uintmax_t length);
18 uintmax_t length);
Dpathchk.c339 size_t length = component_len (start); in validate_file_name() local
341 if (NAME_MAX_MINIMUM < length) in validate_file_name()
347 start += length; in validate_file_name()
364 idx_t length; in validate_file_name() local
400 length = component_len (start); in validate_file_name()
402 if (name_max < length) in validate_file_name()
404 char c = start[length]; in validate_file_name()
405 start[length] = '\0'; in validate_file_name()
409 name_max, length, quote (start)); in validate_file_name()
410 start[length] = c; in validate_file_name()
[all …]
Dcksum.c167 uintmax_t length = 0; in cksum_slice8() local
177 if (length + bytes_read < length) in cksum_slice8()
182 length += bytes_read; in cksum_slice8()
211 *length_out = length; in cksum_slice8()
220 crc_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in crc_sum_stream() argument
236 *length = total_bytes; in crc_sum_stream()
253 bool tagged, unsigned char delim, bool args, uintmax_t length) in output_crc() argument
264 printf ("%u %s", *(unsigned int *)digest, umaxtostr (length, length_buf)); in output_crc()
Dsum.c40 bsd_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in bsd_sum_stream() argument
107 *length = total_bytes; in bsd_sum_stream()
118 sysv_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sysv_sum_stream() argument
182 *length = total_bytes; in sysv_sum_stream()
195 uintmax_t length) in output_bsd() argument
208 human_readable (length, hbuf, human_ceiling, 1, 1024)); in output_bsd()
220 uintmax_t length) in output_sysv() argument
233 human_readable (length, hbuf, human_ceiling, 1, 512)); in output_sysv()
Dcomm.c198 fwrite (line->buffer, sizeof (char), line->length, stdout); in writeline()
229 order = xmemcoll (prev->buffer, prev->length - 1, in check_order()
230 current->buffer, current->length - 1); in check_order()
232 order = memcmp2 (prev->buffer, prev->length - 1, in check_order()
233 current->buffer, current->length - 1); in check_order()
318 order = xmemcoll (thisline[0]->buffer, thisline[0]->length - 1, in compare_files()
319 thisline[1]->buffer, thisline[1]->length - 1); in compare_files()
322 size_t len = min (thisline[0]->length, thisline[1]->length) - 1; in compare_files()
325 order = ((thisline[0]->length > thisline[1]->length) in compare_files()
326 - (thisline[0]->length < thisline[1]->length)); in compare_files()
Ddigest.c170 uintmax_t length);
243 md5_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in md5_sum_stream() argument
248 sha1_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha1_sum_stream() argument
253 sha224_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha224_sum_stream() argument
258 sha256_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha256_sum_stream() argument
263 sha384_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha384_sum_stream() argument
268 sha512_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha512_sum_stream() argument
273 blake2b_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in blake2b_sum_stream() argument
275 return blake2b_stream (stream, resstream, *length); in blake2b_sum_stream()
278 sm3_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sm3_sum_stream() argument
[all …]
Dcksum.h7 crc_sum_stream (FILE *stream, void *resstream, uintmax_t *length);
11 bool tagged, unsigned char delim, bool args, uintmax_t length)
Dtr.c155 count length; member
1168 MAYBE_UNUSED count old_s1_len = s1->length, old_s2_len = s2->length; in validate_case_classes()
1208 s1->length -= (class_s1 == UL_UPPER ? n_upper : n_lower) - 1; in validate_case_classes()
1209 s2->length -= (class_s2 == UL_UPPER ? n_upper : n_lower) - 1; in validate_case_classes()
1216 affirm (old_s1_len >= s1->length && old_s2_len >= s2->length); in validate_case_classes()
1239 count length = 0; in get_spec_stats() local
1302 new_length = length + len; in get_spec_stats()
1303 if (! (length <= new_length && new_length <= REPEAT_COUNT_MAXIMUM)) in get_spec_stats()
1305 length = new_length; in get_spec_stats()
1308 s->length = length; in get_spec_stats()
[all …]
Dcksum_pclmul.c40 uintmax_t length = 0; in cksum_pclmul() local
73 if (length + bytes_read < length) in cksum_pclmul()
78 length += bytes_read; in cksum_pclmul()
186 *length_out = length; in cksum_pclmul()
Dsystem.h509 is_nul (void const *buf, size_t length) in is_nul() argument
524 if (! length) in is_nul()
528 while (UNLIKELY (length & (sizeof word - 1))) in is_nul()
533 length--; in is_nul()
534 if (! length) in is_nul()
545 length -= sizeof word; in is_nul()
546 if (! length) in is_nul()
548 if (UNLIKELY (length & 15) == 0) in is_nul()
553 return memcmp (buf, p, length) == 0; in is_nul()
Dptx.c126 ptrdiff_t length; /* number of used entries */ member
297 int length; /* length of \nnn escape */ in unescape_string() local
310 for (length = 0, string++; in unescape_string()
311 length < 3 && isxdigit (to_uchar (*string)); in unescape_string()
312 length++, string++) in unescape_string()
314 if (length == 0) in unescape_string()
325 for (length = 0, string++; in unescape_string()
326 length < 3 && ISODIGIT (*string); in unescape_string()
327 length++, string++) in unescape_string()
542 ptrdiff_t length; /* minimum of two lengths */ in compare_words() local
[all …]
Duniq.c259 size_t size = line->length - 1; in find_field()
312 if (fwrite (line->buffer, sizeof (char), line->length, stdout) in writeline()
313 != line->length) in writeline()
370 thislen = thisline->length - 1 - (thisfield - thisline->buffer); in check_file()
383 if (fwrite (thisline->buffer, sizeof (char), thisline->length, in check_file()
384 stdout) != thisline->length) in check_file()
406 prevlen = prevline->length - 1 - (prevfield - prevline->buffer); in check_file()
420 thislen = thisline->length - 1 - (thisfield - thisline->buffer); in check_file()
Dfmt.c136 int length; /* length of this word */ member
700 in_column += word_limit->length = wptr - word_limit->text; in get_line()
781 char const *finish = start + (w->length - 1); in check_punctuation()
867 saved_length = word_limit->length; in fmt_paragraph()
868 word_limit->length = max_width; /* sentinel */ in fmt_paragraph()
878 len += w->length; in fmt_paragraph()
902 len += (w - 1)->space + w->length; /* w > start >= word */ in fmt_paragraph()
908 word_limit->length = saved_length; in fmt_paragraph()
938 cost += WIDOW_COST ((this - 1)->length); in base_cost()
944 cost += ORPHAN_COST (this->length); in base_cost()
[all …]
Dnl.c346 if (1 < line_buf.length || ++blank_lines == blank_join) in proc_text()
358 if (1 < line_buf.length) in proc_text()
367 switch (re_search (current_regex, line_buf.buffer, line_buf.length - 1, in proc_text()
368 0, line_buf.length - 1, nullptr)) in proc_text()
382 fwrite (line_buf.buffer, sizeof (char), line_buf.length, stdout); in proc_text()
390 size_t len = line_buf.length - 1; in check_section()
Dprintf.c341 print_direc (char const *start, size_t length, char conversion, in print_direc() argument
375 p = xmalloc (length + length_modifier_len + 2); in print_direc()
376 q = mempcpy (p, start, length); in print_direc()
Dsort.c178 size_t length; /* Length including final newline. */ member
1616 char *ptr = line->text, *lim = ptr + line->length - 1; in begfield()
1659 char *ptr = line->text, *lim = ptr + line->length - 1; in limfield()
1785 char *line_start = buf->nlines ? line->text + line->length : buf->buf; in fillbuf()
1824 line->length = ptr - line_start; in fillbuf()
1825 mergesize = MAX (mergesize, line->length); in fillbuf()
2309 char *lim = text + line->length - 1; in debug_key()
2789 lima = a->text + a->length - 1, limb = b->text + b->length - 1; in keycompare()
2830 alen = a->length - 1, blen = b->length - 1; in compare()
2863 size_t n_bytes = line->length; in write_line()
[all …]
Dshuf.c243 if (fwrite (p->buffer, sizeof (char), p->length, stdout) != p->length) in write_permuted_output_reservoir()
Djoin.c275 char const *lim = ptr + line->buf.length - 1; in xfields()
408 idx_t len = current->buf.length; in check_order()
Ddd.c1341 iftruncate (int fd, off_t length) in iftruncate() argument
1348 ret = ftruncate (fd, length); in iftruncate()
/coreutils/tests/pwd/
Dpwd-long.sh111 my $e_len = length $expected;
112 my $a_len = length $actual;
/coreutils/tests/
Dfilefrag-extent-compare64 # last extent can vary, and can extend beyond the length of the file.
65 # So we ignore the length of the last extent, because if the
66 # file is the wrong length we'll get failures elsewhere.
Dlocal.mk401 tests/split/suffix-auto-length.sh \
402 tests/split/suffix-length.sh \
/coreutils/scripts/git-hooks/
Dcommit-msg116 2 <= @line && length $line[1]
119 # Limit line length to allow for the ChangeLog's leading TAB.
124 my $len = length $line;
126 and return "line length ($len) greater than than max: $max_len";
/coreutils/tests/cksum/
Db2sum.sh53 $prog $tag_opt --length=128 check.vals > out.tmp || fail=1
/coreutils/doc/
Dcoreutils.texi382 * String expressions:: @code{+ : match substr index length}
2390 When encoding with @option{--z85}, input length must be a multiple of 4;
2391 when decoding with @option{--z85}, input length must be a multiple of 5.
2628 Lines of full length are joined in a free field format and @option{-S}
2699 not alter the default page length of 66 lines.
2723 Merge lines of full length. Used together with the column options
2734 @itemx --length=@var{page_length}
2736 @opindex --length
2737 Set the page length to @var{page_length} (default 66) lines, including
2866 Lines of full length are merged, regardless of the column options
[all …]

12