bsd-sysv-checksum
1 Usage
7.8

bsd-sysv-checksum

David Wilson

 (require bsd-sysv-checksum) package: bsd-sysv-checksum

Allows for calculation of BSD and System V checksums of files. Uses code from GNU Coreutils and gnulib.

    1 Usage

1 Usage

> (require bsd-sysv-checksum)

> (get-bsd-sum "main.rkt") ’("59899" 2)

> (get-sysv-sum "main.rkt") ’("15444" 4)

get-bsd-sum and get-sysv-sum both return a list of two elements:

1. The checksum 2. The number of blocks in the file (512-byte blocks for sysv-sum; 1024-byte blocks for bsd-sum)