mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 11:19:52 +00:00
Hash the followed target content with CRC-32 (hash.c/hash.h) and emit a FINGERPRINT field for non-directory records in create.c. Schema: TYPE|MODE|UID|GID|MTIME|SIZE|FINGERPRINT|TARGET per SPEC §17/§18.
10 lines
109 B
C
10 lines
109 B
C
#ifndef HASH_H
|
|
#define HASH_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
uint32_t crc32(FILE *stream);
|
|
|
|
#endif
|