summaryrefslogtreecommitdiffstats
path: root/src/sum.h
blob: 1681697aba4573df488f64b8f446bfbe00654364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern int
bsd_sum_stream (FILE *stream, void *resstream, uintmax_t *length);

extern int
sysv_sum_stream (FILE *stream, void *resstream, uintmax_t *length);

typedef int (*sumfn)(FILE *, void *, uintmax_t*);


extern void
output_bsd (char const *file, int binary_file, void const *digest,
            bool tagged, unsigned char delim, bool args _GL_UNUSED,
            uintmax_t length _GL_UNUSED);

extern void
output_sysv (char const *file, int binary_file, void const *digest,
             bool tagged, unsigned char delim, bool args _GL_UNUSED,
             uintmax_t length _GL_UNUSED);