From b4a8090f75c90ec26133344b00a085025da212aa Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 5 Oct 2016 14:44:36 +0200 Subject: seq: slurp the file instead of mmap mmap is not robust when there are writes possible. --- blaze822.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'blaze822.h') diff --git a/blaze822.h b/blaze822.h index e06c8a7..f466779 100644 --- a/blaze822.h +++ b/blaze822.h @@ -77,3 +77,8 @@ int filter(char *input, size_t inlen, char *cmd, char **outputo, size_t *outleno // mygmtime.c time_t tm_to_secs(const struct tm *tm); + + +// slurp.c + +int slurp(char *filename, char **bufo, off_t *leno); -- cgit 1.4.1