diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-10-05 14:44:36 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-10-05 14:44:36 +0200 |
commit | b4a8090f75c90ec26133344b00a085025da212aa (patch) | |
tree | 9cc00368c48542853cf22621450009582b76ec51 /blaze822.h | |
parent | 0b2e4880f5c80a97a8c4577591210185669ddb4a (diff) | |
download | mblaze-b4a8090f75c90ec26133344b00a085025da212aa.tar.gz mblaze-b4a8090f75c90ec26133344b00a085025da212aa.tar.xz mblaze-b4a8090f75c90ec26133344b00a085025da212aa.zip |
seq: slurp the file instead of mmap
mmap is not robust when there are writes possible.
Diffstat (limited to 'blaze822.h')
-rw-r--r-- | blaze822.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |