summaryrefslogtreecommitdiffstats
path: root/src/sum.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:11:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:11:47 +0000
commit758f820bcc0f68aeebac1717e537ca13a320b909 (patch)
tree48111ece75cf4f98316848b37a7e26356e00669e /src/sum.h
parentInitial commit. (diff)
downloadcoreutils-758f820bcc0f68aeebac1717e537ca13a320b909.tar.xz
coreutils-758f820bcc0f68aeebac1717e537ca13a320b909.zip
Adding upstream version 9.1.upstream/9.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/sum.h')
-rw-r--r--src/sum.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sum.h b/src/sum.h
new file mode 100644
index 0000000..e1cf8a7
--- /dev/null
+++ b/src/sum.h
@@ -0,0 +1,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,
+ uintmax_t length);
+
+extern void
+output_sysv (char const *file, int binary_file, void const *digest,
+ bool tagged, unsigned char delim, bool args,
+ uintmax_t length);