From 8a2e56c5dfc41f6946e36234eef4df559286db05 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Sep 2000 02:23:30 +0000 Subject: Large file >2Gib support. --- util-linux/more.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util-linux') diff --git a/util-linux/more.c b/util-linux/more.c index 12168b5..45b7c12 100644 --- a/util-linux/more.c +++ b/util-linux/more.c @@ -123,7 +123,11 @@ extern int more_main(int argc, char **argv) lines = 0; len = fprintf(stdout, "--More-- "); if (file != stdin) { +#if _FILE_OFFSET_BITS == 64 + len += fprintf(stdout, "(%d%% of %lld bytes)", +#else len += fprintf(stdout, "(%d%% of %ld bytes)", +#endif (int) (100 * ((double) ftell(file) / (double) st.st_size)), -- cgit v1.1