Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 19 of 19) sorted by relevance

/coreutils/src/
Dsum.c43 size_t sum, n; in bsd_sum_stream() local
55 sum = 0; in bsd_sum_stream()
60 n = fread (buffer + sum, 1, buffer_length - sum, stream); in bsd_sum_stream()
61 sum += n; in bsd_sum_stream()
63 if (buffer_length == sum) in bsd_sum_stream()
77 for (size_t i = 0; i < sum; i++) in bsd_sum_stream()
83 if (total_bytes + sum < total_bytes) in bsd_sum_stream()
88 total_bytes += sum; in bsd_sum_stream()
93 for (size_t i = 0; i < sum; i++) in bsd_sum_stream()
99 if (total_bytes + sum < total_bytes) in bsd_sum_stream()
[all …]
Dbasenc.c1091 idx_t sum; in do_encode() local
1100 sum = 0; in do_encode()
1103 n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in); in do_encode()
1104 sum += n; in do_encode()
1106 while (!feof (in) && !ferror (in) && sum < ENC_BLOCKSIZE); in do_encode()
1108 if (sum > 0) in do_encode()
1112 base_encode (inbuf, sum, outbuf, BASE_LENGTH (sum)); in do_encode()
1114 wrap_write (outbuf, BASE_LENGTH (sum), wrap_column, in do_encode()
1118 while (!feof (in) && !ferror (in) && sum == ENC_BLOCKSIZE); in do_encode()
1134 idx_t sum; in do_decode() local
[all …]
D.gitignore94 sum
Dod.c601 int sum; in simple_strtoi() local
603 for (sum = 0; ISDIGIT (*s); s++) in simple_strtoi()
604 if (ckd_mul (&sum, sum, 10) || ckd_add (&sum, sum, *s - '0')) in simple_strtoi()
607 *val = sum; in simple_strtoi()
Dlocal.mk412 src_sum_SOURCES = src/sum.c src/sum.h src/digest.c
433 src_cksum_SOURCES = $(src_b2sum_SOURCES) src/sum.c src/sum.h \
Ddu.c111 uintmax_t sum = a->size + b->size; in duinfo_add() local
112 a->size = a->size <= sum ? sum : UINTMAX_MAX; in duinfo_add()
/coreutils/src/blake2/
Db2sum.c36 size_t sum, n;
47 sum = 0;
51 n = fread( buffer + sum, 1, buffer_length - sum, stream );
52 sum += n;
54 if( buffer_length == sum )
74 if( sum > 0 ) blake2s_update( S, buffer, sum );
87 size_t sum, n; in blake2b_stream() local
98 sum = 0; in blake2b_stream()
102 n = fread( buffer + sum, 1, buffer_length - sum, stream ); in blake2b_stream()
103 sum += n; in blake2b_stream()
[all …]
/coreutils/tests/cksum/
Dsum-sysv.sh26 print_ver_ sum
34 | sum -s > out || fail=1
44 | sum -s > out || fail=1
Dcksum-a.sh23 bsd sum -r
24 sysv sum -s
/coreutils/man/
Dsum.x2 sum \- checksum and count the blocks in a file
D.gitignore83 sum.1
Dlocal.mk153 man/sum.1: src/sum$(EXEEXT)
/coreutils/scripts/git-hooks/
Dcommit-msg24 sum sync tac tail tee test timeout touch tr true truncate tsort
27 all copy gnulib tests maint doc build scripts sha\*sum digest
/coreutils/
DAUTHORS88 sum: Kayvan Aghaiepour, David MacKenzie
DREADME16 sha384sum sha512sum shred shuf sleep sort split stat stdbuf stty sum sync
Dcfg.mk318 \|^[^:]*tests/cksum/sha[0-9]*sum.*\.pl[-:]| d; \
DNEWS177 This also applies to cksum, sha*sum, and b2sum.
600 sum [-r] will output a file name, even if only a single name is passed.
601 This is consistent with sum -s, cksum, and other sum(1) implementations.
606 of the existing sum, md5sum, b2sum, sha*sum implementations etc.
642 This also applies to cksum, sha*sum, and b2sum.
933 This also applies to sha*sum and b2sum.
1064 ignoring some non checksum lines. This also affects sha*sum and b2sum.
1228 starting with "00" as missing. This also affects sha*sum.
3021 This also affected sum, sha1sum, sha224sum, sha384sum and sha512sum.
3911 of bytes to skip is exactly the sum of the lengths of the first N files,
/coreutils/tests/
Dlocal.mk425 tests/cksum/sum.pl \
426 tests/cksum/sum-sysv.sh \
/coreutils/doc/
Dcoreutils.texi120 * sum: (coreutils)sum invocation. Print traditional checksum.
193 * Summarizing files:: wc sum cksum b2sum md5sum sha1sum sha2
267 * sum invocation:: Print checksum and block counts
3775 * sum invocation:: Print checksum and block counts.
3832 prints the maximum (not the sum) of those lengths. The line lengths here
3945 @node sum invocation
3946 @section @command{sum}: Print checksum and block counts
3948 @pindex sum
3952 @command{sum} computes a 16-bit checksum for each given @var{file}, or
3956 sum [@var{option}]@dots{} [@var{file}]@dots{}
[all …]