diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-05 23:26:44 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-05 23:26:44 +0000 |
commit | 250a22176815303f9af072a11278108f7767282b (patch) | |
tree | deb2971095d68588538830f0f0044ddf1eb5ae43 | |
parent | 83f173b61ec4df708d6ead45540ede3a28c2e630 (diff) | |
download | busybox-w32-250a22176815303f9af072a11278108f7767282b.tar.gz busybox-w32-250a22176815303f9af072a11278108f7767282b.tar.bz2 busybox-w32-250a22176815303f9af072a11278108f7767282b.zip |
more FILE_OFFSET_BITS == 64 adjustments.
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | libbb/libbb.h | 2 | ||||
-rw-r--r-- | ls.c | 2 | ||||
-rw-r--r-- | more.c | 8 | ||||
-rw-r--r-- | util-linux/more.c | 8 |
6 files changed, 12 insertions, 12 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 0b89ecce1..8f4cae10d 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -655,7 +655,7 @@ static int list_single(struct dnode *dn) | |||
655 | #endif | 655 | #endif |
656 | { | 656 | { |
657 | #if _FILE_OFFSET_BITS == 64 | 657 | #if _FILE_OFFSET_BITS == 64 |
658 | printf("%9lld ", dn->dstat.st_size); | 658 | printf("%9lld ", (long long)dn->dstat.st_size); |
659 | #else | 659 | #else |
660 | printf("%9ld ", dn->dstat.st_size); | 660 | printf("%9ld ", dn->dstat.st_size); |
661 | #endif | 661 | #endif |
diff --git a/include/libbb.h b/include/libbb.h index d0896ab86..05f61f25b 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -96,7 +96,7 @@ void reset_ino_dev_hashtable(void); | |||
96 | 96 | ||
97 | int copy_file(const char *srcName, const char *destName, | 97 | int copy_file(const char *srcName, const char *destName, |
98 | int setModes, int followLinks, int forceFlag); | 98 | int setModes, int followLinks, int forceFlag); |
99 | int copy_file_chunk(int srcFd, int dstFd, size_t remaining); | 99 | int copy_file_chunk(int srcFd, int dstFd, off_t remaining); |
100 | char *buildName(const char *dirName, const char *fileName); | 100 | char *buildName(const char *dirName, const char *fileName); |
101 | int makeString(int argc, const char **argv, char *buf, int bufLen); | 101 | int makeString(int argc, const char **argv, char *buf, int bufLen); |
102 | char *getChunk(int size); | 102 | char *getChunk(int size); |
diff --git a/libbb/libbb.h b/libbb/libbb.h index d0896ab86..05f61f25b 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h | |||
@@ -96,7 +96,7 @@ void reset_ino_dev_hashtable(void); | |||
96 | 96 | ||
97 | int copy_file(const char *srcName, const char *destName, | 97 | int copy_file(const char *srcName, const char *destName, |
98 | int setModes, int followLinks, int forceFlag); | 98 | int setModes, int followLinks, int forceFlag); |
99 | int copy_file_chunk(int srcFd, int dstFd, size_t remaining); | 99 | int copy_file_chunk(int srcFd, int dstFd, off_t remaining); |
100 | char *buildName(const char *dirName, const char *fileName); | 100 | char *buildName(const char *dirName, const char *fileName); |
101 | int makeString(int argc, const char **argv, char *buf, int bufLen); | 101 | int makeString(int argc, const char **argv, char *buf, int bufLen); |
102 | char *getChunk(int size); | 102 | char *getChunk(int size); |
@@ -655,7 +655,7 @@ static int list_single(struct dnode *dn) | |||
655 | #endif | 655 | #endif |
656 | { | 656 | { |
657 | #if _FILE_OFFSET_BITS == 64 | 657 | #if _FILE_OFFSET_BITS == 64 |
658 | printf("%9lld ", dn->dstat.st_size); | 658 | printf("%9lld ", (long long)dn->dstat.st_size); |
659 | #else | 659 | #else |
660 | printf("%9ld ", dn->dstat.st_size); | 660 | printf("%9ld ", dn->dstat.st_size); |
661 | #endif | 661 | #endif |
@@ -124,13 +124,13 @@ extern int more_main(int argc, char **argv) | |||
124 | if (file != stdin) { | 124 | if (file != stdin) { |
125 | #if _FILE_OFFSET_BITS == 64 | 125 | #if _FILE_OFFSET_BITS == 64 |
126 | len += printf("(%d%% of %lld bytes)", | 126 | len += printf("(%d%% of %lld bytes)", |
127 | (int) (100 * ((double) ftell(file) / | ||
128 | (double) st.st_size)), (long long)st.st_size); | ||
127 | #else | 129 | #else |
128 | len += printf("(%d%% of %ld bytes)", | 130 | len += printf("(%d%% of %ld bytes)", |
131 | (int) (100 * ((double) ftell(file) / | ||
132 | (double) st.st_size)), (long)st.st_size); | ||
129 | #endif | 133 | #endif |
130 | (int) (100 * | ||
131 | ((double) ftell(file) / | ||
132 | (double) st.st_size)), | ||
133 | st.st_size); | ||
134 | } | 134 | } |
135 | len += printf("%s", | 135 | len += printf("%s", |
136 | #ifdef BB_FEATURE_USE_TERMIOS | 136 | #ifdef BB_FEATURE_USE_TERMIOS |
diff --git a/util-linux/more.c b/util-linux/more.c index b89143e4d..1d918cf5c 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -124,13 +124,13 @@ extern int more_main(int argc, char **argv) | |||
124 | if (file != stdin) { | 124 | if (file != stdin) { |
125 | #if _FILE_OFFSET_BITS == 64 | 125 | #if _FILE_OFFSET_BITS == 64 |
126 | len += printf("(%d%% of %lld bytes)", | 126 | len += printf("(%d%% of %lld bytes)", |
127 | (int) (100 * ((double) ftell(file) / | ||
128 | (double) st.st_size)), (long long)st.st_size); | ||
127 | #else | 129 | #else |
128 | len += printf("(%d%% of %ld bytes)", | 130 | len += printf("(%d%% of %ld bytes)", |
131 | (int) (100 * ((double) ftell(file) / | ||
132 | (double) st.st_size)), (long)st.st_size); | ||
129 | #endif | 133 | #endif |
130 | (int) (100 * | ||
131 | ((double) ftell(file) / | ||
132 | (double) st.st_size)), | ||
133 | st.st_size); | ||
134 | } | 134 | } |
135 | len += printf("%s", | 135 | len += printf("%s", |
136 | #ifdef BB_FEATURE_USE_TERMIOS | 136 | #ifdef BB_FEATURE_USE_TERMIOS |