Home | History | Annotate | Download | only in posix

Lines Matching refs:cksum

0 /* cksum.c - produce crc32 checksum value for each input
5 * See http://opengroup.org/onlinepubs/9699919799/utilities/cksum.html
7 USE_CKSUM(NEWTOY(cksum, "HIPLN", TOYFLAG_BIN))
10 config CKSUM
11 bool "cksum"
14 usage: cksum [-IPLN] [file...]
56 unsigned (*cksum)(unsigned crc, unsigned char c);
59 cksum = (toys.optflags & FLAG_L) ? cksum_le : cksum_be;
68 for (i=0; i<len; i++) crc=cksum(crc, toybuf[i]);
76 crc = cksum(crc, llen);