Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 21 of 21) sorted by relevance

/coreutils/src/
Dwc.c212 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 …]
Dwc_avx2.c35 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()
Dpinky.c362 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()
Dwc.h2 struct wc_lines { int err; intmax_t lines; intmax_t bytes; }; member
Dprintf.c178 ssize_t bytes; \
180 bytes = mbrtowc (&wc, s, slen, &mbstate); \
181 if (0 < bytes) \
184 s += bytes - 1; \
Ddd.c1795 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 …]
Dsplit.c619 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()
Dls.c4616 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/
Dfail.sh48 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/
Dod-j.sh26 bytes=$(wc -c < copy) || framework_failure_
29 od -An -j $bytes $file $file > out || fail=1
/coreutils/tests/dd/
Dreblock.sh26 4 bytes copied
33 4 bytes copied
/coreutils/tests/rm/
Drm5.sh44 tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' > o2
Drm3.sh54 tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' |sort > o2
/coreutils/tests/head/
Dhead-write-error.sh36 for item in lines bytes; do
Dhead-c.sh45 (ulimit -v $(($vm+8000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1
/coreutils/
DTODO21 like _("truncating %s at %jd bytes") to work portably.
78 test case was 140,213,394 bytes, 426,4424 lines, text taken from the
DNEWS409 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 …]
Dinit.cfg325 || skip_ "this test needs at least $req bytes of free space"
/coreutils/doc/
Dsort-version.texi164 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
Dcoreutils.texi661 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/
Dlocal.mk407 tests/split/line-bytes.sh \
552 tests/dd/bytes.sh \