diff options
Diffstat (limited to 'src/cksum.c')
-rw-r--r-- | src/cksum.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cksum.c b/src/cksum.c index d240eb386..282c777aa 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -43,6 +43,7 @@ #include <sys/types.h> #include <stdint.h> #include "system.h" +#include "fadvise.h" #include "xfreopen.h" #ifdef CRCTAB @@ -205,6 +206,8 @@ cksum (const char *file, bool print_name) } } + fadvise (fp, FADVISE_SEQUENTIAL); + while ((bytes_read = fread (buf, 1, BUFLEN, fp)) > 0) { unsigned char *cp = buf; |