diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-18 19:09:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-30 16:53:24 +0200 |
commit | 849ce2df7ab7ea1dabbdf04f1944f378075314cf (patch) | |
tree | 6965db41870e177644914e375f40e0a72a758ac5 | |
parent | 7b65cb7567280b391a752646c8f37f4385b2f29e (diff) | |
download | barebox-849ce2df7ab7ea1dabbdf04f1944f378075314cf.tar.gz barebox-849ce2df7ab7ea1dabbdf04f1944f378075314cf.tar.xz |
make st_size in struct stat 64 bit
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | commands/ls.c | 2 | ||||
-rw-r--r-- | include/linux/stat.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/ls.c b/commands/ls.c index ad609f3133..fbcbadcd08 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -35,7 +35,7 @@ static void ls_one(const char *path, struct stat *s) unsigned int namelen = strlen(path); mkmodestr(s->st_mode, modestr); - printf("%s %10lu %*.*s\n", modestr, s->st_size, namelen, namelen, path); + printf("%s %10llu %*.*s\n", modestr, s->st_size, namelen, namelen, path); } int ls(const char *path, ulong flags) diff --git a/include/linux/stat.h b/include/linux/stat.h index bc7dce4508..af022c5c79 100644 --- a/include/linux/stat.h +++ b/include/linux/stat.h @@ -52,7 +52,7 @@ struct stat { unsigned short st_gid; unsigned short st_rdev; unsigned short __pad2; - unsigned long st_size; + loff_t st_size; unsigned long st_blksize; unsigned long st_blocks; unsigned long st_atime; |