more FILE_OFFSET_BITS == 64 adjustments.
This commit is contained in:
parent
83f173b61e
commit
250a221768
@ -655,7 +655,7 @@ static int list_single(struct dnode *dn)
|
||||
#endif
|
||||
{
|
||||
#if _FILE_OFFSET_BITS == 64
|
||||
printf("%9lld ", dn->dstat.st_size);
|
||||
printf("%9lld ", (long long)dn->dstat.st_size);
|
||||
#else
|
||||
printf("%9ld ", dn->dstat.st_size);
|
||||
#endif
|
||||
|
@ -96,7 +96,7 @@ void reset_ino_dev_hashtable(void);
|
||||
|
||||
int copy_file(const char *srcName, const char *destName,
|
||||
int setModes, int followLinks, int forceFlag);
|
||||
int copy_file_chunk(int srcFd, int dstFd, size_t remaining);
|
||||
int copy_file_chunk(int srcFd, int dstFd, off_t remaining);
|
||||
char *buildName(const char *dirName, const char *fileName);
|
||||
int makeString(int argc, const char **argv, char *buf, int bufLen);
|
||||
char *getChunk(int size);
|
||||
|
@ -96,7 +96,7 @@ void reset_ino_dev_hashtable(void);
|
||||
|
||||
int copy_file(const char *srcName, const char *destName,
|
||||
int setModes, int followLinks, int forceFlag);
|
||||
int copy_file_chunk(int srcFd, int dstFd, size_t remaining);
|
||||
int copy_file_chunk(int srcFd, int dstFd, off_t remaining);
|
||||
char *buildName(const char *dirName, const char *fileName);
|
||||
int makeString(int argc, const char **argv, char *buf, int bufLen);
|
||||
char *getChunk(int size);
|
||||
|
2
ls.c
2
ls.c
@ -655,7 +655,7 @@ static int list_single(struct dnode *dn)
|
||||
#endif
|
||||
{
|
||||
#if _FILE_OFFSET_BITS == 64
|
||||
printf("%9lld ", dn->dstat.st_size);
|
||||
printf("%9lld ", (long long)dn->dstat.st_size);
|
||||
#else
|
||||
printf("%9ld ", dn->dstat.st_size);
|
||||
#endif
|
||||
|
8
more.c
8
more.c
@ -124,13 +124,13 @@ extern int more_main(int argc, char **argv)
|
||||
if (file != stdin) {
|
||||
#if _FILE_OFFSET_BITS == 64
|
||||
len += printf("(%d%% of %lld bytes)",
|
||||
(int) (100 * ((double) ftell(file) /
|
||||
(double) st.st_size)), (long long)st.st_size);
|
||||
#else
|
||||
len += printf("(%d%% of %ld bytes)",
|
||||
(int) (100 * ((double) ftell(file) /
|
||||
(double) st.st_size)), (long)st.st_size);
|
||||
#endif
|
||||
(int) (100 *
|
||||
((double) ftell(file) /
|
||||
(double) st.st_size)),
|
||||
st.st_size);
|
||||
}
|
||||
len += printf("%s",
|
||||
#ifdef BB_FEATURE_USE_TERMIOS
|
||||
|
@ -124,13 +124,13 @@ extern int more_main(int argc, char **argv)
|
||||
if (file != stdin) {
|
||||
#if _FILE_OFFSET_BITS == 64
|
||||
len += printf("(%d%% of %lld bytes)",
|
||||
(int) (100 * ((double) ftell(file) /
|
||||
(double) st.st_size)), (long long)st.st_size);
|
||||
#else
|
||||
len += printf("(%d%% of %ld bytes)",
|
||||
(int) (100 * ((double) ftell(file) /
|
||||
(double) st.st_size)), (long)st.st_size);
|
||||
#endif
|
||||
(int) (100 *
|
||||
((double) ftell(file) /
|
||||
(double) st.st_size)),
|
||||
st.st_size);
|
||||
}
|
||||
len += printf("%s",
|
||||
#ifdef BB_FEATURE_USE_TERMIOS
|
||||
|
Loading…
Reference in New Issue
Block a user