/coreutils/src/ |
D | wc.c | 212 uintmax_t bytes, in write_counts() argument 238 printf (format_int, number_width, umaxtostr (bytes, buf)); in write_counts() 260 intmax_t lines = 0, bytes = 0; in wc_lines() local 268 return (struct wc_lines) { bytes_read == 0 ? 0 : errno, lines, bytes }; in wc_lines() 270 bytes += bytes_read; in wc_lines() 308 intmax_t lines, words, chars, bytes, linelength; in wc() local 312 lines = words = chars = bytes = linelength = 0; in wc() 369 bytes = end_pos < current_pos ? 0 : end_pos - current_pos; in wc() 370 if (bytes && 0 <= lseek (fd, bytes, SEEK_CUR)) in wc() 373 bytes = 0; in wc() [all …]
|
D | wc_avx2.c | 35 intmax_t bytes = 0; in wc_lines_avx2() local 54 return (struct wc_lines) { bytes_read == 0 ? 0 : errno, lines, bytes }; in wc_lines_avx2() 56 bytes += bytes_read; in wc_lines_avx2()
|
D | pinky.c | 362 size_t bytes; in print_long_entry() local 366 while ((bytes = fread (buf, 1, sizeof (buf), stream)) > 0) in print_long_entry() 367 fwrite (buf, 1, bytes, stdout); in print_long_entry() 386 size_t bytes; in print_long_entry() local 390 while ((bytes = fread (buf, 1, sizeof (buf), stream)) > 0) in print_long_entry() 391 fwrite (buf, 1, bytes, stdout); in print_long_entry()
|
D | wc.h | 2 struct wc_lines { int err; intmax_t lines; intmax_t bytes; }; member
|
D | printf.c | 178 ssize_t bytes; \ 180 bytes = mbrtowc (&wc, s, slen, &mbstate); \ 181 if (0 < bytes) \ 184 s += bytes - 1; \
|
D | dd.c | 1795 idx_t *bytes) in skip() argument 1804 && ! ckd_add (&offset, offset, *bytes) in skip() 1828 *bytes = 0; in skip() 1883 ssize_t nread = iread_fnc (fdesc, buf, records ? blocksize : *bytes); in skip() 1904 *bytes = 0; in skip() 1906 while (records || *bytes); in skip() 2136 idx_t bytes = seek_bytes; in dd_copy() local 2138 seek_records, output_blocksize, &bytes); in dd_copy() 2140 if (write_records != 0 || bytes != 0) in dd_copy() 2142 memset (obuf, 0, write_records ? output_blocksize : bytes); in dd_copy() [all …]
|
D | split.c | 619 cwrite (bool new_file_flag, char const *bp, idx_t bytes) in cwrite() argument 623 if (!bp && bytes == 0 && elide_empty_files) in cwrite() 632 if (full_write (output_desc, bp, bytes) == bytes) in cwrite()
|
D | ls.c | 4616 size_t bytes; in quote_name_buf() local 4619 bytes = mbrtoc32 (&wc, p, plimit - p, &mbstate); in quote_name_buf() 4621 if (bytes == (size_t) -1) in quote_name_buf() 4632 if (bytes == (size_t) -2) in quote_name_buf() 4643 if (bytes == 0) in quote_name_buf() 4645 bytes = 1; in quote_name_buf() 4652 for (; bytes > 0; --bytes) in quote_name_buf() 4661 p += bytes; in quote_name_buf()
|
/coreutils/tests/split/ |
D | fail.sh | 48 split --bytes=$OFF_T_MAX in || fail=1 49 split --line-bytes=$OFF_T_OFLOW in || fail=1 50 split --line-bytes=$SIZE_OFLOW in || fail=1
|
/coreutils/tests/od/ |
D | od-j.sh | 26 bytes=$(wc -c < copy) || framework_failure_ 29 od -An -j $bytes $file $file > out || fail=1
|
/coreutils/tests/dd/ |
D | reblock.sh | 26 4 bytes copied 33 4 bytes copied
|
/coreutils/tests/rm/ |
D | rm5.sh | 44 tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' > o2
|
D | rm3.sh | 54 tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' |sort > o2
|
/coreutils/tests/head/ |
D | head-write-error.sh | 36 for item in lines bytes; do
|
D | head-c.sh | 45 (ulimit -v $(($vm+8000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1
|
/coreutils/ |
D | TODO | 21 like _("truncating %s at %jd bytes") to work portably. 78 test case was 140,213,394 bytes, 426,4424 lines, text taken from the
|
D | NEWS | 409 by misdetecting their component bytes as spaces. 450 dd now counts bytes instead of blocks if a block count ends in "B". 743 od --skip-bytes now can use lseek even if the input is not a regular 976 tail --bytes again supports non seekable inputs on all systems. 994 tail --bytes=NUM will efficiently seek to the end of block devices, 1084 number of bytes matched) with 'match'/':' operators on multibyte strings. 1152 wc --bytes --files0-from now correctly reports byte counts. 1385 E.g., "3441325000 bytes (3.4 GB, 3.2 GiB) copied". It omits the summaries 1386 if they would not provide useful information, e.g., "3 bytes copied". 1647 head --bytes=-N and --lines=-N now handles devices more [all …]
|
D | init.cfg | 325 || skip_ "this test needs at least $req bytes of free space"
|
/coreutils/doc/ |
D | sort-version.texi | 164 bytes is determined. 177 ASCII letters sort before other bytes. 333 5 @r{vs} empty string @r{(no more bytes in the file name)} 398 before other bytes, and before an empty string. 423 Based on rule 2.B.b, tilde @samp{~} sorts before other bytes 444 Most commonly, Unicode characters are encoded as UTF-8 bytes; for
|
D | coreutils.texi | 661 1,000,000 bytes. This option is equivalent to 674 Powers of 1024 are used, not 1000; @samp{M} stands for 1,048,576 bytes. 942 currently defaults to 1024 bytes in most contexts, but this number may 950 of bytes per block, or it can be @code{human-readable} or @code{si} to 961 powers of 1024; @samp{M} stands for 1,048,576 bytes. 963 @samp{B}; @samp{MB} stands for 1,000,000 bytes. 970 of 1234000 bytes to be displayed as @samp{1,234}. In the default C 1219 An error is reported if @var{file} does not contain enough bytes. 1988 If @var{offset} is given, it specifies how many input bytes to skip 1993 number. If there is a trailing @samp{b}, the number of bytes skipped [all …]
|
/coreutils/tests/ |
D | local.mk | 407 tests/split/line-bytes.sh \ 552 tests/dd/bytes.sh \
|