Lines Matching refs:toys
54 unsigned crc = (toys.optflags & FLAG_P) ? 0xffffffff : 0; in do_cksum()
59 cksum = (toys.optflags & FLAG_L) ? cksum_le : cksum_be; in do_cksum()
74 if (!(toys.optflags & FLAG_N)) { in do_cksum()
81 printf((toys.optflags & FLAG_H) ? "%08x" : "%u", in do_cksum()
82 (toys.optflags & FLAG_I) ? crc : ~crc); in do_cksum()
83 if (!(toys.optflags&FLAG_N)) printf(" %"PRIu64, llen2); in do_cksum()
84 if (toys.optc) printf(" %s", name); in do_cksum()
90 crc_init(TT.crc_table, toys.optflags & FLAG_L); in cksum_main()
91 loopfiles(toys.optargs, do_cksum); in cksum_main()
96 toys.optflags |= FLAG_H|FLAG_N|FLAG_P|FLAG_L; in crc32_main()
97 if (toys.optc) toys.optc--; in crc32_main()