diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-21 02:23:30 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-09-21 02:23:30 +0000 |
commit | 46af57411c3b803e093777c128ce8fc165cc294f (patch) | |
tree | 23a5f54bcbf8aea8f08ae85f8397b7add91bf79f /util-linux | |
parent | ca9a388b21fba3ea6890d005e52fb03a7a1e23b3 (diff) | |
download | busybox-w32-46af57411c3b803e093777c128ce8fc165cc294f.tar.gz busybox-w32-46af57411c3b803e093777c128ce8fc165cc294f.tar.bz2 busybox-w32-46af57411c3b803e093777c128ce8fc165cc294f.zip |
Large file >2Gib support.
git-svn-id: svn://busybox.net/trunk/busybox@1082 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/more.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util-linux/more.c b/util-linux/more.c index 12168b519..45b7c1274 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -123,7 +123,11 @@ extern int more_main(int argc, char **argv) | |||
123 | lines = 0; | 123 | lines = 0; |
124 | len = fprintf(stdout, "--More-- "); | 124 | len = fprintf(stdout, "--More-- "); |
125 | if (file != stdin) { | 125 | if (file != stdin) { |
126 | #if _FILE_OFFSET_BITS == 64 | ||
127 | len += fprintf(stdout, "(%d%% of %lld bytes)", | ||
128 | #else | ||
126 | len += fprintf(stdout, "(%d%% of %ld bytes)", | 129 | len += fprintf(stdout, "(%d%% of %ld bytes)", |
130 | #endif | ||
127 | (int) (100 * | 131 | (int) (100 * |
128 | ((double) ftell(file) / | 132 | ((double) ftell(file) / |
129 | (double) st.st_size)), | 133 | (double) st.st_size)), |